summaryrefslogtreecommitdiff
path: root/sbin/resolvd
AgeCommit message (Collapse)Author
2021-08-31shorten some codeTheo de Raadt
2021-08-30Accept dns proposals for the loopback addressesKlemens Nanni
Don't reserve^Wignore them for unwind(8); there are non-unwind use-cases and so far resolvd(8) always seems to do the right thing when proposing localhost while unwind is running. OK benno
2021-08-30INADDR_LOOPBACK check needs htonl(3) to workKlemens Nanni
2021-08-05mark up the nameserver command;Jason McIntyre
2021-08-04reference route(8) new nameserver command.Sebastian Benoit
2021-07-21Use exclusive lock under /dev/, silence expected errors in installerkn
resolvd(8), slaacd(8) and dhcpleased(8) are different from other daemons in that there must only be a single instance. resolvd already does this, adjust slaacd and dhcpleased accordingly while moving the lockfile paths under /dev/ such that they work early on boot and don't run into races should /var be (un)mounted between daemon starts. Locking is especially required in the installer where all three daemons are started every time the "(I)nstall, (U)pgrade, (A)utoinstall or (S)hell? " prompt is entered, i.e. restarting installation or dropping into a shell and back into the prompt again would start multiple instances. To avoid expected lockfile error messages in between installer prompts, discard standard error when starting the autoconf daemons; none of them has other potential failure cases in installer mode before daemon(3)izing. Input sthen deraadt OK deraadt
2021-07-18Remove hackery around /tmp/i/resolv.conf*. In particular "lookup file bind"Theo de Raadt
is required because of TLS servername for contacting ftp.openbsd.org, and there is no point doing that in resolv.conf.tail because it is no longer used. ok florian kn
2021-07-17Ignore unwind socket with kevent(2) under SMALLkn
All other unwind related bits are under #ifndef SMALL already, so complete that. OK florian
2021-07-16The installer plays weird tricks with /etc/resolv.conf and symlinks itFlorian Obser
from /tmp/i. Work around this in resolvd so that it can correctly update the file until this is fixed in install.sub. probably grudgingly OK deraadt
2021-05-10remove serial number (used during development to observe file rewrites)Theo de Raadt
2021-05-02Improve documentation. Try to explain the various inputs that result inTheo de Raadt
a rewritten resolv.conf, and without being too precise, the order they will be in the file discussed with florian and jmc
2021-03-19Fix function name in warningkn
2021-03-03Unveil only /etc/resolv.conf and /etc/resolv.conf.new not /etc/kn
Unveiling the entire directory stems from earlier development cycles and is by no means required now, only the two files are created, read from and written to. OK deraadt florian semarie
2021-03-02satisfy older gcc with poor warning generationTheo de Raadt
2021-03-02requires netinet/in.hTheo de Raadt
2021-03-02Add missing RCS markerkn
2021-03-02Do not unveil unused unwind socket under SMALLkn
Remove unused STARTUP_WAIT_TIMO (since import), add missing space to error message.
2021-03-01typo; from Scott BennettTheo de Raadt
2021-02-27ensure local array is same size as globalTheo de Raadt
2021-02-27While I wrote the initial version of resolvd(8) it diverged so muchFlorian Obser
that it's not appropriate to claim that I wrote it.
2021-02-26Ignore SIGHUPkn
It should always run and there is no reload semantic. OK deraadt
2021-02-25Typofixkn
2021-02-25Fix SMALL buildkn
OK deraadt
2021-02-24More accurately describe the DNS proposal sources and reaction by resolvd.Theo de Raadt
with jmc
2021-02-24fairly significant rewrite, including:Theo de Raadt
replace poll+kevent with kevent only. lockfile to block starting of 2nd instance. remove state file, and recognize '# resolvd: ' lines as state handle DNS proposal withdraws better Still a work in progress. tested and looked at by semarie, benno, florian, dlg
2021-02-24Import resold(8), a daemon to rewrite resolv.conf.Florian Obser
prodding deraadt