Get the Whitepaper called DNS Phishing that also has code for a redirector. Written in French.
You can download it from the following link: https://packetstormsecurity.com/files/download/119044/dnsredirector.txt
Source: https://packetstormsecurity.com/files/119044/DNS-Phishing-Paper-Redirector.html