In DNS section:
- CERT is no longer accepting subscriptions to his advisory mailing list, fix this but keep a link to CERT site - Use entity for security-notifications list instead of a link to the mailing-lists section - Some s/bind/BIND and other uppercase fixes - Punctuations fixes - Add missing tags and fix some tags - DNS records type should not be tagged as varname, remove tags then. - s/zonefile/zone file/ for consistency
This commit is contained in:
parent
b66df525c0
commit
114e167e56
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=21413
1 changed files with 30 additions and 30 deletions
|
@ -5613,9 +5613,9 @@ zone
|
||||||
// NB: Don't blindly enable the examples below. :-) Use actual names
|
// NB: Don't blindly enable the examples below. :-) Use actual names
|
||||||
// and addresses instead.
|
// and addresses instead.
|
||||||
//
|
//
|
||||||
// NOTE!!! FreeBSD runs bind in a sandbox (see named_flags in rc.conf).
|
// NOTE!!! FreeBSD runs BIND in a sandbox (see named_flags in rc.conf).
|
||||||
// The directory containing the secondary zones must be write accessible
|
// The directory containing the secondary zones must be write accessible
|
||||||
// to bind. The following sequence is suggested:
|
// to BIND. The following sequence is suggested:
|
||||||
//
|
//
|
||||||
// mkdir /etc/namedb/s
|
// mkdir /etc/namedb/s
|
||||||
// chown bind:bind /etc/namedb/s
|
// chown bind:bind /etc/namedb/s
|
||||||
|
@ -5646,7 +5646,7 @@ zone "0.168.192.in-addr.arpa" {
|
||||||
entries for a forward and reverse zone.</para>
|
entries for a forward and reverse zone.</para>
|
||||||
|
|
||||||
<para>For each new zone served, a new zone entry must be added to
|
<para>For each new zone served, a new zone entry must be added to
|
||||||
<filename>named.conf</filename></para>
|
<filename>named.conf</filename>.</para>
|
||||||
|
|
||||||
<para>For example, the simplest zone entry for
|
<para>For example, the simplest zone entry for
|
||||||
<hostid role="domainname">example.org</hostid> can look like:</para>
|
<hostid role="domainname">example.org</hostid> can look like:</para>
|
||||||
|
@ -5676,7 +5676,7 @@ zone "0.168.192.in-addr.arpa" {
|
||||||
<sect3>
|
<sect3>
|
||||||
<title>Zone Files</title>
|
<title>Zone Files</title>
|
||||||
<para>
|
<para>
|
||||||
An example master zone file for <hostid>example.org</hostid>
|
An example master zone file for <hostid role="domainname">example.org</hostid>
|
||||||
(existing within <filename>/etc/namedb/example.org</filename>)
|
(existing within <filename>/etc/namedb/example.org</filename>)
|
||||||
is as follows:
|
is as follows:
|
||||||
</para>
|
</para>
|
||||||
|
@ -5711,8 +5711,8 @@ www IN CNAME @
|
||||||
Note that every hostname ending in a <quote>.</quote> is an
|
Note that every hostname ending in a <quote>.</quote> is an
|
||||||
exact hostname, whereas everything without a trailing
|
exact hostname, whereas everything without a trailing
|
||||||
<quote>.</quote> is referenced to the origin. For example,
|
<quote>.</quote> is referenced to the origin. For example,
|
||||||
<literal>www</literal> is translated into <literal>www +
|
<literal>www</literal> is translated into <literal>www.<replaceable>origin</replaceable></literal>.
|
||||||
origin</literal>. In our fictitious zone file, our origin
|
In our fictitious zone file, our origin
|
||||||
is <hostid>example.org.</hostid>, so
|
is <hostid>example.org.</hostid>, so
|
||||||
<literal>www</literal> would translate to
|
<literal>www</literal> would translate to
|
||||||
<hostid>www.example.org.</hostid>
|
<hostid>www.example.org.</hostid>
|
||||||
|
@ -5747,7 +5747,7 @@ www IN CNAME @
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>A</term>
|
<term>A</term>
|
||||||
|
|
||||||
<listitem><para>A host address</para></listitem>
|
<listitem><para>a host address</para></listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
|
@ -5782,24 +5782,24 @@ example.org. IN SOA ns1.example.org. admin.example.org. (
|
||||||
|
|
||||||
<variablelist>
|
<variablelist>
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><hostid>example.org.</hostid></term>
|
<term><hostid role="domainname">example.org.</hostid></term>
|
||||||
|
|
||||||
<listitem><para>the domain name, also the origin for this
|
<listitem><para>the domain name, also the origin for this
|
||||||
zone file.</para></listitem>
|
zone file.</para></listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><hostid>ns1.example.org.</hostid></term>
|
<term><hostid role="fqdn">ns1.example.org.</hostid></term>
|
||||||
|
|
||||||
<listitem><para>the primary/authoritative name server for this
|
<listitem><para>the primary/authoritative name server for this
|
||||||
zone</para></listitem>
|
zone.</para></listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><literal>admin.example.org.</literal></term>
|
<term><literal>admin.example.org.</literal></term>
|
||||||
|
|
||||||
<listitem><para>the responsible person for this zone,
|
<listitem><para>the responsible person for this zone,
|
||||||
email address with @
|
email address with <quote>@</quote>
|
||||||
replaced. (<email>admin@example.org</email> becomes
|
replaced. (<email>admin@example.org</email> becomes
|
||||||
<literal>admin.example.org</literal>)</para>
|
<literal>admin.example.org</literal>)</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
@ -5808,12 +5808,12 @@ example.org. IN SOA ns1.example.org. admin.example.org. (
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><literal>5</literal></term>
|
<term><literal>5</literal></term>
|
||||||
|
|
||||||
<listitem><para>the serial number of the file. this
|
<listitem><para>the serial number of the file. This
|
||||||
must be incremented each time the zone file is modified.
|
must be incremented each time the zone file is modified.
|
||||||
Nowadays, many admins prefer a
|
Nowadays, many admins prefer a
|
||||||
<literal>yyyymmddrr</literal> format for the serial
|
<literal>yyyymmddrr</literal> format for the serial
|
||||||
number. 2001041002 would mean last modified 04/10/2001,
|
number. <literal>2001041002</literal> would mean last modified 04/10/2001,
|
||||||
the latter 02 being the second time the zone file has
|
the latter <literal>02</literal> being the second time the zone file has
|
||||||
been modified this day. The serial number is important
|
been modified this day. The serial number is important
|
||||||
as it alerts slave name servers for a zone when it is
|
as it alerts slave name servers for a zone when it is
|
||||||
updated.</para>
|
updated.</para>
|
||||||
|
@ -5825,7 +5825,7 @@ example.org. IN SOA ns1.example.org. admin.example.org. (
|
||||||
@ IN NS ns1.example.org.</programlisting>
|
@ IN NS ns1.example.org.</programlisting>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
This is an <varname>NS</varname> entry. Every name server that is going to reply
|
This is an NS entry. Every name server that is going to reply
|
||||||
authoritatively for the zone must have one of these entries.
|
authoritatively for the zone must have one of these entries.
|
||||||
The <literal>@</literal> as seen here could have been
|
The <literal>@</literal> as seen here could have been
|
||||||
<hostid role="domainname">example.org.</hostid>
|
<hostid role="domainname">example.org.</hostid>
|
||||||
|
@ -5857,7 +5857,7 @@ www IN CNAME @</programlisting>
|
||||||
aliased to the machine addressed to the origin, or
|
aliased to the machine addressed to the origin, or
|
||||||
<hostid role="domainname">example.org</hostid>
|
<hostid role="domainname">example.org</hostid>
|
||||||
(<hostid role="ipaddr">3.2.1.30</hostid>).
|
(<hostid role="ipaddr">3.2.1.30</hostid>).
|
||||||
<varname>CNAME</varname>s can be used to provide alias
|
CNAMEs can be used to provide alias
|
||||||
hostnames, or round robin one hostname among multiple
|
hostnames, or round robin one hostname among multiple
|
||||||
machines.
|
machines.
|
||||||
</para>
|
</para>
|
||||||
|
@ -5870,7 +5870,7 @@ www IN CNAME @</programlisting>
|
||||||
@ IN MX 10 mail.example.org.</programlisting>
|
@ IN MX 10 mail.example.org.</programlisting>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
The <varname>MX</varname> record indicates which mail
|
The MX record indicates which mail
|
||||||
servers are responsible for handling incoming mail for the
|
servers are responsible for handling incoming mail for the
|
||||||
zone. <hostid role="fqdn">mail.example.org</hostid> is the
|
zone. <hostid role="fqdn">mail.example.org</hostid> is the
|
||||||
hostname of the mail server, and 10 being the priority of
|
hostname of the mail server, and 10 being the priority of
|
||||||
|
@ -5887,8 +5887,8 @@ www IN CNAME @</programlisting>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
For in-addr.arpa zone files (reverse DNS), the same format is
|
For in-addr.arpa zone files (reverse DNS), the same format is
|
||||||
used, except with <varname>PTR</varname> entries instead of
|
used, except with PTR entries instead of
|
||||||
<varname>A</varname> or <varname>CNAME</varname>.
|
A or CNAME.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<programlisting>$TTL 3600
|
<programlisting>$TTL 3600
|
||||||
|
@ -5961,7 +5961,7 @@ www IN CNAME @</programlisting>
|
||||||
following checklist, it is assumed that the path to the sandbox
|
following checklist, it is assumed that the path to the sandbox
|
||||||
is <filename>/etc/namedb</filename> and that you have made no
|
is <filename>/etc/namedb</filename> and that you have made no
|
||||||
prior modifications to the contents of this directory. Perform
|
prior modifications to the contents of this directory. Perform
|
||||||
the following steps as <username>root</username>.</para>
|
the following steps as <username>root</username>:</para>
|
||||||
|
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
<listitem>
|
<listitem>
|
||||||
|
@ -6005,7 +6005,7 @@ $TTL 6h
|
||||||
<calloutlist>
|
<calloutlist>
|
||||||
<callout arearefs="localtime">
|
<callout arearefs="localtime">
|
||||||
<para>This allows <application>named</application> to log the
|
<para>This allows <application>named</application> to log the
|
||||||
correct time to &man.syslogd.8;</para>
|
correct time to &man.syslogd.8;.</para>
|
||||||
</callout>
|
</callout>
|
||||||
</calloutlist>
|
</calloutlist>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
@ -6073,9 +6073,9 @@ $TTL 6h
|
||||||
<note>
|
<note>
|
||||||
<para>This simply avoids having to specify the
|
<para>This simply avoids having to specify the
|
||||||
<option>-c</option> option to &man.ndc.8; every time you
|
<option>-c</option> option to &man.ndc.8; every time you
|
||||||
run it. Since the contents of /var/run are deleted on boot,
|
run it. Since the contents of <filename>/var/run</filename> are deleted on boot,
|
||||||
if this is something that you find useful you
|
if this is something that you find useful you
|
||||||
may wish to add this command to root's crontab, making use
|
may wish to add this command to <username>root</username>'s <filename>crontab</filename>, making use
|
||||||
of the <option>@reboot</option> option. See
|
of the <option>@reboot</option> option. See
|
||||||
&man.crontab.5; for more information regarding
|
&man.crontab.5; for more information regarding
|
||||||
this.</para>
|
this.</para>
|
||||||
|
@ -6171,7 +6171,7 @@ zone "10.168.192.in-addr.arpa" in {
|
||||||
<application>named</application> needs are within this
|
<application>named</application> needs are within this
|
||||||
directory (recall that this is equivalent to a
|
directory (recall that this is equivalent to a
|
||||||
<quote>normal</quote> user's
|
<quote>normal</quote> user's
|
||||||
<filename>/etc/namedb</filename>.</para>
|
<filename>/etc/namedb</filename>).</para>
|
||||||
</callout>
|
</callout>
|
||||||
|
|
||||||
<callout arearefs="named-xfer">
|
<callout arearefs="named-xfer">
|
||||||
|
@ -6184,13 +6184,13 @@ zone "10.168.192.in-addr.arpa" in {
|
||||||
</callout>
|
</callout>
|
||||||
<callout arearefs="master"><para>Specifies the filename (relative
|
<callout arearefs="master"><para>Specifies the filename (relative
|
||||||
to the <literal>directory</literal> statement above) where
|
to the <literal>directory</literal> statement above) where
|
||||||
<application>named</application> can find the zonefile for this
|
<application>named</application> can find the zone file for this
|
||||||
zone.</para>
|
zone.</para>
|
||||||
</callout>
|
</callout>
|
||||||
<callout arearefs="slave"><para>Specifies the filename
|
<callout arearefs="slave"><para>Specifies the filename
|
||||||
(relative to the <literal>directory</literal> statement above)
|
(relative to the <literal>directory</literal> statement above)
|
||||||
where <application>named</application> should write a copy of
|
where <application>named</application> should write a copy of
|
||||||
the zonefile for this zone after successfully transferring it
|
the zone file for this zone after successfully transferring it
|
||||||
from the master server. This is why we needed to change the
|
from the master server. This is why we needed to change the
|
||||||
ownership of the directory <filename>slave</filename> to
|
ownership of the directory <filename>slave</filename> to
|
||||||
<groupname>bind</groupname> in the setup stages above.</para>
|
<groupname>bind</groupname> in the setup stages above.</para>
|
||||||
|
@ -6215,9 +6215,9 @@ zone "10.168.192.in-addr.arpa" in {
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
It is a good idea to subscribe to <ulink
|
It is a good idea to read <ulink
|
||||||
url="http://www.cert.org/">CERT</ulink> and
|
url="http://www.cert.org/">CERT</ulink>'s security advisories and
|
||||||
<ulink url="../handbook/eresources.html#ERESOURCES-MAIL">freebsd-security-notifications</ulink>
|
to subscribe to the &a.security-notifications;
|
||||||
to stay up to date with the current Internet and FreeBSD security
|
to stay up to date with the current Internet and FreeBSD security
|
||||||
issues.
|
issues.
|
||||||
</para>
|
</para>
|
||||||
|
@ -6235,7 +6235,7 @@ zone "10.168.192.in-addr.arpa" in {
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para><ulink
|
<para><ulink
|
||||||
url="http://www.isc.org/products/BIND/">Official ISC Bind
|
url="http://www.isc.org/products/BIND/">Official ISC BIND
|
||||||
Page</ulink></para>
|
Page</ulink></para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue