#533302 dhclient.conf: prepend domain-search "example.net" does not prepend but replace the search value #533302
- Package:
- isc-dhcp-client
- Source:
- isc-dhcp
- Description:
- DHCP client for automatically obtaining an IP address
- Submitter:
- Michael Stapelberg
- Date:
- 2026-08-05 17:33:36 UTC
- Severity:
- important
- Tags:
Normally, when using DHCP, I get a line like "search foo.lan" in my /etc/resolv.conf. After specifying the following in /etc/dhcp3/dhclient.conf: prepend domain-search "example.net"; my /etc/resolv.conf contained "search example.net." where it should use "search example.net foo.lan" instead.
Hi, I just wanted to ask for the status of this bug report? Do you need any more information or help? Thanks for replying, Best regards, Michael
I've just had a look at it. It's not a bug, it's working as intended. The prepend directive allows you to override DHCP *in their entirety*. If you use it, you need to stipulate what the entire option should contain. It doesn't let you prepend part of a value into an option's data.
Hi, Excerpts from Andrew Pollock's message of Fri Oct 16 22:52:04 +0200 2009: Uhm, that seems a big strange to me. First of all, it is not intuitive at all to call that option prepend, if it behaves like you just said. Secondly, I want to quote the manpage:--- If for some option the client should always use a locally-configured value or values rather than whatever is supplied by the server, these values can be defined in the supersede statement. If for some set of options the client should use a value you supply, and then use the values supplied by the server, if any, these values can be defined in the prepend statement.--- Is the manpage utterly wrong? Best regards, Michael
reopen 533302 thanks No, you're absolutely correct, I had supersede and prepend confused in my mind.
# Automatically generated email from bts, devscripts version 2.10.35lenny7 # Not reproducible in 4.1.0-1 fixed 533302 4.1.0-1
# Automatically generated email from bts, devscripts version 2.10.35lenny7 # Not reproducible in 3.1.3-1 fixed 533302 3.1.3-1
I'm closing this bug because I cannot reproduce it with the version of dhcp3-client in unstable.
# Automatically generated email from bts, devscripts version 2.10.35lenny7 # Only happens with two domains in the domain-search option reopen 533302
Hi, This bug was reported by a Debian user in version 3.1.1, and I've been able to reproduce it in 3.1.3 and 4.1.0 Please maintain the Cc list to keep our bug tracking system in the loop Steps to reproduce: Configure DHCP server to provide domain-search with two or more domains Configure DHCP client to prepend domain-search with another domain Expected result: Configured domain search list consists of the DHCP-provided domains with the client-configured domain prepended to the list Actual result: Configured domain search list consists of the first DHCP-provided domain (only) with the client-configured domain prepended. The lease file contains a trailing comma and some whitespace before the semicolon----- Forwarded message from Michael Stapelberg <michael+db20090501@stapelberg.de> ----- Subject: Bug#533302: dhclient.conf: prepend domain-search "example.net" does not prepend but replace the search value Reply-To: Michael Stapelberg <michael+db20090501@stapelberg.de>, 533302@bugs.debian.org Resent-From: Michael Stapelberg <michael+db20090501@stapelberg.de> Resent-To: debian-bugs-dist@lists.debian.org Resent-CC: Andrew Pollock <apollock@debian.org> Resent-Date: Tue, 16 Jun 2009 11:42:02 +0000 Resent-Message-ID: <handler.533302.B.124515054327309@bugs.debian.org> Resent-Sender: owner@bugs.debian.org X-Debian-PR-Message: report 533302 X-Debian-PR-Package: dhcp3-client X-Debian-PR-Keywords: X-Debian-PR-Source: dhcp3 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rietz.debian.org X-Spam-Level: X-Spam-Bayes: score:0.0000 Tokens: new, 20; hammy, 151; neutral, 56; spammy, 0. spammytokens: hammytokens:0.000-+--H*M:reportbug, 0.000-+--H*MI:reportbug, 0.000-+--H*x:reportbug, 0.000-+--H*UA:reportbug, 0.000-+--x86_64 X-Spam-Status: No, score=-11.9 required=4.0 tests=BAYES_00,FOURLA,HAS_PACKAGE, XMAILER_REPORTBUG autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 From: Michael Stapelberg <michael+db20090501@stapelberg.de> To: Debian Bug Tracking System <submit@bugs.debian.org> Package: dhcp3-client Version: 3.1.1-6 Severity: important Normally, when using DHCP, I get a line like "search foo.lan" in my /etc/resolv.conf. After specifying the following in /etc/dhcp3/dhclient.conf: prepend domain-search "example.net"; my /etc/resolv.conf contained "search example.net." where it should use "search example.net foo.lan" instead.----- End forwarded message -----
Hi, This bug was reported by a Debian user in version 3.1.1, and I've been able to reproduce it in 3.1.3 and 4.1.0 Please maintain the Cc list to keep our bug tracking system in the loop Steps to reproduce: Configure DHCP server to provide domain-search with two or more domains Configure DHCP client to prepend domain-search with another domain Expected result: Configured domain search list consists of the DHCP-provided domains with the client-configured domain prepended to the list Actual result: Configured domain search list consists of the first DHCP-provided domain (only) with the client-configured domain prepended. The lease file contains a trailing comma and some whitespace before the semicolon----- Forwarded message from Michael Stapelberg <michael+db20090501@stapelberg.de> ----- Subject: Bug#533302: dhclient.conf: prepend domain-search "example.net" does not prepend but replace the search value Reply-To: Michael Stapelberg <michael+db20090501@stapelberg.de>, 533302@bugs.debian.org Resent-From: Michael Stapelberg <michael+db20090501@stapelberg.de> Resent-To: debian-bugs-dist@lists.debian.org Resent-CC: Andrew Pollock <apollock@debian.org> Resent-Date: Tue, 16 Jun 2009 11:42:02 +0000 Resent-Message-ID: <handler.533302.B.124515054327309@bugs.debian.org> Resent-Sender: owner@bugs.debian.org X-Debian-PR-Message: report 533302 X-Debian-PR-Package: dhcp3-client X-Debian-PR-Keywords: X-Debian-PR-Source: dhcp3 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rietz.debian.org X-Spam-Level: X-Spam-Bayes: score:0.0000 Tokens: new, 20; hammy, 151; neutral, 56; spammy, 0. spammytokens: hammytokens:0.000-+--H*M:reportbug, 0.000-+--H*MI:reportbug, 0.000-+--H*x:reportbug, 0.000-+--H*UA:reportbug, 0.000-+--x86_64 X-Spam-Status: No, score=-11.9 required=4.0 tests=BAYES_00,FOURLA,HAS_PACKAGE, XMAILER_REPORTBUG autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 From: Michael Stapelberg <michael+db20090501@stapelberg.de> To: Debian Bug Tracking System <submit@bugs.debian.org> Package: dhcp3-client Version: 3.1.1-6 Severity: important Normally, when using DHCP, I get a line like "search foo.lan" in my /etc/resolv.conf. After specifying the following in /etc/dhcp3/dhclient.conf: prepend domain-search "example.net"; my /etc/resolv.conf contained "search example.net." where it should use "search example.net foo.lan" instead.----- End forwarded message -----
# Automatically generated email from bts, devscripts version 2.10.35lenny7 # Requires at least two domains in domain-search to reproduce notfixed 533302 3.1.3-1
# Automatically generated email from bts, devscripts version 2.10.35lenny7 # Requires at least two domains in domain-search to reproduce notfixed 533302 4.1.0-1
----- Forwarded message from DHCP Bugs via RT <dhcp-bugs@isc.org> -----
From: DHCP Bugs via RT <dhcp-bugs@isc.org>
To: apollock@debian.org
Subject: [ISC-Bugs #20558] AutoReply: [michael+db20090501@stapelberg.de: Bug#533302: dhclient.conf: prepend domain-search "example.net" does not prepend but replace the search value]
Date: Mon, 2 Nov 2009 05:22:13 +0000
Greetings,
This message has been automatically generated in response to the
creation of a trouble ticket regarding:
"[michael+db20090501@stapelberg.de: Bug#533302: dhclient.conf: prepend domain-search "example.net" does not prepend but replace the search value]",
a summary of which appears below.
There is no need to reply to this message right now. Your ticket has been
assigned an ID of [ISC-Bugs #20558].
Please include the string:
[ISC-Bugs #20558]
in the subject line of all future correspondence about this issue. To do so,
you may reply to this message.
Thank you,
dhcp-bugs@isc.org
-------------------------------------------------------------------------
Hi,
This bug was reported by a Debian user in version 3.1.1, and I've been able
to reproduce it in 3.1.3 and 4.1.0
Please maintain the Cc list to keep our bug tracking system in the loop
Steps to reproduce:
Configure DHCP server to provide domain-search with two or more domains
Configure DHCP client to prepend domain-search with another domain
Expected result:
Configured domain search list consists of the DHCP-provided domains with the
client-configured domain prepended to the list
Actual result:
Configured domain search list consists of the first DHCP-provided domain
(only) with the client-configured domain prepended. The lease file contains
a trailing comma and some whitespace before the semicolon
----- Forwarded message from Michael Stapelberg <michael+db20090501@stapelberg.de> -----
Subject: Bug#533302: dhclient.conf: prepend domain-search "example.net" does
not prepend but replace the search value
Reply-To: Michael Stapelberg <michael+db20090501@stapelberg.de>,
533302@bugs.debian.org
Resent-From: Michael Stapelberg <michael+db20090501@stapelberg.de>
Resent-To: debian-bugs-dist@lists.debian.org
Resent-CC: Andrew Pollock <apollock@debian.org>
Resent-Date: Tue, 16 Jun 2009 11:42:02 +0000
Resent-Message-ID: <handler.533302.B.124515054327309@bugs.debian.org>
Resent-Sender: owner@bugs.debian.org
X-Debian-PR-Message: report 533302
X-Debian-PR-Package: dhcp3-client
X-Debian-PR-Keywords:
X-Debian-PR-Source: dhcp3
X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02
(2007-08-08) on rietz.debian.org
X-Spam-Level:
X-Spam-Bayes: score:0.0000 Tokens: new, 20; hammy, 151; neutral, 56; spammy,
0. spammytokens: hammytokens:0.000-+--H*M:reportbug,
0.000-+--H*MI:reportbug, 0.000-+--H*x:reportbug,
0.000-+--H*UA:reportbug, 0.000-+--x86_64
X-Spam-Status: No, score=-11.9 required=4.0 tests=BAYES_00,FOURLA,HAS_PACKAGE,
XMAILER_REPORTBUG autolearn=ham
version=3.2.3-bugs.debian.org_2005_01_02
From: Michael Stapelberg <michael+db20090501@stapelberg.de>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Package: dhcp3-client
Version: 3.1.1-6
Severity: important
Normally, when using DHCP, I get a line like "search foo.lan" in my /etc/resolv.conf.
After specifying the following in /etc/dhcp3/dhclient.conf:
prepend domain-search "example.net";
my /etc/resolv.conf contained "search example.net." where it should use
"search example.net foo.lan" instead.
----- End forwarded message -----
----- End forwarded message -----
reassign 533302 isc-dhcp-client 4.2.2.dfsg.1-5+deb70u2 thanks I can still reproduce this bug (over 3 years old by now!) with isc-dhcp-client 4.2.2.dfsg.1-5+deb70u2 (currently in testing): $ cat /etc/resolv.conf domain gesteb.lan search gesteb.lan nameserver 192.168.210.10 $ cat >>/etc/dhcp/dhclient.conf <<EOF supersede domain-name "gesteb-service.de"; prepend domain-search "gesteb-service.de"; EOF $ ifdown eth0 && ifup eth0 $ cat /etc/resolv.conf . domain gesteb-service.de search gesteb-service.de. nameserver 192.168.210.10 Is there any news from ISC about this issue (tracked as [ISC-Bugs #20558])?
control: found -1 4.2.4-7 Hi, Michael Stapelberg <stapelberg@debian.org> writes: Another year has passed and I ran into this bug again, this time with isc-dhcp-client 4.2.4-7. Any news?
You have a new fax! Please check your fax document in the attachment to this e-mail. Pages scanned: 10 Sender: Enrique Bullock Date of scan: Wed, 28 Oct 2015 04:09:08 +0300 Document name: document_0000151137.doc Scanned in: 35 seconds File size: 178 Kb Scan quality: 600 DPI Thanks for choosing Interfax!
Dear Customer, Your item has arrived at February 22, but our courier was not able to deliver the parcel. Please check delivery label attached! Respectfully, George Sexton, UPS Office Manager.
Dear submitter, as the package isc-dhcp has just been removed from the Debian archive unstable we hereby close the associated bug reports. We are sorry that we couldn't deal with your issue properly. For details on the removal, please see https://bugs.debian.org/1143544 The version of this package that was in Debian prior to this removal can still be found using https://snapshot.debian.org/. Please note that the changes have been done on the master archive and will not propagate to any mirrors until the next dinstall run at the earliest. This message was generated automatically; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmaster@ftp-master.debian.org. Debian distribution maintenance software pp. Thorsten Alteholz (the ftpmaster behind the curtain)