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 upPosting alert to alertmanager does not work with DNS wildcard record #611
Comments
This comment has been minimized.
This comment has been minimized.
|
Strange, I couldn't reproduce it with this little snippet yet (which is basically what Prometheus does internally):
That seems to work for |
This comment has been minimized.
This comment has been minimized.
|
Update: this is a plain CentOS 7. wget and curl have the same problem, whereas dig and nslookup happily return the record. |
This comment has been minimized.
This comment has been minimized.
|
What does your |
This comment has been minimized.
This comment has been minimized.
|
Also, |
This comment has been minimized.
This comment has been minimized.
|
tcpdump was a good hint. It seems to be an ipv6 Linux problem. All the hints on the net don't help (neither on Ubuntu nor CentOS 7).
This doesn't (curl, wget)
|
This comment has been minimized.
This comment has been minimized.
|
Ok, so it looks like the tools that don't work also try an IPv6 AAAA lookup after the A lookup, but then see the empty AAAA reply and think the record doesn't exist? Looks like the DNS server is doing the right thing though, judging by https://www.ietf.org/rfc/rfc4074.txt, Section 3. Does You could try disabling IPv6 on the machine, but I don't know if that's still a reasonable option nowadays... not sure about the proper fix yet. |
This comment has been minimized.
This comment has been minimized.
|
curl -4 indeed exhibits the same problem. I've changed now my setup for hostnames to not contain _, and the DNS lookups work now. |
quolix
closed this
May 4, 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. |
quolix commentedMar 23, 2015
On trying to post an alert, prometheus outputs:
redir.corp.quobyte.com is a wildcard DNS record that points to a http redirector (which would send a 303 to the http client in prometheus).
prometheus is invoked with