CNAME'ing www to localhost seems to be useless, reCNAME it to '@' and describe

specifically.

<programlisting> tags do not grok tabs. Fix this at least in zone files where
they look especially ugly.
This commit is contained in:
Dmitry Morozovsky 2006-06-25 07:08:13 +00:00
parent 7a1a8437fd
commit 6305033db4
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=28157

View file

@ -3467,7 +3467,7 @@ mx IN A 192.168.1.4
mail IN A 192.168.1.5
; Aliases
www IN CNAME localhost</programlisting>
www IN CNAME @</programlisting>
<para>
Note that every hostname ending in a <quote>.</quote> is an
@ -3606,14 +3606,21 @@ mail IN A 192.168.1.5</programlisting>
</para>
<programlisting>
www IN CNAME localhost</programlisting>
IN A 192.168.1.1</programlisting>
<para>This line assigns IP address
<hostid role="ipaddr">192.168.1.1</hostid> to the current origin,
in this case <hostid role="domainname">example.org</hostid>.</para>
<programlisting>
www IN CNAME @</programlisting>
<para>
The canonical name record is usually used for giving aliases
to a machine. In the example, <hostid>www</hostid> is
aliased to the machine known as
<hostid role="domainname">localhost.example.org</hostid>
(<hostid role="ipaddr">127.0.0.1</hostid>).
aliased to the <quote>master</quote> machine which name equals
to domain name <hostid role="domainname">example.org</hostid>
(<hostid role="ipaddr">192.168.1.1</hostid>).
CNAMEs can be used to provide alias
hostnames, or round robin one hostname among multiple
machines.