Bug#681698: /sbin/dhclient: make updating /etc/resolv.conf configurable, make setting default gw configurable

July 15th, 2012 - 02:30 pm ET by folkert | Report spam
Package: isc-dhcp-client
Version: 4.2.2.dfsg.1-5
Severity: wishlist
File: /sbin/dhclient

Hi,

If you ever feel the need to do some coding, I have a couple of suggestions for dhcp:
- make updating resolv.conf switchable, so that you can prevent it from doing so
- make setting the default gateway switchable

This can be accomplished by manually editting /sbin/dhclient-script but that gives problems if you e.g. want to get def gw on eth0 via dhcp (but not on eth1).

Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.4.0 (SMP w/6 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=locale: Cannot set LC_ALL to default locale: No such file or directory
UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages isc-dhcp-client depends on:
ii debianutils 4.3
ii iproute 20120319-1
ii isc-dhcp-common 4.2.2.dfsg.1-5
ii libc6 2.13-33

isc-dhcp-client recommends no packages.

Versions of packages isc-dhcp-client suggests:
pn avahi-autoipd <none>
pn resolvconf <none>



To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
email Follow the discussionReplies 1 replyReplies Make a reply

Replies

#1 Andrew Pollock
July 15th, 2012 - 05:50 pm ET | Report spam

On Sun, Jul 15, 2012 at 08:26:45PM +0200, folkert wrote:
Package: isc-dhcp-client
Version: 4.2.2.dfsg.1-5
Severity: wishlist
File: /sbin/dhclient

Hi,



Hi,

If you ever feel the need to do some coding, I have a couple of suggestions for dhcp:
- make updating resolv.conf switchable, so that you can prevent it from doing so
- make setting the default gateway switchable

This can be accomplished by manually editting /sbin/dhclient-script but that gives problems if you e.g. want to get def gw on eth0 via dhcp (but not on eth1).



So you can accomplish the /etc/resolv.conf part today, by redefining the
make_resolv_conf() function in a custom hook in
/etc/dhcp/dhclient-enter-hooks.d/ You could make the function be a total
no-op, and then you have what you want there.

As for default gateway behaviour, that's a bit more difficult today. It is
my longer term vision for /sbin/dhclient-script to be a large collection of
shell functions that can be user-overridden by way of hooks.

Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.4.0 (SMP w/6 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=locale: Cannot set LC_ALL to default locale: No such file or directory
UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages isc-dhcp-client depends on:
ii debianutils 4.3
ii iproute 20120319-1
ii isc-dhcp-common 4.2.2.dfsg.1-5
ii libc6 2.13-33

isc-dhcp-client recommends no packages.

Versions of packages isc-dhcp-client suggests:
pn avahi-autoipd <none>
pn resolvconf <none>


_______________________________________________
pkg-dhcp-devel mailing list

http://lists.alioth.debian.org/cgi-...dhcp-devel








To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact

Similar topics