From nobody Mon Nov 14 07:54:06 2022 X-Original-To: dev-commits-src-all@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 4N9hQk32DKz4hNFV; Mon, 14 Nov 2022 07:54: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 4N9hQk2dMsz4Wdx; Mon, 14 Nov 2022 07:54:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668412446; 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=cbHlP87wuwU3wnVhWEyb6WPcjIl6pRO1RYDUsJOwYy0=; b=JQBs4xA2JIcBevKkz/Mphk8vSs86DYL79fVrFuldJXES5FcBxQVTg6kuhGlHAuFgCHATX4 F4U8S+dqWtLo9x4dt2O14DRzQ7aBtoA1jK2dshAFU3XgAtgVJnKcT+nq6O303GgnjbQzFU pLgtAll9EYWUfaJMZyQBvMJcd1qOcFrky2fNquyFBNmJFFfas8s+t1czIIIT+CSSKpIRX1 SuQDsorX3bLJWChsDwt+afjgyI3U8ATV5LvegyHhNVxLMGOc2/NvU01k9uZTpeHfF4D8pi 2EMCysJYxkQLvyy5d3U26rSI3GUHJegucp6ToTYtdQjjvYifnllkTHVcgWIzfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668412446; 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=cbHlP87wuwU3wnVhWEyb6WPcjIl6pRO1RYDUsJOwYy0=; b=LuZBUJd7X/ZjXOi6fCl/qBssgJ221Wz1fJvYyQcmOCPTNWdXMLcV6Y1MhN5eu8x5YfP669 sk/9/cx+dO+Y7ss3tojuF6CmUlw1SJ0VfZI3yYjtl8vd/iYm9WpuOFCRUBHKAoIMArLN7J oQ9tFIpJ0aAXqlpZ8SfgN9ZaMXItS0jlrOE0tVdSUgIw9H4guFPqCla0zviBt9JyBwsDHe aYgK29GYVZ+q0h1lp7qL/O4OKl2e3oWfuMMhtzC1VlbnzVC3jFNHSUDLLOE/KfNmTtlh+b tUDaCKp2zEtvLSNnxvTbwO+IJ9JqehC11P0aF4wojA+zDDvtnpqS/ldgULykfg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668412446; a=rsa-sha256; cv=none; b=g1GR7qArmWLTfAhoKhCtAJPBcmXj3FaOmpWp7oDT2fFvljStsIQxBW9umG9K+YaycRFdcY vcW3VmnvairOHgLA+UohTG/bGAZJiX51qb2Cbzh6Um/pqiPtwnMJ3kTxx15XZ91xsDs3UQ s57j7FxZ+irAyh+pgggPiGXDXGejlmj1S/j2caRYVs4+sc6XuFMTDWFyngK61SfTXWiJBk RWypOO1mJ1MmyWSsmNrpmJoAn7czh9/T4Syr4A7LHO5z6DqdlccsKnVCEBoVTM+i81jlfl RP9ttQ3+SMO2kst+txJdNjSdQ2QDWGjhVsllpBeawwX2g1tke6sn9Jmuu2j1cA== 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 4N9hQk1j8vzYwv; Mon, 14 Nov 2022 07:54: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 2AE7s6sL040378; Mon, 14 Nov 2022 07:54:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2AE7s6UB040377; Mon, 14 Nov 2022 07:54:06 GMT (envelope-from git) Date: Mon, 14 Nov 2022 07:54:06 GMT Message-Id: <202211140754.2AE7s6UB040377@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Gordon Bergling Subject: git: 440ccb313c70 - stable/13 - resolver.5: Add an EXAMPLES section List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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/stable/13 X-Git-Reftype: branch X-Git-Commit: 440ccb313c70cc763323545fc3e17939bc82eaf0 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by gbe (doc committer): URL: https://cgit.FreeBSD.org/src/commit/?id=440ccb313c70cc763323545fc3e17939bc82eaf0 commit 440ccb313c70cc763323545fc3e17939bc82eaf0 Author: Gordon Bergling AuthorDate: 2022-11-07 11:09:43 +0000 Commit: Gordon Bergling CommitDate: 2022-11-14 07:53:58 +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 Differential Revision: https://reviews.freebsd.org/D37183 (cherry picked from commit 4d00d772e9aa995f93da41883a1fea5e2e43f818) --- 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 ,