resolv.conf search syntax
resolv.conf search syntax
Hi,
Is this format of the file "/etc/resolv.conf" correct ?
search domain1.com
search domain2.com
nameserver server1
Or it should absolutely have this format instead ?
search domain1.com domain2.com
nameserver server1
Thanks
Is this format of the file "/etc/resolv.conf" correct ?
search domain1.com
search domain2.com
nameserver server1
Or it should absolutely have this format instead ?
search domain1.com domain2.com
nameserver server1
Thanks
-
- Posts: 519
- Joined: 2012/06/26 14:20:47
Re: resolv.conf search syntax
man resolv.conf
Re: resolv.conf search syntax
Already looked at it, but it doesn't say if the following format is correct or not :
search domain1.com
search domain2.com
nameserver server1
search domain1.com
search domain2.com
nameserver server1
Re: resolv.conf search syntax
Doesn't?
Either NetworkManager.service or network.service should write that file for you (in proper syntax).
The real question should thus be: How to feed desirable data to those services?
(For 99.99% of cases the answer to latter ought to be: DHCP server of the subnet does the Right Thing.)
Nevertheless, the syntax question should be moot.The domain and search keywords are mutually exclusive. If more than one instance of these keywords is present, the last instance wins.
Either NetworkManager.service or network.service should write that file for you (in proper syntax).
The real question should thus be: How to feed desirable data to those services?
(For 99.99% of cases the answer to latter ought to be: DHCP server of the subnet does the Right Thing.)
Re: resolv.conf search syntax
Thanks for your help, now it's clear.
The man that I've looked at doesn't mention it.
The man that I've looked at doesn't mention it.
Re: resolv.conf search syntax
Which man is that?
Re: resolv.conf search syntax
Some that I've found on the net, probably old ones
Re: resolv.conf search syntax
How about running it on your CentOS system instead and reading the pages that we supply that should be in sync with the packages we supply too.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
-
- Posts: 2019
- Joined: 2015/02/17 15:14:33
- Location: Bulgaria
- Contact:
Re: resolv.conf search syntax
Just use the
Code: Select all
search domain1.com domain2.com domain3.com