You are not logged in.
Pages: 1
So I wanted to clear my DNS cache and did a search for how to do it. So I found to run either:
sudo /etc/init.d/networking restart or sudo service networking restart (from here). When I ran them (I ran both) I got a message that it was deprecated. The exact message on both was:
Running /etc/init.d/networking restart is deprecated because it may not re-enable some interfaces ... (warning).
Reconfiguring network interfaces...done.
So I have two questions: 1) Did one, or both, of these commands work or not? 2) Is there a better way to clear the DNS cache?
Offline
check /etc/resolv.conf for clues
cat /etc/resolv.conf
check NetworkManager settings
sudo NetworkManager --print-config
also a further note regarding DNS resolving.
i used DDG to search the terms "force pihole usage"(quotation marks only for forum post clarity, didn't use them for the search)
there were multiple pages of results given the popularity of raspberry pi units these days(not to mention trying to stop all the ads/beacons/click-bait/cookies/iframes/javascript/pop-ups/redirects/super-cookies/third-party-cookies/trackers/zomg-and now all the AI generated garbage as well)
here is one that might be helpful even if more as an overview:
https://labzilla.io/blog/force-dns-pihole
and just for additional amusement: zomg
https://english.stackexchange.com/questions/4075/what-is-the-origin-of-zomg
bonus: don't forget that some/most? browsers cache dns as well...sigh... _neverending_whackamole_
Last edited by stargate-sg1-cheyenne-mtn (2024-11-15 09:46:49)
Be Excellent to each other and Party On!
https://www.youtube.com/watch?v=rph_1DODXDU
https://en.wikipedia.org/wiki/Bill_%26_Ted%27s_Excellent_Adventure
Do unto others as you would have them do instantaneously back to you!
Offline
I hawent tried this, but the description looks right
/etc/rc.d/init.d/nscd restart
Laptop lenovo
Desktop XFCE
Os Devuan GNU/Linux
Offline
I don't have an rc.d folder in /etc. I have a rc0.d, rc1.d, rc2.d, rc3.d, rc4.d, rc5.d, rc6.d, and a rcS.d folder. But according to a post in another forum, Devuan doesn't cache DNS. Is that true?
Offline
Hello:
@Ron
See https://www.linux.org/threads/clearing- … ost-250695
Since you are using Devuan you do not need to flush the DNS Cache it does not cache DNS lookups - depending if you installed it with SysVInit or RunIt - since there is no systemd any systemd commands will not work such as systemctl
You router may cache them but all non-systemd Linux OSes do not DNS cache as far as I know
That said, I run a Chimaera VM with pi-hole and unbound inside my Daedalus box.
There is a DNS cache but it is mine.
It can be flushed though the UI.
Best,
A.
Offline
Pages: 1