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.
Support level
Section titled “Support level”| Area | Level | Notes |
|---|---|---|
| DNS resolver | Behaviour model | Resolves configured records for lab traffic. |
| UDP/53 wire path | Supported | Query and answer, NXDOMAIN and REFUSED are on the wire in a capture (Packet Lens), decoded by Wireshark. |
| A records | Supported | IPv4 name resolution. |
| AAAA records | Supported | Typed records; a name with only the other family answers NODATA. |
| Recursive Internet DNS | Not modelled | Lab-local deterministic resolution only. |
Standards coverage
Section titled “Standards coverage”| Standard | Coverage | Notes |
|---|---|---|
| RFC 1034 / RFC 1035 / RFC 3596 | Partial | A and AAAA queries and answers. |
| RFC 2308 | Supported | NODATA is told apart from NXDOMAIN. |
Feature matrix
Section titled “Feature matrix”| Feature | Status | Notes |
|---|---|---|
| DNS server config | Supported | ip host records, or a DNS server’s zones in the topology document; the server answers on UDP/53. |
| Client resolver | Supported | A 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 lookup | Supported | Name to IPv4. |
| Negative response | Supported | NXDOMAIN for an unknown name, NODATA for a missing type, REFUSED from a box with no zone. |
| CNAME/MX/TXT | Not modelled | Out of scope today. |
Vendor command matrix
Section titled “Vendor command matrix”| Command | IOS-style | Junos-style | VyOS-style | Notes |
|---|---|---|---|---|
ip name-server 192.0.2.53 | Supported | Supported | No effect | The 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 lookup | Supported | n/a | n/a | The 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.10 | Supported | Supported | Not modelled | A 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 * | Supported | n/a | n/a | Default 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/a | n/a | n/a | On 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 NAME | Supported | Supported | No effect | Resolved 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. |
Behaviour notes
Section titled “Behaviour notes”DNS is deterministic and topology-local. It is meant to make service labs and management workflows readable, not to emulate the public DNS hierarchy.
Examples
Section titled “Examples”Canonical example
configure terminalip name-server 192.0.2.53ip host app 192.0.2.10endping appshow hostsVendor styles
IOS-style
ip name-server 192.0.2.53ip host app 192.0.2.10Junos-style
set system name-server 192.0.2.53set system static-host-mapping app inet 192.0.2.10VyOS-style
# Not read: VyOS name-server (no effect) and static-host-mapping.set system name-server 192.0.2.53set system static-host-mapping host-name app inet 192.0.2.10Known limits
Section titled “Known limits”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.