py-kms icon indicating copy to clipboard operation
py-kms copied to clipboard

Implement automagic KMS server discovery in pykms_Client

Open dogtopus opened this issue 4 years ago • 3 comments

Official KMS clients support auto discovery via DNS SRV record lookup with the domain name generated by appending DHCP option 15 (DNS suffix/search list) to _vlmcs._tcp. It would be nice to support this when there is no hostname specified (instead of accessing 0.0.0.0:1688 which doesn't work at all) as well as adding suffix override option for debugging.

dogtopus avatar Dec 25 '20 01:12 dogtopus

I solved this by having my local DNS which is a pi.hole server have the following file: /etc/dnsmasq.d/02-kms.conf

with contents: srv-host=_vlmcs._tcp.local,kmsServer.local,1688,20

bshep avatar Feb 21 '21 01:02 bshep

I solved this by having my local DNS which is a pi.hole server have the following file: /etc/dnsmasq.d/02-kms.conf

with contents: srv-host=_vlmcs._tcp.local,kmsServer.local,1688,20

What I want to achieve is to let pykms_Client resolve the SRV record and connect to the server to perform a activation simulation so one can use it to verify settings like you mentioned without need to fire up a Windows machine.

Currently it's possible to use dig and pass the IP to pykms_Client but that's an extra step.

dogtopus avatar Feb 21 '21 03:02 dogtopus

I solved this by having my local DNS which is a pi.hole server have the following file: /etc/dnsmasq.d/02-kms.conf

with contents: srv-host=_vlmcs._tcp.local,kmsServer.local,1688,20

I've tried with this branch and the new one. Any ideas what could be wrong? Details in link to new branch issue.

https://github.com/Py-KMS-Organization/py-kms/issues/45

xXcodgerXx avatar Dec 16 '21 07:12 xXcodgerXx