- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
05-DNS Commands | 31.63 KB |
Chapter 1 DNS Configuration Commands
1.1 Static DNS Configuration Commands
1.2 Dynamic DNS Configuration Commands
1.2.3 display dns dynamic-host
Chapter 1 DNS Configuration Commands
1.1 Static DNS Configuration Commands
1.1.1 ip host
Syntax
ip host hostname ip-address
undo ip host hostname [ ip-address ]
View
System view
Parameters
hostname: Name of the host. It is a character string that consists of 1 to 20 characters, including letters, numbers, "_" or “,”, and it must contain at least one letter.
ip-address: Host IP address (the corresponding IP address to the host name) in dotted decimal notation.
Description
Use the ip host command to configure the host name and the host IP address.
Use the undo ip host command to cancel the host name and the host IP address.
By default, host name and corresponding IP address are null.
Related commands: display ip host.
Examples
# Set the IP address of switch1 to 10.110.0.1.
[H3C] ip host switch1 10.110.0.1
1.1.2 display ip host
Syntax
display ip host
View
Any view
Parameters
None
Description
Use the display ip host command to view all the host names and the corresponding IP addresses.
Examples
# Display all host names and the corresponding IP addresses of the hosts.
<H3C> display ip host
Host Age Flags Address
My 0 static 1.1.1.1
Aa 0 static 2.2.2.4
Table 1-1 Description on the fields of the display ip host command
Field |
Description |
Host |
Host name |
Age |
Valid period |
Flags |
Flags |
Address |
Host IP address |
1.2 Dynamic DNS Configuration Commands
1.2.1 debugging dns
Syntax
debugging dns
undo debugging dns
View
User view
Parameters
None
Description
Use the debugging dns command to enable DNS debugging.
Use the undo debugging dns command to disable DNS debugging.
By default, DNS debugging is disabled.
Examples
# Enable DNS debugging
<H3C> debugging dns
1.2.2 display dns domain
Syntax
display dns domain
View
Any view
Parameters
None
Description
Use the display dns domain command to view the domain name suffix list.
Related commands: dns domain.
Examples
# View the domain name suffix list.
<H3C> display dns domain
No Domain-name
0 abcd.com
Table 1-2 Description on the fields of the display dns domain command
Field |
Description |
No |
Sequence number |
Domain-name |
Domain name suffix name |
1.2.3 display dns dynamic-host
Syntax
display dns dynamic-host
View
Any view
Parameters
None
Description
Use the display dns dynamic-host command to view the dynamic domain name buffer.
Examples
# View the dynamic domain name buffer.
<H3C> display dns dynamic-host
No Domain-name Ipaddress RR-TTL(S)
0 www.baidu.com 202.108.249.134 63000
1 www.yahoo.akadns.net 66.94.230.39 24
2 www.hotmail.com 207.68.172.239 3585
3 www.eyou.com 61.136.62.70 3591
Table 1-3 Description on the fields of the display dns dynamic-host command
Field |
Description |
No |
Sequence number |
Domain-name |
Domain name |
Ipaddress |
Corresponding IP name of the domain name |
RR–TTL(S) |
Time to live, that is, the time for an entry to be stored, in seconds. |
1.2.4 display dns server
Syntax
display dns server
View
Any view
Parameters
None
Description
Use the display dns server command to view the related information of the domain name server.
Related commands: dns server.
Examples
# View the related information of the domain name server.
<H3C> display dns server
Domain-server Ipaddress
0 172.16.1.1
1 172.16.1.2
Table 1-4 Description on the fields of the display dns server command
Field |
Description |
Domain-server |
Domain name server |
Ipaddress |
Corresponding IP address of the domain name server |
1.2.5 dns domain
Syntax
dns domain domain-name
undo dns domain [ domain-name ]
View
System view
Parameters
domain-name: Domain name suffix.
Description
Use the dns domain command to add the domain name suffix.
Use the undo dns domain command to delete the domain name suffix.
The system supports up to 10 domain name suffixes. To delete the domain name suffix, input the suffix name, and the specific suffix is deleted. Otherwise, all of the suffixes are deleted.
Related commands: display dns domain.
Examples
# Configure a domain name suffix “com”.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] dns domain com
1.2.6 dns resolve
Syntax
dns resolve
undo dns resolve
View
System view
Parameters
None
Description
Use the dns resolve command to enable the dynamic domain name resolution function.
Use the undo dns resolve command to disable the dynamic domain name resolution function.
By default, the dynamic domain name resolution function is disabled.
Examples
# Enable dynamic domain name resolution.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] dns resolve
1.2.7 dns server
Syntax
dns server ip-address
undo dns server [ ip-address ]
View
System view
Parameters
ip-address: IP address of the domain name server.
Description
Use the dns server command to configure the IP address of a domain name server.
Use the undo dns server command to delete the IP address of a domain name server.
The system supports up to six domain name server. To delete the domain name server, input the IP address, and the specific server is deleted. Otherwise, all of the servers are deleted.
Related commands: display dns server.
Examples
# Configure a domain name server, with an IP address of 172.16.1.1.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] dns server 172.16.1.1
1.2.8 reset dns dynamic-host
Syntax
reset dns dynamic-host
View
User view
Parameters
None
Description
Use the reset dns dynamic-host command to clear the dynamic domain name buffer.
Related commands: display dns dynamic-host.
Examples
# Clear the dynamic domain name buffer.
<H3C> reset dns dynamic-host