Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upDNS SRV lookup fails with <nil> is not a valid SRV record #632
Comments
This comment has been minimized.
This comment has been minimized.
|
Prometheus definitely queries for an SRV record - it actually boils down to https://gist.github.com/fabxc/25bc3af953d13338388e, which works fine for me. It also works on my local Prometheus. You could run the minimal example above (with the DNS server you are using) and report back whether that works. |
This comment has been minimized.
This comment has been minimized.
|
Thanks for the reply. I tried your snippet locally and it worked as expected. I figured it out, it's not Prometheus as you suspected, explanation below. I wondered what's different between the code I was running from you and how Prometheus is running said code. The difference being Prometheus is in Docker, and Docker is in VirtualBox (because I'm using boot2docker). I SSH'd onto the boot2docker VM and ran the code you gave again, boom, it explodes in a much similar way to Prometheus. Interestingly, no matter what query you do of the DNS it always responded with an A record which is why the Prometheus code was logging the I dug a bit deeper and my VM had Either way, it's not a Prometheus issue. Thanks for the pointers. |
jagregory
closed this
Apr 10, 2015
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 24, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
jagregory commentedApr 9, 2015
I'm trying to use SD for jobs, as per a quick chat with @juliusv on twitter, but I'm not getting very far with it. All I see printed in the log is:
I've been testing it against a local dnsmasq setup, but I've also tried it against a real DNS server on one of my public domains too.
My job looks like this:
Running
dig SRV _sd.tcp.sd.calendars.ioresponds with:And tailing my DNS logs shows something (I assume Prometheus) is doing a query for an
Arecord for_sd._tcp.sd.calendars.iobut never seems to query for anSRVrecord.Any ideas? This has got me pretty stumped.