Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Howto clear cached MX records?

Posted on 2009-04-01
5
2,080 Views
Last Modified: 2013-12-06
Hi,
Please help me with this simple question.

Commands that DID NOT help me with this question:
/etc/rc.d/init.d/nscd restart
rndc flush
rndc reload
/etc/rc.d/init.d/named restart

After them i still get old MX records.
0
Comment
Question by:Dmitriy Ilyin
  • 2
  • 2
5 Comments
 
LVL 70

Assisted Solution

by:Chris Dent
Chris Dent earned 450 total points
ID: 24037946

Do you use Forwarders? Because if you use Forwarders in your configuration you will always get the cached response from the Forwarder.

If you run:

dig <domain> mx

It should also show you the TTL remaining which would be useful as well.

Chris
0
 
LVL 11

Assisted Solution

by:kyodai
kyodai earned 50 total points
ID: 24037948
Reflush the nscd daemon, eg. /etc/init.d/nscd restart. If you still get old DNS records you are using another DNS server (The server you issued the command at is NOT the dns server). Either also reflush the dns server your linux host is refering to or change it to another DNS.
0
 
LVL 11

Author Comment

by:Dmitriy Ilyin
ID: 24038103
It's seems to me i don't use forwarders...
Where i can check this?

0
 
LVL 70

Accepted Solution

by:
Chris Dent earned 450 total points
ID: 24038194

named.conf, Global section unless it's a conditional forward in which case it will be listed as a zone.

If it isn't using Forwarders you would have to check the answer from the servers authoritative for the domain. Perhaps the quickest way is:

dig domain.com mx +trace

Or direct a query at each name server listed in the NS record:

dig domain.com mx @ns1.domain.com
dig domain.com mx @ns2.domain.com
etc

The idea being to find the source of the response for your query.

Chris
0
 
LVL 11

Author Closing Comment

by:Dmitriy Ilyin
ID: 31597474
All my dig commands recieve data from forwarder.
Thanks for +trace tip :)
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I will assume you are running a non-server version of some sort of Windows throughout this article. There are many flavors of Windows since Windows Server 2000 - 2008, XP Home & Pro, Vista Home & Pro, and Windows 7 Starter, Home, Pro, Ultimate, etc.…
If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question