I just finished setting up PowerDNS to avoid having to remember all my IP addresses and it seems to work pretty fine, most host names resolve just fine but not the one running PowerDNS (named musicbox
, IP 192.168.1.22). When I try to ping it from any other computer I only get an error message about unknown host
. Using dig
I get the correct IP address. Running ping musicbox.local
also works fine but not ping musicbox
.
#dig musicbox.local
; <<>> DiG 9.9.5-3-Ubuntu <<>> musicbox.local
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 45271
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;musicbox.local. IN A
;; ANSWER SECTION:
musicbox.local. 3600 IN A 192.168.1.22
;; Query time: 5 msec
;; SERVER: 192.168.1.22#53(192.168.1.22)
;; WHEN: Sun Dec 07 19:54:23 CET 2014
;; MSG SIZE rcvd: 48
This is my bindbackend.conf
:
one "local" {
type master;
file "/etc/powerdns/bind/local.zone";
allow-update { none; };
};
This is my zone file, local.zone
:
$ORIGIN local ; base for unqualified names
$TTL 1h ; default time-to-live
@ IN SOA ns.local hostmaster.local (
1; serial
1d; refresh
2h; retry
4w; expire
1h; minimum time-to-live
)
IN NS ns
IN A 192.168.1.22
musicbox IN CNAME ns
haddock IN A 192.168.1.29
tintin IN A 192.168.1.68
snowy IN A 192.168.1.99
castafiore IN A 192.168.1.73
All host names but musicbox
resolve just fine. How do I fix that annoying last piece of my puzzle?
musicbox
without appending.local
. Funny thing is thatlocal
turns out to be a valid host name, directing to 192.168.1.22 if I use my Linux server but not when using my Windows machine. – Zarkov Dec 08 '14 at 18:00cname
s with any other type of resource record set, so one part of this answer is either incomplete (remove thecname
) or wrong. – JdeBP Oct 23 '20 at 11:16local.
as if one owned it. There are at least two other claimants, one of which is no doubt interfering here. – JdeBP Oct 23 '20 at 11:20