Re: additional dns search spaces

2004-10-29 Thread martin f krafft
also sprach Mark Ferlatte <[EMAIL PROTECTED]> [2004.10.30.0050 +0200]:
> DHCP doesn't let you specify the DNS search path.  You'll need to
> do it some other way, should you desire this functionality.

I found -- to my surprise -- that it's possible to have multiple
search lines in /etc/resolv.conf. Thus, problem solved since now
I can just add the additional search line to
/etc/resolvconf/resolv.conf.d/tail

Now I wonder why dhclient-script transforms the domain-name to
a search line instead of setting the domain in /etc/resolv.conf, but
I guess there is a reason too...

-- 
Please do not send copies of list mail to me; I read the list!
 
 .''`. martin f. krafft <[EMAIL PROTECTED]>
: :'  :proud Debian developer, admin, user, and author
`. `'`
  `-  Debian - when you have better things to do than fixing a system
 
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!


signature.asc
Description: Digital signature


Re: additional dns search spaces

2004-10-29 Thread Mark Ferlatte
martin f krafft said on Fri, Oct 29, 2004 at 10:38:39AM +0200:
> In /etc/resolv.conf, the search parameter can take multiple values.
> However, when using DHCP, this field is populated by 'option
> domain-name', which lists the domain name only, and must not do
> anything else, or headless clients won't work anymore. The same
> happens with changing domain-name in /etc/dhcp3/dhclient.conf.
> 
> My question is how to add additional domain names to search when
> using dhcp in the smartest possible way.

DHCP doesn't let you specify the DNS search path.  You'll need to do it some
other way, should you desire this functionality.

M


pgp4Bv9q5aHoF.pgp
Description: PGP signature


Re: additional dns search spaces

2004-10-29 Thread Adrian 'Dagurashibanipal' von Bidder
On Friday 29 October 2004 10.38, martin f krafft wrote:

> My question is how to add additional domain names to search when
> using dhcp in the smartest possible way.
>
> We are using resolvconf if it matters.

IIRC you can edit the basis resolv.conf template, and add these entries 
there, somewhere in /etc/resovlconf or whatever. 

greetings
-- vbi

-- 
Oops


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: additional dns search spaces

2004-10-29 Thread martin f krafft
also sprach Wouter Verhelst <[EMAIL PROTECTED]> [2004.10.29.1126 +0200]:
> Most DHCP clients allow you to override configuration sent by the DHCP
> server. I am using this on my home LAN server in /etc/dhclient.conf:
> 
> supersede domain-name "grep.be debian.org";
> prepend domain-name-servers 127.0.0.1;

Would you please read what I wrote? This does not work simply
because that's the domain name, and the domain name is a single
item. I specifically noted that prepend or supersede are not
options. Thin clients will not properly work when their $(hostname
--fqdn) outputs "node10.cluster.ailab.ch ailab.ch ifi.unizh.ch" as
that is not a FQDN.

-- 
Please do not send copies of list mail to me; I read the list!
 
 .''`. martin f. krafft <[EMAIL PROTECTED]>
: :'  :proud Debian developer, admin, user, and author
`. `'`
  `-  Debian - when you have better things to do than fixing a system
 
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!


signature.asc
Description: Digital signature


Re: additional dns search spaces

2004-10-29 Thread Wouter Verhelst
On Fri, Oct 29, 2004 at 10:38:39AM +0200, martin f krafft wrote:
> In /etc/resolv.conf, the search parameter can take multiple values.
> However, when using DHCP, this field is populated by 'option
> domain-name', which lists the domain name only, and must not do
> anything else, or headless clients won't work anymore. The same
> happens with changing domain-name in /etc/dhcp3/dhclient.conf.
> 
> My question is how to add additional domain names to search when
> using dhcp in the smartest possible way.

Most DHCP clients allow you to override configuration sent by the DHCP
server. I am using this on my home LAN server in /etc/dhclient.conf:

supersede domain-name "grep.be debian.org";
prepend domain-name-servers 127.0.0.1;

which results in a resolv.conf like this:

search grep.be debian.org
nameserver 127.0.0.1
nameserver 
nameserver 

I'm doing something similar on rock, my workstation, but I'm not using
dhclient there. However, I seem to be unable to find out how, exactly, I
configured it there -- and it's been a few years since I did this.

-- 
 EARTH
 smog  |   bricks
 AIR  --  mud  -- FIRE
soda water |   tequila
 WATER
 -- with thanks to fortune


signature.asc
Description: Digital signature