#533302 dhclient.conf: prepend domain-search "example.net" does not prepend but replace the search value

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:
#533302#5
Date:
2009-06-16 11:09:01 UTC
From:
To:
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.

#533302#10
Date:
2009-10-16 19:39:01 UTC
From:
To:
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

#533302#15
Date:
2009-10-16 20:52:04 UTC
From:
To:
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.

#533302#20
Date:
2009-10-16 20:58:03 UTC
From:
To:
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
#533302#25
Date:
2009-10-16 21:16:53 UTC
From:
To:
reopen 533302
thanks

No, you're absolutely correct, I had supersede and prepend confused in my
mind.

#533302#34
Date:
2009-11-02 02:52:19 UTC
From:
To:
# Automatically generated email from bts, devscripts version 2.10.35lenny7
# Not reproducible in 4.1.0-1
fixed 533302 4.1.0-1

#533302#41
Date:
2009-11-02 02:57:09 UTC
From:
To:
# Automatically generated email from bts, devscripts version 2.10.35lenny7
# Not reproducible in 3.1.3-1
fixed 533302 3.1.3-1

#533302#48
Date:
2009-11-02 03:14:30 UTC
From:
To:
I'm closing this bug because I cannot reproduce it with the version of
dhcp3-client in unstable.

#533302#53
Date:
2009-11-02 05:14:58 UTC
From:
To:
# Automatically generated email from bts, devscripts version 2.10.35lenny7
# Only happens with two domains in the domain-search option
reopen 533302

#533302#58
Date:
2009-11-02 05:22:02 UTC
From:
To:
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 -----
#533302#63
Date:
2009-11-02 05:22:02 UTC
From:
To:
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 -----
#533302#68
Date:
2009-11-02 05:16:28 UTC
From:
To:
# 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

#533302#73
Date:
2009-11-02 05:16:35 UTC
From:
To:
# 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

#533302#78
Date:
2009-11-02 05:38:50 UTC
From:
To:
----- 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 -----
#533302#83
Date:
2012-12-11 19:13:01 UTC
From:
To:
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])?

#533302#94
Date:
2013-12-06 20:37:10 UTC
From:
To:
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?

#533302#101
Date:
2015-10-28 13:14:56 UTC
From:
To:
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!

#533302#106
Date:
2017-02-25 16:06:21 UTC
From:
To:
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.

#533302#111
Date:
2026-08-05 17:31:09 UTC
From:
To:
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)