Ticket #30 (closed defect: invalid)
SOA / CNAME Confusion
| Reported by: | kristof@… | Owned by: | somebody |
|---|---|---|---|
| Priority: | highest | Milestone: | milestone1 |
| Component: | component1 | Version: | 2.0 |
| Severity: | major | Keywords: | cname, soa, ns |
| Cc: |
Description
Dear,
PowerDNS returns a wrong SOA and wrong NS-records when a CNAME has been set for the domainname.
mysql> select id, domain_id, name, type, content from records where domain_id='329'; +------+-----------+--------------------+-------+-------------------------------------------------+ | id | domain_id | name | type | content | +------+-----------+--------------------+-------+-------------------------------------------------+ | 2421 | 329 | mota.org | SOA | ns1.ns-1.be hostmaster@… 2005100201 | | 2422 | 329 | mota.org | NS | ns1.ns-1.be | | 2423 | 329 | mota.org | NS | ns2.ns-1.be | | 2424 | 329 | mota.org | MX | mail.mota.org | | 2425 | 329 | mota.org | CNAME | www.Studentenmuseum.be | | 2426 | 329 | www.mota.org | CNAME | www.Studentenmuseum.be | | 2427 | 329 | mail.mota.org | A | 83.217.84.218 | | 2428 | 329 | localhost.mota.org | A | 127.0.0.1 | +------+-----------+--------------------+-------+-------------------------------------------------+
In my opinion:
"dig NS mota.org" must result in the ns-servers listed above, however it is resulting in the ns servers of the CNAME-address: "www.Studentenmuseum.be".
Here is the result of a DIG command:
; <<>> DiG 9.3.0 <<>> ns mota.org ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44697 ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION: ;mota.org. IN NS
;; ANSWER SECTION: mota.org. 3600 IN CNAME www.Studentenmuseum.be. www.Studentenmuseum.be. 3600 IN CNAME misspiggy.studiant.be.
;; AUTHORITY SECTION: studiant.be. 3600 IN SOA ns1.ns-1.be. hostmaster.computools.be. 2005092400 10800 3600 604800 3600
Furthermore the SOA value is also incorrect. The above example is returning the soa record of "studiant.be". This causes that the domainname cannot be transfered (axfr) from the master to the slave: the slave cannot determe the soa-record for the domainname mota.org.
Can this issue be solved quickly, as some domains now give a HUGE failure if you look at a dns-report: http://www.dnsreport.com/tools/dnsreport.ch?domain=mota.org
Hopefully this bug can be fixed quickly.
Kind Regards,
dhr. Kristof Van den Bergh