HP MSR2000/3000/4000 Router Series Layer 3 - IP Services Command Reference
146
undo nat dns-map domain domain-name
Default
No DNS mapping for NAT exists.
Views
System view
Predefined user roles
network-admin
Parameters
domain domain-name: Specifies the domain name of an internal server. A domain name is a
dot-separated case-insensitive string that can include letters, digits, hyphens (-), underscores (_), and dots
(.) (for example, aabbcc.com). The domain name suffix can contain at most 253 characters, and each
separated string contains no more than 63 characters.
protocol pro-type: Specifies the type of the protocol used by the internal server, tcp or udp.
interface interface-type interface-number: Enables Easy IP to use the IP address of the interface specified
by its type and number as the public address of the internal server.
ip global-ip: Specifies the public IP address used by the internal server to provide services to the external
network.
port global-port: Specifies the public port number used by the internal server to provide services to the
external network. The value range for the global-port argument is 1 to 65535.
Usage guidelines
NAT with DNS mapping must operate with the NAT Server feature. NAT with DNS mapping maps the
domain name of the internal server to the public IP address, public port number, and protocol type of the
server. NAT Server maps the public IP and port to the private IP and port of the internal server. This allows
an internal host to access an internal server on the same private network by using the domain name of
the internal server when the DNS server is on the public network.
You can configure multiple NAT with DNS mappings.
Examples
# Configure a NAT with DNS mapping between the domain name www.server.com, and the public IP
address 202.112.0.1, and the public port number 12345 , and specify the protocol type as TCP.
<Sysname> system-view
[Sysname] nat dns-map domain www.server.com protocol tcp ip 202.112.0.1 port 12345
Related commands
• display nat all
• display nat dns-map
• nat server
nat hairpin enable
Use nat hairpin enable to enable NAT hairpin.
Use undo nat hairpin enable to disable NAT hairpin.