How to connect to Windows server hosted DNS server
Hi Team,
We are using a DNS server which is based on windows.
Now we are trying to automate the A Record, CNAME, MX, etc creation using python script which is placed on a remote RHEL 7 machine.
As per our understanding we need to follow the below steps to fulfill this requirement,
- Connect to the Windows AD server from linux machine using python
- Create record sets.
Could you please let us know how can we achieve this using dnspython?
Generally Windows AD uses GSS-TSIG for authentication, and dnspython does not do GSS-TSIG because it is very complicated and fragile. So I don't think you can solve your problem with dnspython.
If you can use regular TSIG, then examples/ddns.py in the dnspython source will show you how to make updates and send them.
IMO with python-gssapi it could work, I plan to investigate it.
@MartinBasti were you able to get anywhere with this?
@lampwins sorry, I haven't had time, and I changed job, so it is not so relevant for me now :(