Page MenuHomeFreeBSD

D37183.diff
No OneTemporary

D37183.diff

diff --git a/share/man/man5/resolver.5 b/share/man/man5/resolver.5
--- 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 @@
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 ,

File Metadata

Mime Type
text/plain
Expires
Sun, Sep 29, 6:38 AM (8 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
13106573
Default Alt Text
D37183.diff (1 KB)

Event Timeline