I have a local dns server for my private network "tuxoffice.lan".
All hostnames I add to file "forward.tuxoffice" works fine except one!
My pfsense firewall has a domain override for tuxoffice.lan, this works fine - except for that one hostname..
Here's the file"forward.tuxoffice" :
Code:
$TTL 600
@ IN SOA repo1.tuxoffice.lan. root.tuxoffice.lan. (
2011071001 ;Serial
900 ;Refresh
600 ;Retry
604800 ;Expire
600 ;Minimum TTL
)
@ IN NS repo1.tuxoffice.lan.
@ IN A 192.168.20.21
repo1 IN A 192.168.20.21
intsrv1 IN A 192.168.20.21
db1 IN A 192.168.20.11
intwww IN A 192.168.20.31
www IN A 192.168.10.11
testdb IN A 192.168.20.41
backup IN A 172.16.21.2
backuptest IN A 172.16.21.2
athome IN A 172.16.21.2
athometest IN A 172.16.21.2
All these hostnames are now reacheble from my workstations (3 different tried) *except* backuptest.tuxoffice.lan.
testdb.tuxoffice.lan, athometest.tuxoffice.lan etc - all work fine.
To troubleshoot, I added the "athome" & "athometest" after backuptest, they resolved fine from my linux workstation.
Then I deleted the line for backuptest, reloaded named, changed the last line by erasing "athome" and typing in "backup". Reloaded nemed, backuptest.tuxoffice.lan still is not found.
---
Edit:
And just to make it even stranger:
After doing the above, I deleted the last 't' in "backuptest" - and this works, backuptes.tuxoffice.lan resolves!!!
So:
"athometest" - works fine
Replacing "athome" with "backup" so it reads "backuptest" - doesn't work
Removing last 't', so it reads "backuptes" - works fine
What the h..k??
----
I have checked /etc/hosts on my workstations & dns server, no entry except localhost.
There is nothing extraordinal in the logs, everything looks fine.
Code:
systemctl status named.service -l
named.service - Berkeley Internet Name Domain (DNS)
Loaded: loaded (/usr/lib/systemd/system/named.service; disabled)
Active: active (running) since ons 2014-12-10 15:48:30 CET; 22h ago
Process: 9388 ExecStop=/bin/sh -c /usr/sbin/rndc stop > /dev/null 2>&1 || /bin/kill -TERM $MAINPID (code=exited, status=0/SUCCESS)
Process: 10577 ExecReload=/bin/sh -c /usr/sbin/rndc reload > /dev/null 2>&1 || /bin/kill -HUP $MAINPID (code=exited, status=0/SUCCESS)
Process: 9449 ExecStart=/usr/sbin/named -u named $OPTIONS (code=exited, status=0/SUCCESS)
Process: 9447 ExecStartPre=/usr/sbin/named-checkconf -z /etc/named.conf (code=exited, status=0/SUCCESS)
Main PID: 9451 (named)
CGroup: /system.slice/named.service
└─9451 /usr/sbin/named -u named
dec 11 14:09:58 intsrv1.tuxoffice.lan named[9451]: sizing zone task pool based on 7 zones
dec 11 14:09:58 intsrv1.tuxoffice.lan named[9451]: using built-in DLV key for view _default
dec 11 14:09:58 intsrv1.tuxoffice.lan named[9451]: couldn't add command channel ::1#953: address not available
dec 11 14:09:58 intsrv1.tuxoffice.lan named[9451]: reloading configuration succeeded
dec 11 14:09:58 intsrv1.tuxoffice.lan named[9451]: reloading zones succeeded
dec 11 14:09:58 intsrv1.tuxoffice.lan named[9451]: zone tuxoffice.lan/IN: zone serial (2011071001) unchanged. zone may fail to transfer to slaves.
dec 11 14:09:58 intsrv1.tuxoffice.lan systemd[1]: Reloaded Berkeley Internet Name Domain (DNS).
dec 11 14:09:58 intsrv1.tuxoffice.lan named[9451]: zone tuxoffice.lan/IN: loaded serial 2011071001
dec 11 14:09:58 intsrv1.tuxoffice.lan named[9451]: all zones loaded
dec 11 14:09:58 intsrv1.tuxoffice.lan named[9451]: running