I am running an experiment to see if i can make my own DNS server request IP address from the internet but instead i want to mic up the addresses a little just as an experiment. What I want to do is make my local DNS server handle the requests that are going out on the internet for instance. I want to put an A record in the zone file to respond to a request for google.com and instead of giving google to the client i want it to give it a different web site (like bing or yahoo)
what i have so far is that i made the zone statement in the named.conf look like this
Code:
zone "." {
type master;
file "zones/master";
};
and the NS and A records look like this
Code:
IN NS .
. IN A 192.168.1.106 (local ip address for my DNS Server)
google.com IN A 131.253.13.32 (the ip address for bing)
when it starts to browse the connection fails even though the A record has an ip address to go to so what is the problem here, even if i try to go to facebook which doesn't have an A record and it still fails. when an A record is unavailable how do i make it move on to the google public dns server which is 8.8.8.8.