-
Notifications
You must be signed in to change notification settings - Fork 455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CNAME not supported in DNS lookup? #24
Comments
Only A type are supported as this was all that was implemented in the original code. As a work around, just use one of the alternative googlemail.l.google.com A type addresses. Andy |
This workaround doesn't seem to work when a DNS server returns multiple IP's..
|
Just checked the code, and yes, you're right, it wont work very well with multiple answers. I know this is something I had fixed a while ago in the EtherShield library as the original code didnt work properly either. Another area of the library to be updated for both CNAME support and multiple IP addresses returned. Andy |
Cool! This will make it easier too connect cloud hosted services.. or generally any DNS based load balancing solution! |
Tt looks like DNS with a CNAME record (which are very common in load balancing/cloud based servers) result in a timeout and the result is 0.0.0.0 in remote addr.
Example DNS record:
And I changed
getDHCPandDNS
to connect towww.gmail.com
to show the problem:which results in:
I'm not really an expert on the DNS protocol and it's implementation in ethercard, but can this be solved/added?
Cheers,
Davy
The text was updated successfully, but these errors were encountered: