Reply To: dhclient overwriting resolv.conf

Home Page Forums Network Management Signal a BUG dhclient overwriting resolv.conf Reply To: dhclient overwriting resolv.conf

#47534

fish
Member

I added these two lines to my post-boot script:

echo “supersede domain-name “example.com”;” >> /etc/dhclient.conf
echo “supersede domain-name-servers 127.0.0.1;” >> /etc/dhclient.conf

but it seems that dhclient as already done it’s thing by the time the post-boot script runs. This solves any further DHCP lease renewal issues but doesn’t get it before the client obtains a lease on boot.

Putting these two lines in the pre-boot script doesn’t seem to do anything.

How do I make this persistent?