From nobody Mon Nov 07 11:10:06 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4N5T665Py4z4ghXn; Mon, 7 Nov 2022 11:10:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4N5T664VyMz3XBT; Mon, 7 Nov 2022 11:10:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667819406; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zh4tuVNxnoYoAT8samKWm6Mu+W7n/bN8jP2Y6l/ankY=; b=U4S915SQp5WM4+wbbgU7WGT0c1bL/2lekrmHXZEc0LR0KB6iAhBsAuLW5dsNeAE1OczkS7 ovK2EsIB0dbGqH9hqX5r7qnKauwBBmVoo/XiC9wfMtE/PMWqfAF0esFXKFEdMlwHOuosw2 JqdPSpeqZDcdud2PSaInyWIwcCWiakjvdu6I1xTn3OJmeVDdymcPFIPDO7Jyvt6131/yXk GqwQJqFWC+cP5DwiT+qSJiU1Gj5924Ra1nvlNcJ2G3To9vXgbgwt/sL0imTxn4aVOdthn1 1wpZPXuNyu2EipASomkRym/jx/XuGx0hnZ2RHdQ5nvfVf/UnsL83daiIo071yA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4N5T663S6DzycY; Mon, 7 Nov 2022 11:10:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2A7BA6Uw071127; Mon, 7 Nov 2022 11:10:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2A7BA6IH071124; Mon, 7 Nov 2022 11:10:06 GMT (envelope-from git) Date: Mon, 7 Nov 2022 11:10:06 GMT Message-Id: <202211071110.2A7BA6IH071124@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Gordon Bergling Subject: git: 4d00d772e9aa - main - resolver.5: Add an EXAMPLES section List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: gbe X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4d00d772e9aa995f93da41883a1fea5e2e43f818 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667819406; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zh4tuVNxnoYoAT8samKWm6Mu+W7n/bN8jP2Y6l/ankY=; b=ryzlCnuO06kBi1Jw0+K2I2dBa2oQzGXuUv/wR6oOwI3iH6f8qeAqaqSKrs6uwa5/q6PbVI eMpW1E6FcyPiFe4H8+WEsFDP6zJiwPa1XTNSWM/U1Fl7lxkiVBI0I8+4P7RXF9g5dNQhNk NfI8DnFF1zoKrqUzzICpPCRzmuMhwdRNpDzMrI8JXssO370XUPx6t6OshBZHyKzS2WzcmO 7s8ktPXEE8NKUk1VFNqNT0S7KC61mPtf8IdNxodDNWhO0vkszI/tNO3U3OPP6VroNv+WBl cc0/mpWpFrrZhvucZsPbTDb2iJkaa0n1k9sIzhonIPxbTCfwwe+xl3pDdXZWpA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1667819406; a=rsa-sha256; cv=none; b=Wi82R1bLBhNE5ctBnblXVPS/DSnmiBx1qmx5rxdErFdUR9E1mTP7t33BiGh8DbCh8CNdeu X+jZa0yRQaC7XRqfyA672ZAdzRyquliBXGabZVQaLOOWuO3abnkVtC0En10slMC35i14BI eqhgl12fwMzH78UpQCEcfbFTRMl0SSSW6kwLEIU/k2sugC2W7mIW9hL2XfV4Acn5ChTeYU +nNMg45/F9HNPsSL/xDyL7MmS5xBOgRKvwgr5QrxNMvnQIjeq0DlF7I0vVXtNpnzboPm7f 3GXafCmoveiSN6M9u9KkxEuXLThdZTkmkM4FJbXurCH+MzugqQry5NNemc0XRA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by gbe (doc committer): URL: https://cgit.FreeBSD.org/src/commit/?id=4d00d772e9aa995f93da41883a1fea5e2e43f818 commit 4d00d772e9aa995f93da41883a1fea5e2e43f818 Author: Gordon Bergling AuthorDate: 2022-11-07 11:09:43 +0000 Commit: Gordon Bergling CommitDate: 2022-11-07 11:09:43 +0000 resolver.5: Add an EXAMPLES section In case local-unbound(8) fails for some reason, it could be useful to have a basic resolv.conf(5) example in the manual page. Reviewed by: karels, pauamma MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D37183 --- share/man/man5/resolver.5 | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/share/man/man5/resolver.5 b/share/man/man5/resolver.5 index 9b45d668f4c9..e2c78e8a3bc9 100644 --- a/share/man/man5/resolver.5 +++ b/share/man/man5/resolver.5 @@ -28,7 +28,7 @@ .\" @(#)resolver.5 8.1 (Berkeley) 6/5/93 .\" $FreeBSD$ .\" -.Dd September 15, 2022 +.Dd November 7, 2022 .Dt RESOLVER 5 .Os .Sh NAME @@ -220,6 +220,29 @@ The file resides in .Pa /etc . .El +.Sh EXAMPLES +A basic resolv.conf file could be in the following form. +.Bd -literal -offset indent +# The domain directive is only necessary, if your local +# router advertises something like localdomain and you have +# set up your hostnames via an external domain. +domain localdomain.tld + +# In case you a running a local dns server or caching name server +# like local-unbound(8) for example. +nameserver 127.0.0.1 + +# IP address of the local or ISP name service +nameserver 192.168.2.1 + +# Fallback nameservers, in this case these from Google. +nameserver 8.8.8.8 +nameserver 4.4.4.4 + +# Attach an OPT pseudo-RR for the EDNS0 extension, +# as specified in RFC 2671. +options edns0 +.Ed .Sh SEE ALSO .Xr gethostbyname 3 , .Xr resolver 3 ,