Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
backport patch to resolv for underqualified domain names #48
In the Ruby stdlib that ships with JRubies < 9.0, there was a bug that prevented underqualified domain names from resolving (that is, domain names with fewer dots in them than the configured minimum, which defaults to 1).
Effectively this prevented unqualified domain names (e.g., dot-less domain names registered with a dns server like dnsmasq, or even
If applicable to the runtime, this patch backports a patch from https://bugs.ruby-lang.org/issues/10412
It also clean up the
I have been able to validate this locally, by pointing
And then running a config that includes
Note: this issue does not occur when the hostname resolves in a provided hostfile, as the bug is in DNS canonicalisation.