[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Which resolv.conf file?



On Mi, 31 iul 19, 09:06:36, Reco wrote:
> 	Hi.
> 
> On Wed, Jul 31, 2019 at 01:46:45AM -0400, Bob Bernstein wrote:
> > I want to make a change or two to resolv.conf, but every time I come
> > across it I flee in terror, warned that my changes will be destroyed
> > and the linux gods angered.
> 
> Have you meant this resolv.conf line?
> 
> # Dynamic resolv.conf(5) file for glibc resolver(3) generated by # resolvconf(8)
> #     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
> 
> 
> > What is the approved method for changing the list of DNS servers
> > called upon by, in my case, Stretch on amd-64?
> 
> Assuming it is, and you're using ifupdown, you need to change
> "dns-nameserver" stanza in the interface definition.

Careful, in /etc/network/interfaces it's 'dns-nameservers' (mind the 
trailing 's'), because you can list more servers ;)

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser

Attachment: signature.asc
Description: PGP signature


Reply to: