DNS and BIND
I am running a DNS server with BIND 9. Here is my named.conf file (I replaced my real IP and domain name info with fake stuff).
options { directory "/var/named"; /* * If there is a firewall between you and nameservers you want * to talk to, you might need to uncomment the query-source * directive below. Previous versions of BIND always asked * questions using port 53, but BIND 8.1 uses an unprivileged * port by default. */ query-source address 10.1.1.1 port 53; }; //master zone "test.com" IN { type master; file "test.com.zone"; allow-update { none; }; }; //reverse zone "1.1.10.in-addr.arpa" IN { type master; file "1.1.10.zone"; allow-update { none; }; }; This server is visible on the Internet. The DNS server is registered and works fine. My question is regarding my machine within my internal network. I specify this DNS server as my only DNS server in my network properties. When I browse the Internet, my DNS server is able to resolve any FQDN. How is that possible? I am not specifying a location of a root.hints file or anything like that. I thought my DNS would only resolve names that were stored in my zone files. Any ideas? |
check your /etc/resolv.conf
when running dns server, your server takes care of your own domains + serves for any other dns checks, that's why we use them right? |
my resolv.conf has only one entry for my own DNS server.
thats it. |
If you want your dns to resolve only local domains, don't allow him go outside on internet or remove root.hints.
the good thing about it is that you can resolve bogus domains as well as fqdn. so you can setup tld letsay mynet and have www.mylinux.mynet as your home website |
Look at my post a little closer.
All my machines use one DNS server which is my own. I do not have a root.hints file on my DNS server. All my machines query one DNS server on my network to resolve host names. My DNS server doesnt include any other nameserver in my zone files or resolv.conf. When I use a machine on my network to access the Internet, all URLs as resolved. My DNS server is somehow resolving these requests from my machines somehow. My question was, How? My zone files only have entries for machines on my network. Resolv.conf has 2 entries search test.com nameserver 10.1.1.1 understand? How can my DNS server resolve host name on the Internet, when it has no reference to any other nameservers?? |
no you have to have another dns doing the job, or root.hints read by your dns
|
All times are GMT -5. The time now is 04:37 PM. |