net ads dns register command will register/update DNS record at DNS.
If DNS policy is round robin, you may get different IP address between dyanmic
update and TKEY query in multiple interfaces/subnets connection enviroment.
Running dynamic update and TEKY query in different interfaces/subnets may causes
DNS dynamic update to fail.
Both dynamic update and TEKY query run getaddrinfo() then they may get different address.
|samba box |---10.77.x.x--|Windows 2008r2 DC/DNS|
| |---10.88.x.x--| dc.testdom.com |
answer to 1st nslookup dc.testdom.com:
answer to 2nd nslookup dc.testdom.com:
dynamic update connect to 10.77.1.1 and TKEY query connect to 10.88.1.1 then fail to update. I don't know what happen in windows DNS.
To aviod this situation, we can run getaddrinfo() only once then pass connectinfo to TKEY query funtion.
patch will follow.
Created attachment 17796 [details]
Created attachment 17797 [details]
CI pipeline is passed.
(In reply to HY Wu from comment #3)
sorry for error patch link.