[SOLVED] Which cache to flush after changing ip address of other machine?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Which cache to flush after changing ip address of other machine?
I have reconfigured my router so that a "machine A" on my network has a different IP address to the one it previously had.
From another machine ("B", which is running linux mint), I'm trying to ping A by name (rather than by IP) but it's looking for the old IP address, so ping fails.
Pinging the new IP address does work from machine B.
Which cache do I need to flush or which entry should I remove from B to disassociate the "A" name from the old IP?
Host information most commonly comes from a file, NIS, or DNS. Which source are you using and have you updated it? If using DNS and the server has already been updated then restart the local daemon. This could be named, Dnsmasq, or nscd.
I'm not doing anything bespoke and i'm not familiar with NIS. I presumed I was using DNS but with a layer of caching.
I had already tried searching for how to flush a dns cache before posting but the instructions I found suggest restarting various services (including nscd, dnsmasq, named) or using rndc. But I don't seem to have any of these services.
I do have a dnsmasq process which I've stopped and restarted but that didnt fix my problem.
Routers, and even your own local machine, might have domain-name resolution caches. (Apple's mDNSResponder daemon will also cache "domain not found" results.)
You might also have a /etc/hosts file.
Use the command dig hostname to ask to resolve the name, and you will be told which DNS source provided the answer.
The commands used in MS-Windows are different, but the principles are exactly the same.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.