Katello has some docs on this. This should be included in Foreman itself since it’s not katello-specific.
https://theforeman.org/plugins/katello/3.11/installation/index.html#multiple-subnets-and-domains
This exposes dns::zone. As you can see, there’s an array also_notify
parameter, so you can use:
dns::zones:
example.com:
also_notify:
- other.example.net
In the tradition of engineers suggesting totally different solutions, I’m going to pitch PowerDNS (for which I maintain a Smart Proxy plugin). It has a superslave option where it automatically creates slave zones. You can also use database replication to host a slave server.
In a future version I hope to find time to expand the Proxy DNS API to be able to create DNS zones if the provider supports this (this is where capabilities come into play). It’s unlikely we’ll support this with bind, but PowerDNS has a REST API which would support this. The benefit will be that if you create a domain in Foreman, it’s automatically created on your DNS server. A DNS server like Infoblox that also has an API to create zones could also support this.
Long term this is where I want to go. It opens the path to dropping bind from our installer, but on that part I haven’t really thought too much.