Bug 248715 - dhclient: prepend domain-name-servers in dhclient.conf 'replaces' dhcpd provided value
Summary: dhclient: prepend domain-name-servers in dhclient.conf 'replaces' dhcpd provi...
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: 12.1-STABLE
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
Keywords: needs-patch, needs-qa
Depends on:
Reported: 2020-08-18 06:38 UTC by Dmitry Afanasiev
Modified: 2021-02-01 23:57 UTC (History)
1 user (show)

See Also:
koobs: mfc-stable12?
koobs: mfc-stable11?


Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Afanasiev 2020-08-18 06:38:14 UTC
I'm want to use local dnsmasq. I added this line to dhclient.conf:
prepend domain-name-servers;

But got in resolv.conf *ONLY* "", and no NS from dhclient.

This problem exists starting from FreeBSD-10, on some older release this options was worked properly.
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2020-08-18 11:27:22 UTC
I was meant to report this a short while ago on CURRENT:


I think the append/prepend issue affects more than just 'domain-name-server' as well.
Comment 2 Dmitry Afanasiev 2020-08-24 12:58:07 UTC
I'm not checked all prepend options, but option "prepend domain-name" works propely.
Comment 3 roy 2021-02-01 23:57:06 UTC
FreeBSD uses openresolv.
If openresolv sees then it assumes that the local resolver is configured correctly.

You should see your DHCP provided nameservers still with
`resolvconf -l`

You can change the default by adding this to /etc/resovlconf.conf