H3C S7500 Series Command Manual(Release 3100 Series)-(V1.04)

HomeSupportSwitchesH3C S7500 Switch SeriesReference GuidesCommand ReferencesH3C S7500 Series Command Manual(Release 3100 Series)-(V1.04)
36-DNS Commands
Title Size Download
36-DNS Commands 54 KB

Chapter 1  DNS Configuration Commands

1.1  DNS Configuration Commands

1.1.1  display dns domain

Syntax

display dns domain

View

Any view

Parameters

None

Description

Use the display dns domain command to display the information in the DNS suffix list.

Related commands: dns domain.

Examples

# Display the information in the DNS suffix list.

<H3C> display dns domain

No.         Domain-name

0           aaa.com

Table 1-1 Description on the fields of the display dns domain command

Field

Description

No.

Sequence number

Domain-name

Domain suffix name

 

1.1.2  display dns dynamic-host

Syntax

display dns dynamic-host

View

Any view

Parameters

None

Description

Use the display dns dynamic-host command to display information about the dynamic DNS cache.

The DNS client saves a successful DNS resolution result to the DNS cache. When receiving a name query, the DNS Client first looks up the DNS cache for a match. If a match is found, it returns the corresponding IP address to the user program. If not, it sends a query to the DNS server.

Examples

# Display the information in the dynamic DNS cache.

<H3C> display dns dynamic-host

No. Domain-name           IpAddress            TTL      Alias

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-2 Description on the field of the display dns dynamic-host command

Field

Description

No

Sequence number

Domain-name

Domain name

IpAddress

IP address corresponding to the domain name

TTL

Time for the entry to be stored in the cache (in seconds)

Alias

Alias name for the domain name, up to 4

 

1.1.3  display dns server

Syntax

display dns server [ dynamic ]

View

Any view

Parameters

Dynamic: Specifies to display the DNS server information dynamically obtained by DHCP or other protocols.

Description

Use the display dns server command to display the DNS server information.

Related commands: dns server.

Examples

# Display the DNS server information.

<H3C> display dns server

Domain-server        IpAddress

     0          169.254.65.125

     1          169.254.66.15

Table 1-3 Description on the fields of the display dns server command

Field

Description

Domain-server

Sequence number of the DNS server. The system automatically numbers the configured DNS servers starting from 0.

IpAddress

IP address of the DNS server

 

1.1.4  display ip host

Syntax

display ip host

View

Any view

Parameters

None

Description

Use the display ip host command to display the hostnames and corresponding IP addresses in the static DNS list.

Examples

# Display the hostnames and corresponding IP addresses in the static DNS list.

<H3C> display ip host

Host         Age     Flags       Address

My           0       static      1.1.1.1

Aa           0       static      2.2.2.4

Table 1-4 Description on the fields of the display ip host command

Field

Description

Host

Hostname

Age

Time to live. It is always 0 for static entries, meaning the static entries will never age out.

A static name-to-address mapping entry can only be manually removed.

Flags

Type flag for the name-to-address mapping entry. It is "static" for static entries.

Address

IP address of the host

 

1.1.5  dns domain

Syntax

dns domain domain-name

undo dns domain [ domain-name ]

View

System view

Parameters

domain-name: DNS suffix, a string of 1 to 60 characters, including alphanumeric characters, hyphens (-), underscores (_), and dots (.).

Description

Use the dns domain command to configure a DNS suffix.

Use the undo dns domain command to delete one or all DNS suffixes.

No DNS suffix is configured by default.

You can configure up to 10 DNS suffixes.

When you execute the undo dns domain command:

l           If you specify a DNS suffix, only the specified DNS suffix is removed,

l           Otherwise, all statically configured suffixes are removed.

Related commands: display dns domain.

 

&  Note:

The DNS function supported by S7500 switches must be used together with a DNS server. DNS servers differ from one another in DNS implementation. For example, the S7500 supports a domain name which includes “_”, while Windows 2000 Server may be unable to resolve the “_”.

 

Examples

# Configure com as a DNS suffix.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] dns domain com

1.1.6  dns resolve

Syntax

dns resolve

undo dns resolve

View

System view

Parameters

None

Description

Use the dns resolve command to enable dynamic DNS resolution.

Use the undo dns resolve command to disable dynamic DNS resolution.

Dynamic DNS resolution is disabled by default.

Examples

# Enable dynamic DNS resolution.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] dns resolve

1.1.7  dns server

Syntax

dns server ip-address

undo dns server [ ip-address ]

View

System view

Parameters

ip-address: IP address of a DNS server.

Description

Use the dns server command to configure an IP address for a DNS server.

Use the undo dns server to remove a configured DNS server IP address.

No DNS server IP address is configured by default.

You can configure up to 6 DNS servers.

Related commands: display dns server.

Examples

# Configure a DNS 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.1.8  ip host

Syntax

ip host hostname ip-address

undo ip host hostname [ ip-address ]

View

System view

Parameters

Hostname: Hostname, a string of 1 to 30 characters, including alphanumeric characters, hyphens (-), or dots (.). It must contain at least one letter.

ip-address: IP address of the specified host, in dotted decimal notation.

Description

Use the ip host command to add a hostname-to-IP address mapping entry in the static DNS list.

Use the undo ip host command to remove a mapping entry from the static DNS list.

By default, there is no entry in the static DNS list.

One hostname can be mapped to only one IP address. When you add multiple hostname-to-address mapping entries with the same hostname, only the last one will be valid.

Related commands: display ip host.

Examples

# Configure a mapping entry from the host named aaa to the IP address 10.110.0.1

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] ip host aaa 10.110.0.1

1.1.9  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 DNS cache.

Related commands: display dns dynamic-host.

Examples

# Clear the dynamic DNS cache.

<H3C> reset dns dynamic-host

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网