Skip to content

DNS

DNS support lets labs resolve names instead of hard-coding every address. netverdict includes a resolver and wire model for the supported query paths.

AreaLevelNotes
DNS resolverBehaviour modelResolves configured records for lab traffic.
UDP/53 wire pathSupportedQuery and answer, NXDOMAIN and REFUSED are on the wire in a capture (Packet Lens), decoded by Wireshark.
A recordsSupportedIPv4 name resolution.
AAAA recordsSupportedTyped records; a name with only the other family answers NODATA.
Recursive Internet DNSNot modelledLab-local deterministic resolution only.
StandardCoverageNotes
RFC 1034 / RFC 1035 / RFC 3596PartialA and AAAA queries and answers.
RFC 2308SupportedNODATA is told apart from NXDOMAIN.
FeatureStatusNotes
DNS server configSupportedip host records, or a DNS server’s zones in the topology document; the server answers on UDP/53.
Client resolverSupportedA host or wireless station uses the DNS server from its DHCP lease (option 6), then a DHCPv6 lease (option 23, asked over IPv6), then a router advertisement’s RDNSS option (RFC 8106, for its lifetime; a DNSSL domain completes dotless names); a wireless station can also have its own in the topology. A static station with none of these has no resolver. nslookup NAME asks A then AAAA, as BIND 9.11+ does. A lab’s DNS check is judged per record type.
A record lookupSupportedName to IPv4.
Negative responseSupportedNXDOMAIN for an unknown name, NODATA for a missing type, REFUSED from a box with no zone.
CNAME/MX/TXTNot modelledOut of scope today.
CommandIOS-styleJunos-styleVyOS-styleNotes
ip name-server 192.0.2.53SupportedSupportedNo effectThe box’s own resolver: ping NAME and traceroute NAME ask each server in turn over UDP/53 (the next one only when a server gives no answer; NXDOMAIN stops). NX-OS and EOS too. Junos system name-server. A server in a named VRF is not used.
ip domain name D / [no] ip domain lookupSupportedn/an/aThe default domain is appended to a name without a dot; no ip domain lookup stops queries. IOS and IOS-XE write it back as ip domain name, whichever spelling was typed. NX-OS ip domain-name / ip domain-lookup. ip domain list is not read.
ip host app 192.0.2.10SupportedSupportedNot modelledA record this box answers for, and the box’s own static host table (looked up first, no query). Junos static-host-mapping NAME inet ADDR. VyOS static-host-mapping is not read.
show hosts / clear host *Supportedn/an/aDefault domain, name servers, static (perm) and cached (temp) entries in IOS layout. The cache keeps answers until cleared (no TTL) and caches no negative answers.
nslookup [-type=A|AAAA] NAME [SERVER]n/an/an/aOn a host or wireless station: a real UDP/53 query; prints the answer, NXDOMAIN, REFUSED, no answer, connection refused or the timeout as BIND’s nslookup does. Routers have no nslookup.
ping NAME / traceroute NAMESupportedSupportedNo effectResolved first: static table, then the cache, then the name servers (Translating "NAME"...domain server (S) [OK]). A router asks for the A record, and the AAAA when the name has none; ping ipv6 NAME / traceroute ipv6 NAME take the AAAA. Name servers may be IPv4 or IPv6; ipv6 host adds an IPv6 static entry. On hosts and wireless stations through their DHCP or own DNS server. A router’s or host’s lookup counts for a lab’s DNS check. A lone word IOS does not know is looked up and connected to on TCP/23 (Trying NAME (ADDR)... Open, refused or timed out); nothing inside the session is modelled. show ip route NAME resolves the name first. ip host is written back in the case typed.

DNS is deterministic and topology-local. It is meant to make service labs and management workflows readable, not to emulate the public DNS hierarchy.

Canonical example
configure terminal
ip name-server 192.0.2.53
ip host app 192.0.2.10
end
ping app
show hosts

Vendor styles

IOS-style
ip name-server 192.0.2.53
ip host app 192.0.2.10
Junos-style
set system name-server 192.0.2.53
set system static-host-mapping app inet 192.0.2.10
VyOS-style
# Not read: VyOS name-server (no effect) and static-host-mapping.
set system name-server 192.0.2.53
set system static-host-mapping host-name app inet 192.0.2.10

Recursive resolution, DNSSEC, CNAME/SRV/MX/TXT records and EDNS are not implemented. A router’s resolver caches positive answers until clear host, without TTLs. An end host’s ping ipv6 NAME asks for the A record only.