On Mon, Jan 6, 2020 at 9:26 AM Sonic <sonicsm...@gmail.com> wrote: > > You have it backwards, let dhcp use the information in unbound to > assign the reserved address: > =============================== > host alice { > hardware ethernet 20:9e:02:f5:93:60; > fixed-address alice.home.lan; > option host-name "alice"; > } > =============================== This is how I do it too, except simplified further by setting the use-host-decl-names option at a higher scope (see dhcpd.conf(5)); then you don't need "option host-name ..." for each host.
> Start unbound before dhcpd in your rc.conf.local (ex): > =============================== > unbound_flags="-c /var/unbound/etc/unbound.conf" > dhcpd_flags="em0" > =============================== The order of directives in rc.conf.local does not matter, as the order of base daemons is hardcoded in /etc/rc (and does indeed start unbound before dhcpd); as a matter of fact, 'rcctl enable foo' will sort the file! (I personally dislike this behavior, since it moves comment lines away from the things they're commenting on, but I digress...) The only order that does matter is words within the pkg_scripts setting, which orders those relative to each other. > Make sure your resolv.conf points to unbound so that your system can > resolve the local dns names. If your uplink interface interface is configured as DHCP, this will need to be set in dhclient.conf, e.g. "supersede domain-name-servers 127.0.0.1". -Andrew