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)
URL:
Keywords: needs-patch, needs-qa
Depends on:
Blocks:
 
Reported: 2020-08-18 06:38 UTC by Dmitry Afanasiev
Modified: 2020-08-24 12:58 UTC (History)
0 users

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


Attachments

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 127.0.0.1;

But got in resolv.conf *ONLY* "127.0.0.1", 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:

https://twitter.com/koobs/status/1284414758301470720

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.