?
Solved

Howto clear cached MX records?

Posted on 2009-04-01
5
Medium Priority
?
2,252 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
[X]
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
  • 2
  • 2
5 Comments
 
LVL 71

Assisted Solution

by:Chris Dent
Chris Dent earned 1800 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 200 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 71

Accepted Solution

by:
Chris Dent earned 1800 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

WordPress Tutorial 2: Terminology

An important part of learning any new piece of software is understanding the terminology it uses. Thankfully WordPress uses fairly simple names for everything that make it easy to start using the software.

Question has a verified solution.

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

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…
Occasionally you run into the website or two that will not resolve properly using your own DNS servers.  Some people simply set up global forwarders for their DNS server.  I don’t recommend doing this because it can cause problems resolving addresse…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Suggested Courses

770 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