Answer the question
In order to leave comments, you need to log in
Why can ping and nslookup have different results when accessing DNS?
Don't they have a shared cache? The launch is almost simultaneous, in the same terminal.
Answer the question
In order to leave comments, you need to log in
Ping can use various methods to obtain an IP address (all listed in /etc/nsswitch.conf), such as taking it from /etc/hosts.
Nslookup always asks for nameserver only.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question