DNS server redirect users on first visit

Posted by Sihan Zheng on Server Fault See other posts from Server Fault or by Sihan Zheng
Published on 2012-09-02T23:59:37Z Indexed on 2012/09/03 3:39 UTC
Read the original article Hit count: 463

Filed under:
|

I am looking for a DNS level solution, that redirects a user to a specific IP on the first visit, than directs them to the correct IP on subsequent visits.

So the idea is, for example, if a user visits "malicioussite.com", the first time they try to resolve that DNS name, it resolves to the IP of an internal web server, showing them a warning.

On subsequent resolves, the users would get the actual IP, so they can visit the site.

How can this be achieved? I am really flexible on what I can use, as long as its on the DNS level.

© Server Fault or respective owner

Related posts about dns

Related posts about captive-portal