dns-server

Configures the DNS server‘s IPv6 address and lifetime. The configured values are advertised in RAs.

Supported in the following platforms:

Syntax

dns-server <IPv6> {lifetime [<4-3600>|expired|infinite]}

Parameters

dns-server <IPv6> {lifetime [<4-3600>|expired|infinite]}
dns-server <IPv6> Configures the DNS server‘s IPv6 address

Enables the use of a DNS server to resolve host names to IPv6 addresses. When an IPv6 host is configured with the address of a DNS server, the host sends DNS name queries to the server for resolution.

  • <IPv6> – Specify the DNS server‘s address. This address is advertised in RAs. A maximum of four (4) entries can be made per policy.
lifetime [<4-3600>|expired|infinite] Optional. Configures the DNS server‘s (identified by the <IPv6> parameter) lifetime
  • <4-3600> – Configures a lifetime in seconds. Specify a value form 4 - 3600 seconds. The default is 600 seconds.
  • expired – Advertises that this DNS server‘s lifetime has expired and should not be used
  • infinite – Advertises that this DNS server‘s lifetime is infinite

Examples

nx9500-6C8809(config-ipv6-radv-policy-test)#dns-server 2002::2 lifetime 3000
nx9500-6C8809(config-ipv6-radv-policy-test)#show context
ipv6-router-advertisement-policy test
 advertise mtu
 advertise hop-limit
 check-ra-consistency
 dns-server 2002::2 lifetime 3000
nx9500-6C8809(config-ipv6-radv-policy-test)#

Related Commands

no (ipv6-ra-policy-config-commands) Removes the DNS server settings advertised in RAs. Once removed these values are not advertised in RAs.