ipv6 nd ra dns server

Syntax

ipv6 nd ra dns server <IPV6-ADDR>  [lifetime <TIME>]

no ipv6 nd ra dns server <IPV6-ADDR>

Description

Configures the IPv6 address of a preferred Recursive DNS Server (RDNSS) to be included in Router Advertisements (RAs) transmitted on the interface.

The no form of this command removes the configured DNS server from the RAs transmitted on the interface.

Command context

config-if

Parameters

<IPV6-ADDR>

Specifies the RDNSS address in IPv6 format (xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx), where x is a hexadecimal number from 0 to F. You can use two colons (::) to represent consecutive zeros (but only once), remove leading zeros, and collapse a hextet of four zeros to a single 0. For example, this address 2222:0000:3333:0000:0000:0000:4444:0055 becomes 2222:0:3333::4444:55.

lifetime <TIME>

Specifies IPv6 DNS server lifetime in seconds. Range: 4-4294967295 seconds. Default: 1800 seconds.

Authority

Administrators

Usage

  • Including RDNSS information in RAs provides DNS server configuration for connected IPv6 hosts without requiring DHCPv6.

  • Multiple servers can be configured on the interface by using the command repeatedly.

  • A maximum of eight server addresses are allowed.

Examples

switch(config)# interface 1/1/1
switch(config-if)# ipv6 nd ra dns server 2001::1 lifetime 400