IPs with multiple names can corrupt DNS zone data

Bug #1642033 reported by LaMont Jones
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Critical
LaMont Jones
2.1
Fix Released
Critical
LaMont Jones

Bug Description

If the same IP address is assigned to names in multiple domains, then the zone data gets corrupted.

If the name is the top of a domain, then the zone file is illegally formatted and fails to load as a result.

Related branches

LaMont Jones (lamont)
no longer affects: maas/2.0
Revision history for this message
LaMont Jones (lamont) wrote :

If you wish to reproduce this:

maas $SESSION domains create foo.example.com
maas $SESSION domains create bar.example.com
maas $SESSION dnsresources create fqdn=foo.example.com ip_addressess=1.1.1.1
maas $SESSION dnsresources create fqdn=bar.example.com ip_addressess=1.1.1.1

Note the errors in /var/log/syslog:
    Nov 15 09:43:56 kohlrabi named[10335]: /etc/bind/maas/zone.foo.example.com:23: ignoring out-of-zone data (\@)
    Nov 15 09:43:56 kohlrabi named[10335]: /etc/bind/maas/zone.foo.example.com:23: \@: bad owner name (check-names)
    Nov 15 09:43:56 kohlrabi named[10335]: zone foo.example.com/IN: loading from master file /etc/bind/maas/zone.foo.example.com failed: bad owner name (check-names)
    Nov 15 09:43:56 kohlrabi named[10335]: zone foo.example.com/IN: not loaded due to errors.
...

Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.