[Pdns-users] CNAME confusion with SOA (works for A records) ?
sil
pdns at oneoddsock.co.uk
Wed Apr 7 16:53:00 UTC 2004
Hi All,
I hope someone can help with this, I am using POWERDNS 2.9.16 with
gmysql backend on debian woody.
I setup some example domains:
('',9,'adomain.com','SOA','ns1.anotherdomain.com hostmaster.adomain.com',86400,NULL,NULL),
('',9,'adomain.com','NS','ns1.anotherdomain.com',86400,NULL,NULL),
('',9,'adomain.com','NS','ns2.anotherdomain.co.uk',86400,NULL,NULL),
('',9,'adomain.com','MX','mail.anotherdomain.com',3600,10,NULL),
('',9,'adomain.com','A','11.22.33.44',3600,NULL,NULL),
('',10,'anotherdomain.com','SOA','ns1.anotherdomain.com hostmaster.anotherdomain.com',86400,NULL,NULL),
('',10,'anotherdomain.com','NS','ns1.anotherdomain.com',86400,NULL,NULL),
('',10,'anotherdomain.com','NS','ns2.anotherdomain.co.uk',86400,NULL,NULL),
('',10,'anotherdomain.com','MX','mail.anotherdomain.com',3600,10,NULL),
('',10,'ns1.anotherdomain.com','A','11.22.55.44',3600,NULL,NULL),
('',10,'ns2.anotherdomain.com','A','11.22.66.44',3600,NULL,NULL),
('',10,'mail.anotherdomain.com','A','11.22.33.44',3600,NULL,NULL),
('',10,'web.anotherdomain.com','A','11.22.33.44',3600,NULL,NULL),
This works as I expect:
# host -t SOA adomain.com 127.0.0.1
Using domain server:
Name: 127.0.0.1
Address: 127.0.0.1#53
Aliases:
adomain.com SOA ns1.anotherdomain.com. hostmaster.adomain.com. 1081356072 10800 3600 604800 3600
# host -t A adomain.com 127.0.0.1
Using domain server:
Name: 127.0.0.1
Address: 127.0.0.1#53
Aliases:
adomain.com has address 11.22.33.44
But - the problem comes when I try to use a CNAME instead of an A
record.
i.e.
('',9,'adomain.com','SOA','ns1.anotherdomain.com hostmaster.adomain.com',86400,NULL,NULL),
('',9,'adomain.com','NS','ns1.anotherdomain.com',86400,NULL,NULL),
('',9,'adomain.com','NS','ns2.anotherdomain.co.uk',86400,NULL,NULL),
('',9,'adomain.com','MX','mail.anotherdomain.com',3600,10,NULL),
('',9,'adomain.com','CNAME','web.anotherdomain.com',3600,NULL,NULL),
gives:
# host -t SOA adomain.com 127.0.0.1
Using domain server:
Name: 127.0.0.1
Address: 127.0.0.1#53
Aliases:
adomain.com is an alias for web.anotherdomain.com.
# host -t A adomain.com 127.0.0.1
Using domain server:
Name: 127.0.0.1
Address: 127.0.0.1#53
Aliases:
adomain.com is an alias for web.anotherdomain.com.
web.anotherdomain.com has address 11.22.33.44
So the 'A' record lookup is working as expected but the SOA lookup
seems to be confused by the use of a CNAME? (or I am not understanding
how it should be done!).
Thank you for any help or advice,
Sil
PS, a -v on the SOA gives
host -v -t SOA adomain.com 127.0.0.1
Trying "adomain.com"
Using domain server:
Name: 127.0.0.1
Address: 127.0.0.1#53
Aliases:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 34574
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;adomain.com. IN SOA
;; ANSWER SECTION:
adomain.com. 3600 IN CNAME web.anotherdomain.com.
;; AUTHORITY SECTION:
anotherdomain.com. 86400 IN SOA ns1.anotherdomain.com. hostmaster.anotherdomain.com. 1081356605 10800 3600 604800 3600
Received 129 bytes from 127.0.0.1#53 in 10 ms
More information about the Pdns-users
mailing list