PDA

View Full Version : Multiple DNS search paths


altht
2005-10-12, 12:45 PM CDT
Is that possible in FC4? It would be ideal for the way my work network is set up. It's how they set up thier windows boxes, and it would be extremely handy when working with my Fedora box also (as opposed to putting a bunch of entries in the hosts file). Thanks.

skoona
2005-10-12, 01:09 PM CDT
Heres how to add more names servers in fedora.

/etc/resolve.conf
nameserver 127.0.0.1
nameserver 68.87.66.196


In my home network of 8 devices or computers. I have setup a local DNS and a caching DNS for the real Internet. All local (internal network) devices point to a 1) local dns that has the contents of the hosts file, formatted for dns, 2) and my ISP's regular nameserver.

chili555
2005-10-12, 01:30 PM CDT
Here is my /etc/resolv.conf:
search atlsfl.adelphia.net
nameserver 68.168.1.42
nameserver 68.168.1.46

Don't know of any reason you couldn't have three or more nameservers listed.

altht
2005-10-12, 01:36 PM CDT
That's not what I'm asking. I have several DNS servers setup. What I would like to know is if you can add multiple search paths. In other words, multiple entries for the search parameter in resolv.conf. Having read the man page for resolv.conf, I know that you cannot do it within that file (as it uses the last search entry), but I was just looking to make sure that there is not something I was missing. Thanks for the quick responses.

skoona
2005-10-12, 04:20 PM CDT
yes, the search parm can contain multiple entries seperated by a tab or space. You should limit the value to the domain_name portion. i.e. drop the www prefixes