Tuesday, November 02, 2021

Re: rc.firsttime after package daemons

On 2021-11-01, Kapetanakis Giannis <bilias@edu.physics.uoc.gr> wrote:
> Hi,
>
> Just a notice for this.
> I have a system which is a DNS server it self and runs isc-bind, so the daemon is \
> started from $pkg_scripts.
> rc.firsttime is run before pkg daemons are started so the system cannot (yet) \
> resolve since it lists itself in /etc/resolv.conf
> If there is no other reason, maybe rc.firsttime could be moved after package \
> daemons are started.
Unless you're married to isc-bind, you can run unbound(8) as a recursive, validating, and caching recursive DNS server instead or nsd(8) as an authoritative DNS server. Both of those are part of the base install and are started early in rc(8). That's what I do, and I have no issues.

If you insist on using something not part of base, then you can always edit rc(8) or rc.firsttime(8) such that the daemon runs sooner. While that is not recommended and requires you to accept responsibility of your "custom" system, I have not had any trouble getting dhcpcd running when dhcpleased runs allowing me to set up both IPv6 (which I prefer) and IPv4 early on in the boot process. I avoid enabling it in rc.conf.local(8) though.

Zack

No comments:

Post a Comment