I'm trying to teach myself networking by running a few VMs in Virtualbox. I got everything working how I want with dnsmasq for DNS and DHCP and natd for gateway routing. Virtualbox is on my OSX machine, which goes out to 192.168.200.1 on my home DSL router. Everything worked fine with dnsmasq and natd, so I know Virtualbox's virtual network interfaces are setup right.
I'm moving on to BIND9 and dhcpd now and getting confused. I guess BIND9 is somewhat different from BIND8, which was in turn much different from previous versions, so I'm having trouble finding good, current tutorials online. Here are some questions I have:
I've never really understood the /etc/resolv.conf file when running a DNS server. I can't remember what I did to it when I had dnsmasq working. It always resets itself to my DNS router's search and nameserver values ("westell.com" and "192.168.200.1"). Is that what it's supposed to be doing? Is it supposed to be set to the private network's domain and nameservers, i.e., 127.0.0.1? If not, what should I set it to and how do I get it to not reset itself?
If I setup BIND9 to be a caching-only server with no zones (which is what I'm going for to start with), will it somehow resolve addresses on the private network, i.e., if I ssh into another machine, should I be able to use the unresolved hostname of the other machine? Or do I have to use the IP address (assuming it got one from dhcpd) unless I setup some zones?
Also, for the caching-only server, where is the cache stored? I'd like to have a look at it just to see what's in there.
I know these are newbie questions, but I'm trying to learn this stuff on my own and don't have anyone else to ask.
Thank you!
I'm moving on to BIND9 and dhcpd now and getting confused. I guess BIND9 is somewhat different from BIND8, which was in turn much different from previous versions, so I'm having trouble finding good, current tutorials online. Here are some questions I have:
I've never really understood the /etc/resolv.conf file when running a DNS server. I can't remember what I did to it when I had dnsmasq working. It always resets itself to my DNS router's search and nameserver values ("westell.com" and "192.168.200.1"). Is that what it's supposed to be doing? Is it supposed to be set to the private network's domain and nameservers, i.e., 127.0.0.1? If not, what should I set it to and how do I get it to not reset itself?
If I setup BIND9 to be a caching-only server with no zones (which is what I'm going for to start with), will it somehow resolve addresses on the private network, i.e., if I ssh into another machine, should I be able to use the unresolved hostname of the other machine? Or do I have to use the IP address (assuming it got one from dhcpd) unless I setup some zones?
Also, for the caching-only server, where is the cache stored? I'd like to have a look at it just to see what's in there.
I know these are newbie questions, but I'm trying to learn this stuff on my own and don't have anyone else to ask.
Thank you!