LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 03-04-2017, 07:51 AM   #1
nix.noob
Member
 
Registered: Aug 2013
Posts: 30

Rep: Reputation: Disabled
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?
 
Old 03-04-2017, 09:19 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora 33
Posts: 3,602

Rep: Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028
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.
 
Old 03-04-2017, 12:12 PM   #3
nix.noob
Member
 
Registered: Aug 2013
Posts: 30

Original Poster
Rep: Reputation: Disabled
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.
 
Old 03-04-2017, 12:42 PM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,235
Blog Entries: 4

Rep: Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262
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.
 
Old 03-04-2017, 01:26 PM   #5
nix.noob
Member
 
Registered: Aug 2013
Posts: 30

Original Poster
Rep: Reputation: Disabled
That was it. There was an entry in /etc/hosts, which I've now removed.
Thanks alot
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to flush the DNS cache? grumpyskeptic Linux - Networking 2 02-13-2017 01:27 AM
Flush arp cache trackstar2000 Linux - Newbie 1 08-10-2013 12:01 PM
how to flush dns cache SarahGurung Linux - Newbie 2 10-18-2011 06:05 AM
how-to flush dns cache PlatinumRik Linux - Networking 6 07-27-2011 02:47 PM
DNS Cache Flush not Working!!!! thaj Linux - Networking 0 11-21-2007 03:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration