nslookup output

Hi All,

If I give the hostname followed by nslookup, I get the output like below,

commandprompt>nslookup efgh

Using /etc/hosts on: xyz
looking up FILES
Trying DNS
Non-authoritative answer:
Name: abcd
Address: 47.47.47.47
Aliases: efgh

I am not sure on the bolded ones. Can anyone let me know what this exactly mean?

From man page:

lserver Domain
Changes the default server to the value specified by the Domain parameter. The lserver subcommand uses the initial server to look up information about the domain.
The server subcommand uses the current default server. If an authoritative answer cannot be found, the names of any additional servers that might have the answer are
returned.

This means nslookup is looking at files on your host.

Trying DNS

This means nslookup did not find a good match in the files and is looking for a nameserver.

This means nslookup found a answer from a secondary DNS server, not the original server.

Thanks Neo

/etc/nsswitch.conf is the file which has more ... Name Service Switch config file.
This file should be sorted with the most-used services at the beginning.

I usually edit host part to use the sequence needed ..
hosts: files nisplus nis dns