uxbh / ztdns

DNS server for a ZeroTier virtual network
MIT License
246 stars 50 forks source link

API URL supplied in .ztdns.toml doesn't seem to work #10

Closed jrprince closed 6 years ago

jrprince commented 6 years ago

The default URL in .ztdns.toml gives a 404 error. I searched a bit in the ZeroTier documentation and I think that the API is/can be http://127.0.0.1:9993, however when trying that, I just get a 401 Unauthorized response. Perhaps I'm wrong and there are two separate APIs that I'm conflating, but if that's the case, I'm not sure what to use that won't throw a 404.

This is using go1.10.2 on a Raspberry Pi 3 Model B running Raspbian 9.4 with ZeroTier 1.2.8. I do not seem to be having the same issue as reported in #9

jrprince commented 6 years ago

Actually, after a fair bit of fiddling, I believe that the API must have just been down at the time. I worked through determining that while 127.0.0.1:9993 while using the same auth token that zerotier-cli uses works, the API is not the same as what's located at my.zerotier.com/api…when it's actually responding.

Ultimately, it just looks like the service that provides that just wasn't available earlier. Now it's up, and I did get the same error as #9, but switching to that branch got it working. Thanks for a great little tool.

AarynSmith commented 6 years ago

That's great news. The rpi branch working, not the API being down bit. Glad it's working for you now.

Thanks for your input.