Linux - Newbie This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
03-04-2017, 07:51 AM
|
#1
|
Member
Registered: Aug 2013
Posts: 31
Rep:
|
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?
|
|
|
03-04-2017, 09:19 AM
|
#2
|
Senior Member
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,208
|
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.
|
|
|
03-04-2017, 12:12 PM
|
#3
|
Member
Registered: Aug 2013
Posts: 31
Original Poster
Rep:
|
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.
|
|
|
03-04-2017, 12:42 PM
|
#4
|
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,861
|
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.
|
|
|
03-04-2017, 01:26 PM
|
#5
|
Member
Registered: Aug 2013
Posts: 31
Original Poster
Rep:
|
That was it. There was an entry in /etc/hosts, which I've now removed.
Thanks alot
|
|
|
All times are GMT -5. The time now is 07:34 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|