I have a query on the purpose of the resolv.conf
file.
If I delete the name server entry from the /etc/resolv.conf
file, my browser still able to do the DNS query. As far as I know, any URL is first looked up in the name server which is listed on this file.
I read somewhere that if the resolv.conf
entry is set to localhost
then it means that the name server is running in the local host. Can someone point out which is that service?
After removing the name server entry from the resolv.conf
, the commands like nslookup
are not working as expected. However when I try to open a site from the browser, I see in the wireshark that the request is still sent to the same name server IP though I removed it from the resolv.conf
file. This clearly means that there is some other name server service running.
Any help?