Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Jun 2020 23:50:08 -0700
From:      Chris <bsd-lists@BSDforge.com>
To:        <net@FreeBSD.org>
Cc:        Andriy Gapon <avg@FreeBSD.org>
Subject:   Re: unbound and (isc) dhcpd startup order
Message-ID:  <17b97eced1b46f6f0891c83962242c6c@udns.ultimatedns.net>
In-Reply-To: <3ace8441-a59b-8667-ed32-324853360281@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 15 Jun 2020 09:10:18 +0300 Andriy Gapon avg@FreeBSD=2Eorg said

> I am configuring a small LAN -- mostly a gateway / router for it -- and I=
 am
> using unbound for a local DNS and isc-dhcp44-server for DHCP=2E
> I have a few hosts with static IP addresses (for various reasons)=2E
> So, in unbound=2Econf I have an entry like
>  local-data: "hipster=2Ehome=2Earpa=2E IN A 192=2E168=2E0=2E222"
> and in dhcpd=2Econf  have:
>  host hipster {
>=20
>=20
>    hardware ethernet 40:74:e0:xx:xx:xx;
>=20
>=20
>    fixed-address hipster=2Ehome=2Earpa;
>=20
>=20
> }
>=20
> I am using a DNS name to avoid hardcoding the same IP address twice=2E
> But obviously this depends on the local DNS server starting before the HD=
CP
> server if they are on the same host / router=2E
> It seems that at the moment there is nothing to ensure that order=2E
Isn't there something like a "start late" available in rc=2Econf rc(8)? That
would then permit starting your local unbound prior to DHCPD?
Maybe that allow you to achieve your desired results?

>=20
> For the moment I modified rc=2Ed/unbound to add this line:
>  # BEFORE: dhcpd
> I am not sure if this is the best solution and it's something that can be
> included into the port=2E
>=20
> On a related note, unbound rc script provides "unbound" service=2E
> I think that maybe it should provide something more generic such as
> "nameserver"
> or "dns-server" (not sure if there is an established name for that)=2E
> The reason I am saying this is that, IMO, if unbound is replaced with som=
e
> other
> name server implementation the rc dependency chains should stay the same=2E
>=20
> Thanks!
> --=20
> Andriy Gapon

--Chris





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?17b97eced1b46f6f0891c83962242c6c>