You are not logged in.

#1 2009-05-05 16:24:17

derekr44
Member
From: Queen Creek, AZ
Registered: 2008-02-13
Posts: 52
Website

[SOLVED] Append DNS Suffixes

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

#2 2009-05-05 16:52:52

derekr44
Member
From: Queen Creek, AZ
Registered: 2008-02-13
Posts: 52
Website

Re: [SOLVED] Append DNS Suffixes

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

#3 2009-05-05 18:47:29

petr.gansel
Member
From: Czech
Registered: 2008-08-17
Posts: 13

Re: [SOLVED] Append DNS Suffixes

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

#4 2009-09-21 19:28:59

fushunpoon
Member
From: London
Registered: 2009-09-13
Posts: 6

Re: [SOLVED] Append DNS Suffixes

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.

hmm

Offline

Board footer

Powered by FluxBB