Update Active Directory DNS

Hello,

Is there documentation somewhere that will show me how to setup
Foreman/Katello to automatically update Active Directory DNS when
provisioning new hosts?

I have tried to google for it, but I haven't found much.

Thank you!

Anthony

This section is probably what you are looking for: 4.3.5.3 GSS-TSIG DNS

Run this step as the foreman-proxy user.

kinit foremanproxy@EXAMPLE.COM -k -t dns.keytab

Then run 'nsupdate -g' and try creating / deleting DNS
records: http://linux.die.net/man/8/nsupdate

If you are able to create / delete records, then Foreman should be able to
do so as well via the smart proxy.
This however creates dynamic records, which could be a problem if your
environment has DNS scavenging enabled.
Linux hosts that are joined to the domain with SSSD can manage their own
DNS entries with dynamic
dns: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Windows_Integration_Guide/sssd-ad-options.html#sssd-dyndns

··· On Wednesday, August 3, 2016 at 2:47:43 AM UTC+10, Anthony Valentine wrote: > > Hello, > > Is there documentation somewhere that will show me how to setup > Foreman/Katello to automatically update Active Directory DNS when > provisioning new hosts? > > I have tried to google for it, but I haven't found much. > > > Thank you! > > Anthony > > >

For starters you need your smart proxy to be configured to use the
dns_dnscmd provider. If you want DHCP you can also use the
dhcp_ms_native provider.

Once you have the smart-proxy you'll want to add a Domain in Foreman
that uses that smart-proxy, and a Subnet associated with that Domain.

After that you should be able to create/update/delete new hosts with
their associated records in MS DNS.

Let us know if anything is unclear from the manual and we'd be glad to
fix it, or you can do it too through

Thanks!

··· On 08/02, Anthony Valentine wrote: > Hello, > > Is there documentation somewhere that will show me how to setup > Foreman/Katello to automatically update Active Directory DNS when > provisioning new hosts? > > I have tried to google for it, but I haven't found much.


Daniel Lobato Garcia

@dLobatog


GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30
Keybase: https://keybase.io/elobato