Subject: Re: sendmail problems
To: Hauke Fath <hf@spg.tu-darmstadt.de>
From: Jan Danielsson <jan.m.danielsson@gmail.com>
List: netbsd-users
Date: 02/02/2007 10:58:56
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig30A92ECF5C653AEB48E106C7
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hauke Fath wrote:
>>    One of the problems is that the DHCP server that this computer
>> connects to, doesn't seem to send out 'hostname'.
>=20
> What dhcp server? And do you have access to that?

   Sorry, I should have been more specific. It's an ISP -- so I do not
have access to the server in question, unfortunately.

   Now that I started writing this stuff again, I believe that the
problem I had before was in fact that "sed" is in "/usr/bin", but /usr
hasn't been mounted when dhclient-enter-hook is run the first time
(during boot). Is there an assumption made that the dhcp server *should*
pass hostname, and therefore no parsing tools are made available during
the initial run of dhclient-enter-hook?

   Although I personally feel that hostname should be supplied by the
dhcpd, neither this particular ISP, nor the one I use here (they are
different) do pass hostname information to the clients.

   I have this thing about moving around system utilities.. I don't like
it. One solution would obviously be to simply copy /usr/bin/sed to
/bin/sed -- but I would really prefer not to, if possible. I kind of
anal about those things, unfortunately.

   At the same time.. I - again - have the feeling that this is a
problem which probably has been solved a thousand times before -- which
makes me not want to put too much effort into it.

> Setting 'option host-name "foo";' in the dhcpd.conf, and 'request
> [...],host-name, [...]' in /etc/dhclient.conf handles things nicely for=

> me. I don't bother with an /etc/hosts entry, though.

   Pehaps they do send out host-name if requested nowadays. I'm 100%
sure I did try it previously, but it didn't work then.

   Ugh, nope -- they still don't supply host-name. Curious, though.. I
noticed a new dhclient.conf keyword I hadn't seen before: "require". So
I set "require host-name", but it didn't do anything -- not even protest.=


--=20
Kind regards,
Jan Danielsson



--------------enig30A92ECF5C653AEB48E106C7
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (NetBSD)

iD8DBQFFwwtmbgs4ia4rq9IRCrh5AJ9Ri4uGTCXgJXkd6wnjPziOL75hQQCZAVXH
f0ItqK9KJzy7DZD8MEa1Rqw=
=U9wl
-----END PGP SIGNATURE-----

--------------enig30A92ECF5C653AEB48E106C7--