Closed crosbymichael closed 10 years ago
Any idea of a good place to make this change?
Looks like an oversight, when the key to store it is created everything is lowercased https://github.com/skynetservices/skydns/blob/master/registry/registry.go#L432
but when the search is performed it takes the casing as requested. The best i'd recommend making the change is https://github.com/skynetservices/skydns/blob/master/registry/registry.go#L223
If strings.ToLower(domain) is called at the beginning of the function that should solve the issue you're seeing.
I can make that change here in a few mins if you'd like
Thanks for fixing this so quickly.
No problem, as soon as I saw the email I knew exactly what it was, just had to wait to be near a computer to fix it :)
@erikstmartin it looks like the domain still needs to be checked for case. redis.dev.docKer
fails
Oh you're right. This logic takes place after the anchor domain has been trimmed off. I'll reopen this and i'll get a fix in for that as well.
Should be all set now
Lgtm, I'll double check the dns package. On Mar 28, 2014 3:57 AM, "Erik St. Martin" notifications@github.com wrote:
Should be all set now
— Reply to this email directly or view it on GitHubhttps://github.com/skynetservices/skydns/issues/82#issuecomment-38886851 .
@miekg feel free to merge when you're happy.
Queries with difference case fail with skydns.
ping @miekg