The NS record type
The NS (nameserver) record type returns the nameservers responsible for the subdomain.
Here, we query for NS records of the domain “
The result is two nameservers underneath “
The IPv4 and IPv6 addresses of these two nameservers are also returned in the Additional section of the response, as indicated by the “
$ dog NS example.com NS example.com. 23h59m06s "a.iana-servers.net." NS example.com. 23h59m06s "b.iana-servers.net." A a.iana-servers.net. 29m07s + 126.96.36.199 AAAA a.iana-servers.net. 16m05s + 2001:500:8f::53 A b.iana-servers.net. 16m09s + 188.8.131.52 AAAA b.iana-servers.net. 29m07s + 2001:500:8d::53