How can I direct a query to specific DNS server?

dns
1
User1984 59 Rep.

I would like to issue a query to a specific DNS server, whose IP address I know. It doesn’t really matter if it’s on Windows or Linux.

In Windows I can do something like:

C:\>nslookup google.com

But this uses my system’s DNS to query. Instead of this, I would like to query a specific DNS server, to test if it is responding to my queries correctly or responding at all.

So it should be something like:

nslookup –dns-ip=8.8.8.8 google.com

Is this possible with nslookup?

Kailash selected answer

Best answer

0
Kailash 188 Rep.

It is simple. Just use following:

nslookup google.com 8.8.4.4

Replace 8.8.4.4 (this is Google DNS) with specific DNS. This should show A record as follow:

C:\>nslookup google.com 8.8.4.4
Server:  google-public-dns-b.google.com
Address:  8.8.4.4

Non-authoritative answer:
Name:    google.com
Addresses:  2404:6800:4003:c01::65
74.125.130.101
74.125.130.139
74.125.130.102
74.125.130.100
74.125.130.138
74.125.130.113

For more options, just type nslookup in command prompt.

Kailash selected as best answer
×

Login

Login to see your profile links
Bloom Email Optin Plugin

Users

Kailash
188 Rep. 21 Best 33 Answers 1 Questions
User1984
User1984
59 Rep. 0 Best 0 Answers 24 Questions
Scott
Scott
43 Rep. 6 Best 7 Answers 1 Questions