User Tools

Site Tools


kb:common:dns

This is an old revision of the document!


DNS

nslookup vs. ping

On many operating systems, nslookup uses its own implementation whereas ping and other services go through the OS-specific stack. This results in potentially different results for ip-to-name resolution

Mac OS

Both nslookup and dig are actually third-party tools by ISC (which also make BIND). The ISC tools rely on /etc/resolv.conf.

To use an “Apple-native” command for DNS lookups, try dscacheutil:

  dscacheutil -q host -a name www.apple.com

You can see the DNS settings macOS is using with:

  scutil --dns
kb/common/dns.1714985350.txt.gz · Last modified: 2024/05/06 08:49 by joerg.hampel