Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F97270459
D37183.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D37183.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sun, Sep 29, 10:03 AM (11 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
13106573
Default Alt Text
D37183.diff (1 KB)
Attached To
Mode
D37183: resolver.5: Add an EXAMPLES section
Attached
Detach File
Event Timeline
Log In to Comment