resolv.conf and DNS

Why when you install a DNS server does it remove the entry
in resolv.conf.

I had a perfectly working system with resolv.conf saying
nameserver 99.99.99.99 ( for example )

then I installed the DNS server and it removed that line
so that firefox etc no longer worked on the local machine
-putting it back by hand fixed everything-

Is this how it suppose to work and if so why

Ta

When I enable bind (DNS) on a machine I normally set /etc/resolv.conf to point to the machine itself. This way lookups are cached.

That’s what I do now but it took me ages to see what was happening - It doesn’t seem right to me, that’s why I asked
I was wondering why installing Bind fiddles with resolv.conf

:frowning:

Mal

I was wondering why installing Bind fiddles with resolv.conf

I haven’t got the slightest idea. In my opinion it should not (but obviously it does).

EDIT: have to add: It did not touch resolv.conf in 11.1 as far as I remember.

No, no fiddling with resolv.conf here either. But I have moved on from bind(9) and use the Power DNS pdns-recursor and dnsmasq for simple local entries & cacheing nameservice.

They have the advantage you can get rid of the bogus **** that redirects you to webpage adverts rather than returning NXDOMAIN.

So “when you install a DNS server does it remove the entry
in resolv.conf” is not true for at least some of the nameservers.