public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] resolv.conf full of old info
@ 2022-10-18 22:21 Grant Edwards
  2022-10-19  0:00 ` [gentoo-user] " Grant Edwards
  0 siblings, 1 reply; 4+ messages in thread
From: Grant Edwards @ 2022-10-18 22:21 UTC (permalink / raw
  To: gentoo-user

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?




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-10-19 13:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-18 22:21 [gentoo-user] resolv.conf full of old info Grant Edwards
2022-10-19  0:00 ` [gentoo-user] " Grant Edwards
2022-10-19  9:22   ` Michael
2022-10-19 13:39     ` Grant Edwards

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox