Closed mmn01-sky closed 1 month ago
The problem here is that dnspython doesn't like the TSIG signature on the response to the update. I don't have any ability to debug GSS-TSIG issues. It's very strange that you don't see this error for the A update, as you'd think if there were a bug in dnspython's GSS-TSIG response calculation that would fail too.
Also, if I google I see people getting the same kind of error with nsupdate sometimes, so I suspect you might just have to catch this error and suppress it.
@rthalley thanks for your response. I'll try enable some debug logging (somewhere) and see if I can get to the root of the issue.
Do you know if it's possible using dnspython to enable the automatic creation of the PTR when creating the A records against a Windows DNS Server? The Windows DNS Server does support this feature, i'm just not sure how to invoke it from dnspython or nsupdate.
Re automatic PTR update: this looks to be a server-side thing, in particular some setting in the Microsoft DHCP server. So AFAIK there is no way for the client to ask for this service.
Just to add, I receive the same error when creating the PTR via nsupdate so it's definitely not a dnspython issue.
Thanks for your support. I'll close down this ticket.
If I do find a solution, I'll be sure to post it as a comment.
Describe the bug I am managing DNS entries on a Microsoft DNS Server using Kerberos for authentication and GSS-TSIG.
When creating the DNS A Record, it creates successfully and resolves as expected.
However when creating the corresponding PTR record, I successfully create the PTR however I receive an error. I double checked with our Windows DNS team who confirmed the PTR did not previously exist until I ran my script which successfully created it on their end.
Full log and python script have been attached for completeness.
Python error message when attempting to create the PTR:
PTR record being created and resolving as expected:
To Reproduce I have attached my python script and log output (with args) for completeness (a lot of help from https://github.com/rthalley/dnspython/pull/530) but below is my function for creating the DNS records.
script-and-logs.zip
Context (please complete the following information):