Ok, so I am having weird issues with NSD. I thought they were firewall issues but my pf rules seem good. To rule out firewall issues, I disabled pf and installed nsd on the main server instead of in any kind of jail.
Once I have my config and zone file set, I run
However, if I go to an external box and try drill or dig I get errors:
Here is my NSD config:
Once I have my config and zone file set, I run
service nsd start
and when I run the command drill @external-ip ANY mydomain.test
from the nameserver itself I get a responseHowever, if I go to an external box and try drill or dig I get errors:
Code:
C:\Users\administrator>nslookup mydomain.test external-ip
DNS request timed out.
timeout was 2 seconds.
Server: UnKnown
Address: external-ip
DNS request timed out.
timeout was 2 seconds.
DNS request timed out.
timeout was 2 seconds.
DNS request timed out.
timeout was 2 seconds.
DNS request timed out.
timeout was 2 seconds.
*** Request to UnKnown timed-out
Here is my NSD config:
Code:
server: #Server options
server-count: 1 #number of CPU cores
ip-address: external-ip #IP address
port: 53 #Specify port to listen on. 53 is default
database: "" #or use "/var/db/nsd/nsd.db"
identity: "Server X" #String returned for Identity requests
hide-version: yes #Prevents NSD from replying with VER string on CHAOS class queries.
tcp-count: 100 #Limit amount of TCP connections - default is 100
#tcp-query-count: 0 #Limit number of queries per TCP connection. Default is 0.
zonelistfile: "/var/db/nsd/zone.list" #this is used by NSD to dynamically add and remove zones.
#This is the default location.
#Specifically used by nsd-control addzone and deletezone commands
username: nsd #After binding the soccet drop user privs and assume the username
logfile: "/var/log/nsd.log"
pidfile: "/var/run/nsd/nsd.pid"
xfrdfile: "/var/db/nsd/xfrd.state" #The SOA timeout and zone tranfer daemon in NSD will save state to this fil
e.
zone:
name: mydomain.test
zonefile: /usr/local/etc/nsd/mydomain.test.zone