I set up bind on 192.168.0.1 machine. Also, I have subscribed to a domain service, so I use mydomain.net (sanitized name) for the FQDN in my home network.
When I do an
$ nslookup "name of 192.168.0.1"
from 192.168.0.xxx (connected to 192.168.0.0 home network through wifi with dhcp) I get an NXDOMAIN error.
* server can't find name: NXDOMAIN
However, if I do an
$ nslookup "FQDN of 192.168.0.1"
the result is without error, see below (sanitized):
$ nslookup name.mydomain.net
Server: 127.0.1.1
Address: 127.0.1.1#53
Name: name.mydomain.net
Address: 192.168.0.1
If I do nslookup on the 192.168.0.1 machine for "name of 192.168.0.xxx" I get the NXDOMAIN error even if I use FQDN for 192.168.0.xxx.
Is this normal behavior, is my dns set up properly on 192.168.0.1?
Thanks - Janos
box1will be expanded with a default domain for lookup (egbox1.example.com, if the default search domain isexample.com). Since it looks like you are using linux, what are the contents of your /etc/resolv.conf? see this question for more details on search domains in resolv,conf: http://superuser.com/questions/570082/in-etc-resolv-conf-what-exactly-does-the-search-configuration-option-do – Frank Thomas Apr 21 '16 at 12:56Arecords for your local network hosts including your server in the main zone file. Show content of yourdb.mydomain.netormydomain.netzone file in/etc/bind/directory. – Oleg Bolden Apr 21 '16 at 18:53