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

Re: Can't find the DNS Servers



	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.


Also, one should promote neatness in configuration files. Otherwise
first you put tiny amounts of badly-formatted configuration stanzas,
next you're going Slackware by configure/make/make install and *finally*
you're trying to parse HTML with regular expressions bringing doom and
demise to unsuspecting humankind.

Reco


Reply to: