catding / powerdns-webinterface

Automatically exported from code.google.com/p/powerdns-webinterface
Apache License 2.0
0 stars 0 forks source link

Prevent creation of records with the same name but different type #44

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create an A Record with some name
2. Create an CNAME Record with the same name
3. Record gets created successfully and this breaks AXFR requests from Bind to 
PDNS

What is the expected output? What do you see instead?
An Error message telling a record with this name already exists with a 
different type

This affects multiple different record types which are not allowed in 
combination, this can be a really big issue if not detected in time (this will 
break the complete zone if there is a bind slave). Unfortunately only a few 
interfaces for pdns support checks for this, so this would be a really great 
feature/fix.

Original issue reported on code.google.com by phpb...@googlemail.com on 27 Nov 2012 at 8:25

GoogleCodeExporter commented 9 years ago
Yes this has to be implemented. But i first need to get a full list of record 
types that are not allowed in combination...

For example A records or NS records are allowed (for the sake of load balancing 
via DNS)

Original comment by timo.witte on 2 Mar 2013 at 2:12

GoogleCodeExporter commented 9 years ago
RFC 1912 (http://www.ietf.org/rfc/rfc1912.txt) states that "A CNAME record is 
not allowed to coexist with any other data".
According to that same RFC, the only exception are PTR records "if you want to 
implement classless in-addr delegation".

Original comment by c.duverg...@gmail.com on 8 May 2013 at 11:24