The ipv6 nd ra dns-suffix command sets a DNS suffix in RA packets.
The undo ipv6 nd ra dns-suffix command deletes the DNS suffix configured for RA packets.
By default, RA packets do not contain a DNS suffix.
ipv6 nd ra dns-suffix domain-suffix [ valid-lifetime ]
undo ipv6 nd ra dns-suffix [ domain-suffix [ valid-lifetime ] ]
Parameter | Description | Value |
---|---|---|
domain-suffix | Specifies a DNS suffix. | The value is a string of 1 to 64 characters and can contain digits, letters, hyphens (-), underscores (_), and periods (.), but not spaces. |
valid-lifetime | Specifies a valid lifetime. | The value is an integer ranging from 1 to 4294967295, in seconds. The default value is three times the maximum interval for advertising RA packets. The maximum interval for advertising RA packets can be configured using the ipv6 nd ra max-interval maximum-interval command. |
Usage Scenario
To allow a host use a DNS domain name with a suffix upon receipt of RA packets, run the ipv6 nd ra dns-suffix command to configure a DNS suffix for RA packets.
Prerequisites
The IPv6 function has been enabled on an interface using the ipv6 enable command in the interface view.
Precautions
Only one DNS suffix can be configured for the RA packets transmitted on the same interface. If the ipv6 nd ra dns-suffix command is run more than once for the same interface, the latest configuration overrides the previous one.