Debian – 127.0.0.1 in /etc/resolv.conf file (Debian)

debianresolv.conf

I am not running DNS server on my Debian machine. However, file resolv.conf contains the following lines:

nameserver 127.0.0.1
nameserver 213.186.33.99
search ovh.net

Is it normal to have line nameserver 127.0.0.1 in this file. If not, can I just edit this file and remove it?

I uninstalled bind9.

I have other severs @server4you and never Bind9 was installed by default and resolv.conf does not contain line nameserver 127.0.0.1. I just got a new server @ovh with installed Bind9 which I have uninstalled.

Best Answer

It is normal and strongly recommended if you are running a DNS server on the local host like Bind/DNSMasq, etc. You usually should point to your DNS server only, and configure any forwards you require within the DNS server.