grnet / webdns4

A Ruby-on-Rails Webdns Frontend for Powerdns
2 stars 2 forks source link

Don't allow other records types when there is a CNAME for a record #2

Closed alexkiousis closed 5 years ago

alexkiousis commented 6 years ago

PowerDNS seems to not have a problem with this but it breaks transfer from BIND. We should do something on the UI when the is both a CNAME for a record and anything other (A/AAAA)

alexkiousis commented 6 years ago

@irregulator paste some logs please

irregulator commented 6 years ago

Suppose a zone managed by PowerDNS contains these two records:

koko.grnet.gr.      3600    IN      CNAME      something.grnet.gr.
koko.grnet.gr.      3600   IN       MX      200 somemx.grnet.gr. 

bind9 will fail to correctly transfer said zone like this:

09-Jan-2018 14:57:45.474 info: transfer of 'grnet.gr/IN' from 10.0.0.5#53: connected using 10.0.0.6#37210
09-Jan-2018 14:57:45.502 error: transfer of 'grnet.gr/IN' from 10.0.0.5#53: failed while receiving responses: CNAME and other data
09-Jan-2018 14:57:45.502 info: transfer of 'grnet.gr/IN' from 10.0.0.5#53: Transfer completed: 16 messages, 1415 records, 41086 bytes, 0.027 secs (1521703 bytes/sec)