Avatar of leop1212
leop1212
Flag for United States of America asked on

DNS MX record query problem

I have a problem resolving mx record for madronafoods.com on my dc.
 nslookup return
Name:    madronafoods.com
Address:  62.0.58.94

while when try mx record
set  type=mx
DNS request timed out. for madronafoods.com
    timeout was 2 seconds.

I can't change my primary DNS as it has to be my DC
when I try nslookup on another ISP  I am getting correct mx record
Non-authoritative answer:
madronafoods.com      mail exchanger = 0 madronafoods-com.mail.protection.outlook.com.

this problem Is only with a single domain. and my email server can't send and email without resolving mx.
what can case such problem what is the simple way to resolve it without changing hosts file manually and changing primary DNS server (has to be my DC)
ExchangeDNS

Avatar of undefined
Last Comment
Jan Bacher

8/22/2022 - Mon
Dr. Klahn

Create an MX record in your DC's DNS database.
Jan Bacher

The real question is:  why can't your DNS server find an MX record?

Install dig for windows.

dig madronafoods.com mx @IP_of_your_dns_server

and

dig madronafoods.com mx @IP_of_your_dns_server +trace

What are the results?
leop1212

ASKER
dig madronafoods.com mx @192.168.2.61

; <<>> DiG 9.10.4-P2 <<>> madronafoods.com mx @192.168.2.61
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 35758
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4000
;; QUESTION SECTION:
;madronafoods.com.              IN      MX

;; Query time: 2066 msec
;; SERVER: 192.168.2.61#53(192.168.2.61)
;; WHEN: Fri Jul 29 17:29:29 Eastern Daylight Time 2016
;; MSG SIZE  rcvd: 45





C:\dig>dig madronafoods.com mx @192.168.2.61 +trace

; <<>> DiG 9.10.4-P2 <<>> madronafoods.com mx @192.168.2.61 +trace
;; global options: +cmd
.                       29031   IN      NS      d.root-servers.net.
.                       29031   IN      NS      a.root-servers.net.
.                       29031   IN      NS      i.root-servers.net.
.                       29031   IN      NS      l.root-servers.net.
.                       29031   IN      NS      e.root-servers.net.
.                       29031   IN      NS      g.root-servers.net.
.                       29031   IN      NS      k.root-servers.net.
.                       29031   IN      NS      h.root-servers.net.
.                       29031   IN      NS      b.root-servers.net.
.                       29031   IN      NS      j.root-servers.net.
.                       29031   IN      NS      f.root-servers.net.
.                       29031   IN      NS      m.root-servers.net.
.                       29031   IN      NS      c.root-servers.net.
.                       84026   IN      RRSIG   NS 8 0 518400 20160808050000 20160729040000 46551 . KFkfqcNekbgE1uN672M6U9G0AIPs25PUxLuN5rIeNuCQxHh34JgrArIv oZy3EQ/agY6eTqsrnD67cqJf7htPdxa6k1JYSVAScbkNcy3mnNuL8Ce+ nIk2+JR1cRzMR8xZm/OTOn0DU+ZFrJIqy11vZdY84/dIJWi6sgqrxCuX YnY=
;; Received 1638 bytes from 192.168.2.61#53(192.168.2.61) in 0 ms

;; Question section mismatch: got madronafoods.com/A/IN
;; Question section mismatch: got madronafoods.com/A/IN
;; Question section mismatch: got madronafoods.com/A/IN
;; Question section mismatch: got madronafoods.com/A/IN
;; Question section mismatch: got madronafoods.com/A/IN
;; Question section mismatch: got madronafoods.com/A/IN
;; Question section mismatch: got madronafoods.com/A/IN
;; Question section mismatch: got madronafoods.com/A/IN
;; Question section mismatch: got madronafoods.com/A/IN
;; Question section mismatch: got madronafoods.com/A/IN
;; Question section mismatch: got madronafoods.com/A/IN
;; Question section mismatch: got madronafoods.com/A/IN
;; Question section mismatch: got madronafoods.com/A/IN
;; connection timed out; no servers could be reached
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
ASKER CERTIFIED SOLUTION
Jan Bacher

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
leop1212

ASKER
how do I update root server on my internal DNS?
Jan Bacher

Log into the server and open the properties for DNS:

https://technet.microsoft.com/en-us/library/cc730735(v=ws.11).aspx
leop1212

ASKER
i updated all roots few were wrong , however I still have  same problem with resolving mx for madronafoods.com
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Jan Bacher

Are you going any forwarding with your DNS to another server?
leop1212

ASKER
yes.
 it am forwarding to my ISP DNS ns1.hvdata.net which is my ISP dns and I also tried first forward it  to 4.2.2.2 still same results.
when I use 4.2.22.2 on my ws as primary dns  it resolves mx for madronafoods. fine but not on my local DC or local net  which points to my local DC dns.
Jan Bacher

Have you restarted DNS on your dc to flush the cache?

Because, unless you have the domain name configured internally, it should look up the correct information.

Can you do another dig +trace for me?
Your help has saved me hundreds of hours of internet surfing.
fblack61
leop1212

ASKER
i flushdns and restarted DC still no change.
looks like same results on both dig commands
dig madronafoods.com mx @192.168.2.61

; <<>> DiG 9.10.4-P2 <<>> madronafoods.com mx @192.168.2.61
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 18345
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4000
;; QUESTION SECTION:
;madronafoods.com.              IN      MX

;; Query time: 2015 msec
;; SERVER: 192.168.2.61#53(192.168.2.61)
;; WHEN: Sat Jul 30 14:09:14 Eastern Standard Time 2016
;; MSG SIZE  rcvd: 45


C:\dig>dig madronafoods.com mx @192.168.2.61 +trace

; <<>> DiG 9.10.4-P2 <<>> madronafoods.com mx @192.168.2.61 +trace
;; global options: +cmd
.                       3600    IN      NS      e.root-servers.net.
.                       3600    IN      NS      i.root-servers.net.
.                       3600    IN      NS      m.root-servers.net.
.                       3600    IN      NS      l.root-servers.net.
.                       3600    IN      NS      k.root-servers.net.
.                       3600    IN      NS      j.root-servers.net.
.                       3600    IN      NS      b.root-servers.net.
.                       3600    IN      NS      f.root-servers.net.
.                       3600    IN      NS      g.root-servers.net.
.                       3600    IN      NS      c.root-servers.net.
.                       3600    IN      NS      h.root-servers.net.
.                       3600    IN      NS      a.root-servers.net.
.                       3600    IN      NS      d.root-servers.net.
;; Received 460 bytes from 192.168.2.61#53(192.168.2.61) in 0 ms

;; Question section mismatch: got madronafoods.com/A/IN
;; Question section mismatch: got madronafoods.com/A/IN
;; Question section mismatch: got madronafoods.com/A/IN
;; Question section mismatch: got madronafoods.com/A/IN
;; Question section mismatch: got madronafoods.com/A/IN
;; Question section mismatch: got madronafoods.com/A/IN
;; Question section mismatch: got madronafoods.com/A/IN
;; Question section mismatch: got madronafoods.com/A/IN
;; Question section mismatch: got madronafoods.com/A/IN
;; Question section mismatch: got madronafoods.com/A/IN
;; Question section mismatch: got madronafoods.com/A/IN
;; Question section mismatch: got madronafoods.com/A/IN
;; Question section mismatch: got madronafoods.com/A/IN
;; connection timed out; no servers could be reached
Jan Bacher

That's odd.  Can you resolve www.madronafoods.com?

Are you internally resolving outlook.com?

What do you see with a:

    dig madronafoods.com ns
leop1212

ASKER
dig madronafoods.com ns
;; Question section mismatch: got madronafoods.com/A/IN

; <<>> DiG 9.10.4-P2 <<>> madronafoods.com ns
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 54655
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4000
;; QUESTION SECTION:
;madronafoods.com.              IN      NS

;; Query time: 5550 msec
;; SERVER: 192.168.2.61#53(192.168.2.61)
;; WHEN: Sat Jul 30 14:47:13 Eastern Standard Time 2016
;; MSG SIZE  rcvd: 45

ping www.madronafoods.com

Pinging www.madronafoods.com [62.0.58.94] with 32 bytes of data:

>ping outlook.com

Pinging outlook.com [132.245.81.130] with 32 bytes of data:
Reply from 132.245.81.130: bytes=32 time=73ms TTL=235
Reply from 132.245.81.130: bytes=32 time=72ms TTL=235
Reply from 132.245.81.130: bytes=32 time=73ms TTL=235
Reply from 132.245.81.130: bytes=32 time=73ms TTL=235

Ping statistics for 132.245.81.130:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 72ms, Maximum = 73ms, Average = 72ms
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Jan Bacher

If this were my server, I'd install wireshark and capture the conversation to see what is happening with your query.
leop1212

ASKER
i only have problem with a single domain. How do I manually add mx record for an external domain, to my internal DNS server
Jan Bacher

You'd have to have all of the records for that domain and you'd also have to stay on top of any changes.

With the problems that you are experiencing, is it possible that you have this domain configured and the information has changed?
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
leop1212

ASKER
Jan
thank you for detailed answers.
Jan Bacher

Did you fix the problem?  If so, how?