NSLOOKUP not returning MX Records

Posted on 2011-05-09
Medium Priority
Last Modified: 2012-05-11
Hello Experts,

I have AD domain called test.com and have an exchange organisation. I also have a edge transport server. So i created an MX Record in DNS for my edge and everything is working fine, i mean email flow. I can send/recieve email. I have a phone system which will send emails when a user gets Voicemail and its not working.

So i checked nslookup to see my MX Records with set type=MX and i got the below reponse.

        primary name server = dc1.test.com
        responsible mail addr = admin.test.com
        serial  = 86835
        refresh = 900 (15 mins)
        retry   = 600 (10 mins)
        expire  = 86400 (1 day)
        default TTL = 900 (15 mins)

I am not getting my MX Records. Can you help me find why ? if i do hotmail.com or google.com or any other its returning MX records but for test.com i get the above response.

Please help!

Question by:PHESupport
  • 3
  • 3
LVL 40

Expert Comment

ID: 35723490
are you sure that mx records are stored in the zone file? can you list records in zone file?

Author Comment

ID: 35723593
Yes the MX records are there in the zone file and pointing to correct IP's. if i do mailserver.test.com then i get

mailserver.test.com MX Preference = 10, mail exchanger = mailserver.test.com
mailserver.test.com internet address =
LVL 71

Expert Comment

by:Chris Dent
ID: 35723598
No MX record, it's giving you the SOA.


That looks like a private DNS service, you'll only see a public MX if you manually replicated it into the private service.

If you want to test the public view of the MX:

nslookup -q=mx thedomain.com

Where is Google's free public DNS service.

What Security Threats Are We Predicting for 2018?

Cryptocurrency, IoT botnets, MFA, and more! Hackers are already planning their next big attacks for 2018. Learn what you might face, and how to defend against it with our 2018 security predictions.

LVL 71

Accepted Solution

Chris Dent earned 2000 total points
ID: 35723607
> mailserver.test.com MX Preference = 10, mail exchanger = mailserver.test.com

This is an MX record for the domain mailserver.test.com, it's active when you send to someone@mailserver.test.com.

If you had the zone "test.com" and you use MS DNS you would leave the name field (domain / child / whatever) blank so you end up with:

(same as parent folder)   MX  10   mailserver.test.com.


Author Comment

ID: 35723635
Yes it is a private DNS server running on my DC.

When i do the nslookup -q mx=test.com i get the public MX Records correctly.

Why is my private MX Records not showing up ? my phone system queries for the MX record in the domain and uses to send email and since i am not getting any response its not working. I moved to 2010 over the weekend and the problem started from then

Do i have to do anything else apart from creating MX record in my zone file ?
LVL 71

Expert Comment

by:Chris Dent
ID: 35723689
> Why is my private MX Records not showing up ?

Because you did it wrong. See my last comment about what you made vs what you needed to make.


Author Closing Comment

ID: 35723763
Thank you Chris. That was the problem. I need to leave the name field bland to make it work.

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

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

If something goes wrong with Exchange, your IT resources are in trouble.All Exchange server migration processes are not designed to be identical and though migrating email from on-premises Exchange mailbox to Cloud’s Office 365 is relatively simple…
Mailbox Corruption is a nightmare every Exchange DBA wishes he never has. Recovering from it can be super-hectic if not entirely futile. And though techniques like the New-MailboxRepairRequest cmdlet have been designed to help with fixing minor corr…
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Suggested Courses

850 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