Web lists-archives.com

Re: Can't find the DNS Servers




On Mon 02 Oct 2017 at 21:32:40 (+0300), Reco wrote:
> 	Hi.
> 
> On Mon, Oct 02, 2017 at 11:15:16AM -0500, David Wright wrote:
> > On Mon 02 Oct 2017 at 10:00:28 (+0300), Reco wrote:
> > 
> > > To bring order to this chaos, you'll need this e/n/i:
> > > 
> > > auto enp4s0
> > > iface enp4s0 inet dhcp
> > > 	dns-nameserver 8.8.4.4
> > > 	dns-nameserver 8.8.8.8
> > > 
> > > Please note the indentation,
> > 
> > … which looks tidy, but the indentation carries no meaning
> > (lest people spend time fiddling with it thinking that it does).
> 
> While the indentation is ignored by ifupdown indeed, it carries
> invaluable meaning to human beings.
> In this particular case, the meaning is:
> 
> Both "dns-nameserver" stanzas are applied to enp4s0 interface only, not
> that other one, and even not the one you want it to apply to.

… which is precisely the delusion.

> Also, one should promote neatness in configuration files.

By all means. But this is just as tidy without adding
meaningless "meanings":



########## Primary network interface ##########

auto  enp4s0
iface enp4s0 inet dhcp
dns-nameserver 8.8.4.4
dns-nameserver 8.8.8.8

########## Bridging stuff #####################

[… … …]



Cheers,
David.