Author
Message
arrmo DD-WRT Novice Joined: 05 Apr 2010 Posts: 32
Posted: Thu Jul 27, 2017 3:01 Post subject: nslookup returns can't resolve '(null)'
Hi,
There seem to be some postings about this, but it seems unless I force nslookup to query a particular name server, the first output from nslookup (dnsmasq?) is always,
can't resolve '(null)'
Anyone know of a fix for this?
Thanks!
Back to top
Sponsor
James2k DD-WRT Guru Joined: 23 Oct 2011 Posts: 549
Posted: Thu Jul 27, 2017 19:02 Post subject:
Syntax of nslookup on DD-WRT is:
Code: nslookup [DOMAIN] [SERVER]
So to query a specific domain use Google public DNS:
Code: nslookup dd-wrt.com 8.8.8.8
This would return something like this:
Quote: Server: 8.8.8.8
Address 1: 8.8.8.8 google-public-dns-a.google.com
Name: dd-wrt.com
Address 1: 83.141.4.210 mail.dd-wrt.com
_________________ James
Main router:
Netgear R7000 overclocked to 1.2GHz - DD-WRT v3.0-r35965M kongac
IPv6 6in4 (HE.net), OpenVPN (with PBR and split tunnelling), Entware, dnsmasq with ipset
Easy ipset support for the R7000
VPN speed: Download: 77.96 Mbps Upload: 5.00 Mbps (AES-128-CBC HMAC-SHA1)
Yes you can get 50 Mbps+ with OpenVPN on a R7000 if you configure it properly!
Previous routers:
ASUS RT-N66U - The Dark Knight
WNR2000v3 - Bought on the cheap for someone else, neutered crap
WNR3500Lv1 - First venture into the DD-WRT world
Back to top
arrmo DD-WRT Novice Joined: 05 Apr 2010 Posts: 32
Posted: Thu Jul 27, 2017 19:16 Post subject:
Yes, and that works! But if I don't specify the server, it should default to the DNS servers past to the WAN interface via DHCP ... which it does, after it first tries some other server (that shouldn't be checked).
Make sense?
Thanks!
Back to top
yoyoma2 DD-WRT User Joined: 24 Sep 2016 Posts: 372
Posted: Sat Nov 18, 2017 3:11 Post subject:
James2k wrote: Syntax of nslookup on DD-WRT is:
Code: nslookup [DOMAIN] [SERVER]
But nslookup itself says that the server is optional.
Code: # nslookup
BusyBox v1.27.2 (2017-11-03 23:24:05 CET) multi-call binary.
Usage: nslookup [HOST] [SERVER]
Query the nameserver for the IP address of the given HOST
optionally using a specified DNS server
Back to top
arrmo DD-WRT Novice Joined: 05 Apr 2010 Posts: 32
Posted: Sat Nov 18, 2017 18:32 Post subject:
Yes, agreed! It is optional, but if not specified defaults to what the WAN (DHCP) provides. And this is blank currently - that's the issue.
Thanks!
Back to top