1.\" $OpenBSD: resolvd.8,v 1.5 2021/03/01 05:15:37 deraadt Exp $ 2.\" 3.\" Copyright (c) 2021 Florian Obser <florian@openbsd.org> 4.\" 5.\" Permission to use, copy, modify, and distribute this software for any 6.\" purpose with or without fee is hereby granted, provided that the above 7.\" copyright notice and this permission notice appear in all copies. 8.\" 9.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16.\" 17.Dd $Mdocdate: March 1 2021 $ 18.Dt RESOLVD 8 19.Os 20.Sh NAME 21.Nm resolvd 22.Nd a daemon to handle nameserver configuration 23.Sh SYNOPSIS 24.Nm 25.Op Fl dv 26.Sh DESCRIPTION 27.Nm 28handles the contents of 29.Pa /etc/resolv.conf , 30which contains details of the system's DNS nameservers, and is 31read by the resolver routines in the C library. 32.Pp 33.Nm 34checks whether 35.Xr unwind 8 36is running and 37monitors the routing socket for proposals sent by 38.Xr dhclient 8 , 39.Xr slaacd 8 , 40or network devices which learn DNS information such as 41.Xr umb 4 . 42.Pp 43If 44.Xr unwind 8 45is running it prepends the following to 46.Pa /etc/resolv.conf : 47.Pp 48.Dl nameserver 127.0.0.1 49.Pp 50It also adds any other DNS proposals, 51but commented out. 52If 53.Xr unwind 8 54is not running it simply adds any other DNS proposals. 55After that, it appends user-edited lines to the file. 56.Pp 57.Nm 58keeps track of which parts it managed in the past and will only change those. 59It will also create 60.Pa /etc/resolv.conf 61if it does not exist or if it is empty. 62.Pp 63The options are as follows: 64.Bl -tag -width Ds 65.It Fl d 66Do not daemonize. 67If this option is specified, 68.Nm 69will run in the foreground and log to 70.Em stderr . 71.It Fl v 72Produce more verbose output. 73.El 74.Sh SEE ALSO 75.Xr resolv.conf 5 , 76.Xr dhclient 8 , 77.Xr slaacd 8 , 78.Xr unwind 8 79.Sh HISTORY 80The 81.Nm 82program first appeared in 83.Ox 6.9 . 84