dhcpcd-discuss

Re: Not regen resolv.conf if not needed

Roy Marples

Wed Dec 14 08:01:51 2011

Hi

On Wed, 14 Dec 2011 06:57:41 +0100, BRULE Herman wrote:
Hello, on my home router, regenerate the resolv.conf  have very big
cost (very slow machine), that's wake up the disk, and the disk have
hardware defect.
How force (or where patch manually) dhcpcd to regen the resolv.conf
only if the dns server have change and at the startup?

I'm assuming that some external process monitors /etc/resolv.conf?
Anyway, the attached patch should help.
Also committed here:
http://roy.marples.name/projects/dhcpcd/changeset/4b1430fc7934532ea4708e6c461c80196a1b0b14

Thanks

Roy

Attachment: dhcpcd-regenresolv.diff
Description: Binary data


References:
Not regen resolv.conf if not neededBRULE Herman
Archive administrator: postmaster@marples.name