Solved

Howto clear cached MX records?

Posted on 2009-04-01
5
1,994 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
Comment Utility

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
Comment Utility
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
Comment Utility
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
Comment Utility

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
Comment Utility
All my dig commands recieve data from forwarder.
Thanks for +trace tip :)
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
This video discusses moving either the default database or any database to a new volume.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

763 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

12 Experts available now in Live!

Get 1:1 Help Now