[Dnsmasq-discuss] dhcp-option=121 doesn't seem to work

Guennadi Liakhovetski g.liakhovetski at gmx.de
Sat Dec 22 18:32:32 GMT 2007


On Sat, 22 Dec 2007, Simon Kelley wrote:

> I'm in danger of claiming more knowledge than I have, but on this system,
> running Ubuntu and using dhclient, there's  a big script in
> /sbin/dhclient-script which does all stuff, include ifconfig and route. Maybe
> that's an Ubuntu or NetworkMananger thing, but the copyrights at least imply
> that it's derived from a generic script.

Well, the "first-stage" dhclient is

lrwxrwxrwx 1 root root      9 2007-10-09 16:08 /sbin/dhclient -> dhclient3
-rwxr-xr-x 1 root root 415348 2007-01-22 01:04 /sbin/dhclient3

$ file /sbin/dhclient3
/sbin/dhclient3: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), 
for GNU/Linux 2.4.1, dynamically linked (uses shared libs), for GNU/Linux 
2.4.1, stripped

and the script is there too

-rwxr-xr-x 1 root root   7283 2007-01-22 01:03 /sbin/dhclient-script

but one is not supposed to modify that one. Instead there are hooks under

$ ls -l /etc/dhcp3/
total 12
-rw-r--r-- 1 root root 1581 2007-01-22 01:02 dhclient.conf
drwxr-xr-x 2 root root 4096 2007-10-09 16:08 dhclient-enter-hooks.d
drwxr-xr-x 2 root root 4096 2007-10-09 17:03 dhclient-exit-hooks.d

which is, as long as I understand, where local customizations and 
extensions should be made. But the standard stuff... Oh well

> /sbin/dhclient-script seems to be a master script which invokes the
> directories full of small, package-supplied ones.

Exactly.

Thanks
Guennadi
---
Guennadi Liakhovetski



More information about the Dnsmasq-discuss mailing list