View Single Post
  #5   (View Single Post)  
Old 21st July 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

My dhcpd(8) servers informs clients which nameservers to use:
Code:
option   domain-name-servers 10.0.1.1, 10.0.4.1;
As discussed recently in one of bceverly's threads, all known devices are assigned reserved IP addresses in dhcpd.conf. Here's an example of a laptop, it's MAC address has been redacted because I'm not copying-pasting at the moment, just typing from memory:
Code:
        host laptop {
                hardware ethernet xx:xx:xx:xx:xx:xx;
                fixed-address 10.0.1.133;
}
This device is in the local-zone in unbound.conf, so it will be resolved locally:
Code:
local-data: "laptop.jggimi.homeip.net. IN A 10.0.1.133"
.
.
.
local-data-ptr: "10.0.1.133 laptop.jggimi.homeip.net"
Lastly, the forward-zone refers to Google's public DNS which resolves all authoritative (internet-facing) IP addresses.
Code:
forward-zone:
        name "."
        forward-addr: 8.8.8.8
        forward-addr: 8.8.4.4

Last edited by jggimi; 21st July 2015 at 04:09 PM. Reason: several corrections in the hours since this was posted. Latest correction: bceverly's thread, with link
Reply With Quote