dnspython icon indicating copy to clipboard operation
dnspython copied to clipboard

How to connect to Windows server hosted DNS server

Open johnakash opened this issue 9 years ago • 4 comments

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,

  1. Connect to the Windows AD server from linux machine using python
  2. Create record sets.

Could you please let us know how can we achieve this using dnspython?

johnakash avatar Dec 14 '16 11:12 johnakash

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.

rthalley avatar Dec 14 '16 15:12 rthalley

IMO with python-gssapi it could work, I plan to investigate it.

MartinBasti avatar Dec 21 '16 19:12 MartinBasti

@MartinBasti were you able to get anywhere with this?

lampwins avatar Sep 20 '17 17:09 lampwins

@lampwins sorry, I haven't had time, and I changed job, so it is not so relevant for me now :(

MartinBasti avatar Sep 26 '17 17:09 MartinBasti