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

Re: Question to new network device names



On Fri, Aug 25, 2017 at 02:20:38AM -0400, Gene Heskett wrote:
> On Friday 25 August 2017 01:27:47 David Wright wrote:
> 
> > > But what has that to do with having the proper entry's
> > > in /etc/resolv.conf?  Whose active lines are:
> > >
> > > nameserver 192.168.71.1
> > > search host,dns
> >
> > I can't parse ↑ this line. Are you sure your resolver can?
> > Why does it contain a comma? Are "host" and "dns" domain names?
> 
> From man resolv.conf:
> 
> > search Search list for host-name lookup.
>               The  search  list  is  normally determined from the local domain name; by default, it contains only the local domain
>               name.  This may be changed by listing the desired domain search path following the search  keyword  with  spaces  or
>               tabs  separating  the names.
> 
> So I have it wrong with my comma, but its been working for about 20 years that way. I'll fix it for S&G. To continue

That search line makes the default domains to be searched
".host" and ".dns". Is that what you want?

I suspect what you actually want is in /etc/nsswitch.conf:

hosts:          files dns

which means "look at /etc/hosts first, then check DNS".

This is the default, by the way, and has been for at least
a decade. The most likely override to it is using an alternate
name resolution protocol like Samba's winbind or such.

-dsr-


Reply to: