[gentoo-user] Re: resolv.conf full of old info

2022-10-18 Thread Grant Edwards
On 2022-10-18, Grant Edwards  wrote:

> I've noticed that /etc/resolv.conf seems to accumulate obsolete,
> useless info as my laptop moves from one network to another. It looks
> like dhcpcd adds stuff when a connection comes up, but never removes
> it when the connection goes down.

This appears to be caused by the "persistent" option in dhcpcd.conf,
which is set by default. I commented it out, and now resolv.conf
behaves rationally: it only contains info for network connections that
are up.

Why would dhcpcd have the persistent option enabled by default?

--
Grant




[gentoo-user] resolv.conf full of old info

2022-10-18 Thread Grant Edwards
I've noticed that /etc/resolv.conf seems to accumulate obsolete,
useless info as my laptop moves from one network to another. It looks
like dhcpcd adds stuff when a connection comes up, but never removes
it when the connection goes down.

There are search entries and nameserver entries from networks I
haven't been connected to for a long time.

Even when there are no network interfaces up/configured,
/etc/resolv.conf is full of entries -- and none of them are useful or
valid.

I've tried shutting down all of the network interfaces, deleteting all
of the leases from /var/lib/dhcpcd and then removing resolv.conf. The
next time any interface comes up, /etc/resolv.conf is again full of
obsolete stuff along with the valid entries for the interface that has
just come up.

How do you get rid of old entries that show up in resolv.conf?





[gentoo-user] JOB | IT job (Singapore)

2022-10-18 Thread James Tobin
Hello, I'd like to hear from any graduate looking to develop their IT
career in Singapore.  I can be reached using "jamesbtobin (at) gmail
(dot) com".  Kind regards, James