dns-server (dhcpv4-pool-static-binding)

Configures a network‘s DNS server. The DNS server supports all clients for which static binding has been configured.

For this client, the DNS server‘s IP address maps the host name to an IP address. DHCP clients use the DNS server‘s IP address based on the order (sequence) configured.

Supported on the following devices:

Syntax

dns-server [<IP>|<HOST-ALIAS-NAME>] {<IP1>|<HOST-ALIAS-NAME1>}         

Parameters

dns-server [<IP>|<HOST-ALIAS-NAME>] {<IP1>|<HOST-ALIAS-NAME1>}         

[<IP>|<HOST-ALIAS -NAME>]

  • Configures the primary DNS server, using one of the following options:

  • <IP> – Specifies the primary DNS server‘s IP address

  • <HOST-ALIAS-NAME> – Specifies a host alias, mapped to the primary DNS server‘s IP address

{<IP1>|<HOST-ALIAS- NAME1>}

Optional. Configures the secondary DNS server, using one of the following options:

  • <IP1> – Specifies the secondary DNS server‘s IP address

  • <HOST-ALIAS-NAME1> – Specifies a host alias, mapped to the secondary DNS server‘s IP address. If the primary DNS server is unavailable, the secondary server is used.

Note: A network host alias maps a name to a single network host. For example, ‘alias host $HOST 1.1.1.100‘. In this example the host alias is ‘$HOST‘ and it maps to a single host ‘1.1.1.100‘. For more information, see alias.

Examples

nx9500-6C8809(config-dhcp-policy-test-pool-pool1-binding-test)#dns-server 172.16.10.7
nx9500-6C8809(config-dhcp-policy-test-pool-pool1-binding-test)#show context
  static-binding client-identifier test
   client-name RFID
   bootfile test.txt
   default-router 172.16.10.8 172.16.10.9
   dns-server 172.16.10.7
nx9500-6C8809(config-dhcp-policy-test-pool-pool1-binding-test)#

Related Commands

no

Resets values or disables DHCP pool static binding settings