dns domain
Use dns domain to configure a domain name suffix.
Use undo dns domain to delete the specified domain name suffix.
Syntax
dns domain domain-name [ vpn-instance vpn-instance-name ]
undo dns domain domain-name [ vpn-instance vpn-instance-name ]
Default
No domain name suffix is configured. Only the provided domain name is resolved.
Views
System view
Predefined user roles
network-admin
Parameters
domain-name: Specifies a domain name suffix. It is a dot-separated, case-insensitive string that can include letters, digits, hyphens (-), underscores (_), and dots (.), for example, aabbcc.com. The domain name suffix can include at most 253 characters, and each separated string includes no more than 63 characters.
vpn-instance vpn-instance-name: Specifies the name of an MPLS L3VPN instance, a case-sensitive string of 1 to 31 characters. To specify a domain name suffix on the public network, do not use this option.
Usage guidelines
A domain name suffix applies to both IPv4 DNS and IPv6 DNS.
You can specify the following:
Domain name suffixes for the public network and up to 1024 VPNs.
A maximum of 16 domain name suffixes for the public network or each VPN.
For domain name resolution, the resolver automatically uses the suffix list to supply the missing part of an incomplete name entered by a user.
Examples
# Configure the domain name suffix com for the public network.
<Sysname> system-view [Sysname] dns domain com
Related commands
display dns domain