here is how to setup the bind dns server to redirect all dns queries
Code:
# named.conf
include "/etc/rndc.key";
controls {
inet 127.0.0.1 port 953 allow { localhost; } keys { "rndc-key"; };
};
options {
directory "/var/named";
recursion true;
};
zone "." IN {
type master;
file "db.localroot";
};
Code:
# db.localroot
@ IN SOA hostname.example.com admin.example.com (
1 ; Serial
3600 ; Refresh every 1 hours
1800 ; Retry every 30 minutes
604800 ; Expire after 7 days
1 ) ; TTL 1 second
IN NS 10.0.0.1
IN A 10.0.0.1
* IN A 10.0.0.1