Re: Can't find the DNS Servers
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 18.104.22.168
> > dns-nameserver 22.214.171.124
> > 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.