Solved

Howto clear cached MX records?

Posted on 2009-04-01
5
2,031 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Parse DNS log 3 53
Enable Auto Discover in Exchange Server 2003 for Outlook 2007/10/13 9 63
OpenVPN Speed limitation to only 10 mbps 7 95
DNS Redirection 6 26
If you have a multi-homed DNS setup in windows, you can have issues with connectivity to the server that hosts the DNS services (or even member servers of your domain if this same DNS server is a DC). This is because windows registers all of its IPs…
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.…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

920 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now