You are not logged in.
How can I append DNS suffixes to my network connection in Arch? I have 3 suffixes to add for my work VPN connection.
Last edited by derekr44 (2009-05-05 19:22:36)
"Long separated by cruel fate, the star-crossed lovers raced across the grassy field toward each other like two freight trains, one having left Cleveland at 6:36 p.m. traveling at 55 mph, the other from Topeka at 4:19 p.m. at a speed of 35 mph." - Anonymous
Offline
I think I found it. Let me know if I am wrong:
/etc/resolv.conf
domain tempe.mydomain.com
domain rapid.mydomain.com
domain mydomain.com
Would this be correct?
"Long separated by cruel fate, the star-crossed lovers raced across the grassy field toward each other like two freight trains, one having left Cleveland at 6:36 p.m. traveling at 55 mph, the other from Topeka at 4:19 p.m. at a speed of 35 mph." - Anonymous
Offline
you're right
DNS resolver searches this file for suffixes.
Add also lines with
search your.domain.com
Last edited by petr.gansel (2009-05-06 05:07:15)
Offline
Hi there, I've had the same problem, and fixed it the way you described!
At this point, I would, however, point out that this solution should not be required, according to the wiki entry for resolv.conf:
http://wiki.archlinux.org/index.php/Resolv.conf
It clearly states in the wiki article that:
...the domain name is determined from the host name and the domain search path is constructed from the domain name.
... so suppose that I had a host called "somehost.mydomain.com" (i.e., in the /etc/hosts file it says
127.0.0.1 somehost.mydomain.com localhost somehost
)
then surely the domain interpreted automatically is "mydomain.com" and the domain search path is ... probably "mydomain.com" as well. Why, when should I explicity state for every host on my domain that it's in mydomain.com, even when the FQDN given in /etc/hosts already implies that it should search there?!
Clearly, the wiki article is inaccurate, unless other users have had a contrary experience.
Offline