I'm looking for a lightweight dns server that could resolve any possible domain name to a specific IP address (e.g 192.168.1.1).
. -> 192.168.1.1
com -> 192.168.1.1
org -> 192.168.1.1
google.com -> 192.168.1.1
yahoo.com -> 192.168.1.1
....
anypossibledomainname.evenifitdoesntexist.blah -> 192.168.1.1
Thanks in advance.
You're not looking for a DNS server but for a Captive Portal solution, wich is in fact a proxy.
If you realy want a DNS-Server, then check out DNSMasq. Using the
--address
Command-Line-Switch and the#
wildcard, this should be very easy:Also check out the
--no-hosts
commandline switch.See the Man-Page
What you want is not a DNS server, but a proxy server. Something like this: http://www.hottproxy.org
If you have a Cisco router, it can be setup to do this: