DNS api

I’m really starting to enjoy working with the maas-api from ansible. (Applying networking/storage configurations is working quite nicely.) I do however have a messed up dns right now.

The machines have multiple interfaces and multiple addresses, and it seems quite random which ip resolves to the hostname.

My maas box is only attached to my maas network (192.168.1.0/24)

host03 has
br-maas 192.168.1.3
br-mgmt 172.16.2.3
br-storage 172.16.3.3
br-vxlan 172.16.4.3

host04
br-maas 192.168.1.4
br-mgmt 172.16.2.4
br-storage 172.16.3.4
br-vxlan 172.16.4.4

Pinging host04 resolves to 172.16.3.4 whilst pinging host03 resolves to 192.168.1.3, host05 might end up at some other address.

The dns resource api only seems to return records I’ve added manually. And maas-ui won’t let me change the values for the hosts. Was wondering if there is some way to fix it short of going into the database and updating the values there manually.