The configuration model files matching DNS are ietf-system.yang and huawei-dns.yang.
Object |
Description |
Value |
Remarks |
---|---|---|---|
/ietf-system:system/dns-resolver/server/transport/udp-and-tcp/address |
Configures the IP address of a DNS server. |
The value is an IPv4 address in dotted decimal notation. |
N/A |
/huawei-dns:dns/dns-common/dns-resolve-enable |
Indicates whether DNS is enabled. |
The value is of the Boolean type:
|
N/A |
/huawei-dns:dns/dns-common/dns-server/ip-version/ipv4/ipv4/ip-address |
Configures the IPv4 address of a DNS server. |
The value is an IPv4 address in dotted decimal notation. |
This command is equivalent to the dns server ip-address command. A maximum of six DNS server IP addresses (IPv4 and IPv6 addresses) can be configured on a switch. |
/huawei-dns:dns/dns-common/dns-server/ip-version/ipv6/ipv6/ip-address |
Configures the IPv6 address of a DNS server. |
The value is an IPv6 address. It contains 128 bits, which are divided into eight groups. Each group contains four hexadecimal digits. The value is in the format of X:X:X:X:X:X:X:X. |
This command is equivalent to the dns server ipv6 ipv6-address command. A maximum of six DNS server IP addresses (IPv4 and IPv6 addresses) can be configured on a switch. |
/huawei-dns:dns/dns-client/domain-suffixes/domain-suffix |
Configures a domain name suffix. |
The value is a string of 1 to 64 characters without spaces. A combination of digits, letters, underscores (_), hyphens (-), and dots (.) is allowed. |
A maximum of ten domain name suffixes can be configured on a switch. |