Share via


dns nslookup issue - hostname vs fqdn

Question

Tuesday, November 27, 2018 11:23 AM

Hello,

what could be the reason if i get different answers when i try to make a nslookup with hostname and with a Fqdn:

Example:

Test 1)

nslookup client01

answer: client01.mydomain.com with ip 192.168.5.50 -> correct

Test 2)

nslookup client01.mydomain.com

answer: foreignClient.foreignDomain.com -> 85.120.xxx.xxx -> not correct, its a public ip and host not from out Company

in debug mode:

nslookup client01.mydomain.com

Question: foreignClient.foreignDomain.com.foreignDomain.com -> why Domain.domain ?

thank you!

All replies (5)

Wednesday, November 28, 2018 2:15 AM

Hi,

Is a DNS suffix foreignDomain.com in the suffixes list?

Which DNS server the client used to resolve the FQDN?

Have you set local DNS server as preferred DNS server?

Best regards,

Travis

Please remember to mark the replies as an answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected]


Wednesday, November 28, 2018 9:27 AM

Hi,

**Is a DNS suffix foreignDomain.com in the suffixes list? **

-> NO

Which DNS server the client used to resolve the FQDN?

First our local Windows dns Server (our Domain in this case would be: test.mydomain.co.at)

Question: myClient.test.mydomain.co.at.test.mydomain.co.at(funny why test.mydomain.co.at.test.mydomain.co.at)

answer from: Primary Name Server: dns.mydomain.co.at (local Windows dns Server)

Question: myclient.test.mydomain.co.at.mydomain.co.at

answer from: Primary Name Server: ns1.mydomain.com (Linux bind9)

Question: myclient.test.mydomain.co.at.co.at

answer from: Primary Name Server: dnsserverfrom.at.co.at domain

Name: myclient.test.mydomain.co.at.co.at

public IP

So the first Question is already wrong -because i ask for myclient.test.mydomain.co.at and not for myclient.test.mydomain.co.at.test.mydomain.co.at

Have you set local DNS server as preferred DNS Server?

Yes - Default Server = our local DNS Server

Thank you


Wednesday, November 28, 2018 10:13 AM

Hello,

Ok so that's why you got the issue you should always put a dot at the end of every query in nslookup in order to indicate that you don't want to append a suffix to your search.

So if you want to search for "myclient.test.mydomain.com" you should put "myclient.test.mydomain.com."

Below an article from an MVP regarding that :

https://blogs.msmvps.com/acefekay/2013/02/17/nslookup-suffixing-behavior/

Best Regards,


Thursday, November 29, 2018 6:27 AM

Hi,

Please refer to the link below:

https://serverfault.com/questions/285440/dns-query-appending-parent-suffix-twice  

Best regards,

Travis

Please remember to mark the replies as an answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected]


Saturday, December 1, 2018 11:39 PM

Hi,

Just checking in to see if the information provided was helpful.

Please let us know if you would like further assistance.

Best Regards,

Travis

Please remember to mark the replies as an answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected]