Reputation: 175
Is there any way to capture the DNS server IP Address that resolves the HTTP web request? The DNS server's IP need to be obtained when a user makes request to the web server. I am using an ASP.NET web application.
Upvotes: 0
Views: 944
Reputation: 7909
No you cannot determine what DNS server was used to resolve your websites domain on a clients machine. You can however get the clients IP address.
This is why things like SOPA's DNS filtering are dangerous. People will use "rogue" DNS servers to bypass the filtering, and by doing so expose themselves to all sorts of phishing attacks.
The DNS server must be able to be trusted.
Upvotes: 1