Skip to content
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

Perform forward DNS lookups to verify the correctness of the reverse DNS lookup #15

Open
ahf opened this issue May 25, 2011 · 0 comments

Comments

@ahf
Copy link
Owner

ahf commented May 25, 2011

Currently the hostname is determent purely based on the result of the reverse DNS lookup. This is incorrect. The result of the reverse DNS lookup should be looked up using forward DNS too and verify if they match.

ip := client.ip
rdns := ReverseDNSLookup(ip)
fdns := ForwardDNSLookup(rdns)

if rdns == fdns then
    return rdns
else
    return ip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant