Context
I intended to set up a local DNS server with Technitium and would like to verify the local DNS server returns the correct response when it is being queried for a domain. It does not work while using nslookup mydomain.com
. I expect that to be because the local dns server is not reached from a public/internet place.
To exclude that this is caused by my local DNS server not working correctly (locally), I would like to verify that at least the local DNS server returns the correct IP address if it is queried for my domain.
Attempts
The local DNS server runs on local IP address 127.0.0.1
at port 5379
hence I tried the following commands followed by their respective outputs:
nslookup 127.0.0.1 somedomain.com
;; connection timed out; no servers could be reached
nslookup 127.0.0.1:5379 somedomain.com
nslookup: couldn't get address for 'somedomain.com': failure
nslookup http://127.0.0.1:5379 somedomain.com
;; connection timed out; no servers could be reached
nslookup https://127.0.0.1:5379 somedomain.com
;; connection timed out; no servers could be reached
So either the testing command nslookup 127.0.0.1:5379 somedomain.com
is a possible way to test whether the local DNS server returns the correct IP address when it is queried some domain, and I have not set up the local DNS server correctly, or I am using an incorrect testing command.
Question
How can one test the whether the response of a local DNS server returns the correct IP address when it is queried for a domain (from the device that hosts the DNS server)?
dig
instead, it should offer more verbose output. // DNS is not HTTP so throwing URLs atnslookup
isn’t going to work.