aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2001-03-10 13:44:20 +0800
committervanilla <vanilla@FreeBSD.org>2001-03-10 13:44:20 +0800
commit412aa3e7c4f492ac18a976f358ee272107170e8b (patch)
tree62d9170d9cd13917677eb3895d9968441bee8a23
parentff5b0ec430b2a0a9083d96da7c6a049a5e448724 (diff)
downloadfreebsd-ports-gnome-412aa3e7c4f492ac18a976f358ee272107170e8b.tar.gz
freebsd-ports-gnome-412aa3e7c4f492ac18a976f358ee272107170e8b.tar.zst
freebsd-ports-gnome-412aa3e7c4f492ac18a976f358ee272107170e8b.zip
Bump version, make patch-dns work.
The origin DNS-HOWTO's version is 3.0, and the current one is 3.1. Approved by: kris.
-rw-r--r--misc/Howto/Makefile3
-rw-r--r--misc/Howto/files/patch-dns658
2 files changed, 345 insertions, 316 deletions
diff --git a/misc/Howto/Makefile b/misc/Howto/Makefile
index 35de3e15d6b0..b5780be490b4 100644
--- a/misc/Howto/Makefile
+++ b/misc/Howto/Makefile
@@ -7,6 +7,7 @@
PORTNAME= Howto
PORTVERSION= 1.0
+PORTREVISION= 1
CATEGORIES= misc
MASTER_SITES= ftp://metalab.unc.edu/pub/Linux/docs/HOWTO/other-formats/sgml/ \
ftp://metalab.unc.edu/pub/Linux/docs/HOWTO/mini/other-formats/sgml/
@@ -18,7 +19,7 @@ DISTFILES= Linux+FreeBSD.sgml.gz \
MAINTAINER= ports@FreeBSD.org
-BUILD_DEPENDS= sgmlfmt:${PORTSDIR}/textproc/sgmlformat
+#BUILD_DEPENDS= sgmlfmt:${PORTSDIR}/textproc/sgmlformat
DIST_SUBDIR= Howto
NO_WRKSUBDIR= yes
diff --git a/misc/Howto/files/patch-dns b/misc/Howto/files/patch-dns
index 0199ffc5784b..e613a7fd3194 100644
--- a/misc/Howto/files/patch-dns
+++ b/misc/Howto/files/patch-dns
@@ -1,52 +1,50 @@
---- DNS-HOWTO.sgml.orig Thu May 6 23:21:26 1999
-+++ DNS-HOWTO.sgml Thu May 6 23:45:20 1999
+--- DNS-HOWTO.sgml.orig Sat Mar 10 13:12:21 2001
++++ DNS-HOWTO.sgml Sat Mar 10 13:38:31 2001
@@ -1,4 +1,4 @@
-<!doctype linuxdoc system>
+<!doctype linuxdoc public "-//FreeBSD//DTD linuxdoc 1.1//EN">
<!-- -*-SGML-*- -->
<article>
- <title>DNS HOWTO
-@@ -58,10 +58,10 @@
- <p>DNS is is the Domain Name System. DNS converts machine names to
- the IP addresses that all machines on the net have. It maps from name
- to address and from address to name, and some other things. This
--HOWTO documents how to define such mappings using a Linux system. A
-+HOWTO documents how to define such mappings using a FreeBSD system. A
- mapping is simply a association between two things, in this case a
--machine name, like <tt/ftp.linux.org/, and the machines IP number (or
--address) <tt/199.249.150.4/.
-+machine name, like <tt/ftp.freebsd.org/, and the machines IP number (or
-+address) <tt/209.155.82.18/.
-
- <p>DNS is, to the uninitiated (you ;-), one of the more opaque areas
- of network administration. This HOWTO will try to make a few things
-@@ -94,11 +94,14 @@
+ <title>DNS HOWTO <author>Nicolai Langfeldt (<tt/janl@linpro.no/),
+@@ -77,11 +77,11 @@
+ "maps" as the jargon would have it) from name to address and from
+ address to name, and some other things. This HOWTO documents how to
+ define such mappings using Unix system, with a few things specific to
+-Linux.
++FreeBSD.
+
+ <p>A mapping is simply an association between two things, in this case
+-a machine name, like <tt>ftp.linux.org</tt>, and the machine's IP
+-number (or address) <tt/199.249.150.4/. DNS also contains mappings
++a machine name, like <tt>ftp.freebsd.org</tt>, and the machine's IP
++number (or address) <tt/209.155.82.18/. DNS also contains mappings
+ the other way, from the IP number to the machine name; this is called
+ a "reverse mapping".
+
+@@ -116,9 +116,11 @@
<p>Name serving on Unix is done by a program called <tt/named/. This
- is a part of the ``bind'' package which is coordinated by Paul Vixie
--for The Internet Software Consortium. <tt/Named/ is included in most
--Linux distributions and is usually installed as
--<tt>/usr/sbin/named</tt>. If you have a named you can probably use
--it; if you don't have one you can get a binary off a Linux ftp site,
--or get the latest and greatest source from <htmlurl
-+for The Internet Software Consortium. <tt/Named/ is included in all
-+FreeBSD distributions and is installed as
-+<tt>/usr/sbin/named</tt>.
-+You can get the latest and greatest source from <htmlurl
-+url="ftp://ftp.freebsd.org/pub/FreeBSD/FreeBSD-stable/src/contrib/bind/"
-+name="ftp.freebsd.org:/pub/FreeBSD/FreeBSD-stable/src/contrib/bind/">
-+or the offical distribution source which the FreeBSD version is based on
-+from <htmlurl
- url="ftp://ftp.isc.org/isc/bind/src/cur/bind-8/"
- name="ftp.isc.org:/isc/bind/src/cur/bind-8/">. This HOWTO is about
- bind version 8. The old version of the HOWTO, about bind 4 is still
-@@ -133,14 +136,14 @@
+ is a part of the ``BIND'' package which is coordinated by The Internet
+-Software Consortium. <tt/Named/ is included in most Linux
+-distributions and is usually installed as <tt>/usr/sbin/named</tt>,
+-usually from a package called <tt/BIND/.
++Software Consortium. <tt/Named/ is included in all FreeBSD
++distributions and is installed as <tt>/usr/sbin/named</tt>,
++u can get the latest and greatest source from <htmlurl
++url="ftp://ftp.freebsd.org/pub/FreeBSD/FreeBSD-stable/src/contrib/bind/"
++name="ftp.freebsd.org:/pub/FreeBSD/FreeBSD-stable/src/contrib/bind/">.
+
+ <p>If you have a named you can probably use it; if you don't have one
+ you can get a binary off a Linux ftp site, or get the latest and
+@@ -159,15 +161,14 @@
waiting time the next time significantly, especially if you're on a
slow connection.
--<p>First you need a file called <tt>/etc/named.conf</tt>. This is
-+<p>First you need a file called <tt>/etc/namedb/named.conf</tt>. This is
- read when named starts. For now it should simply contain:
+-<p>First you need a file called <tt>/etc/named.conf</tt> (Debian:
+-<tt>/etc/bind/named.conf</tt>). This is read when named starts. For
+-now it should simply contain:
++<p>First you need a file called <tt>/etc/namedb/named.conf</tt>.
++This is read when named starts. For now it should simply contain:
<code>
// Config file for caching only name server
@@ -56,8 +54,14 @@
+ directory "/etc/namedb";
// Uncommenting this might help if you have to go through a
- // firewall and things are not working out:
-@@ -155,18 +158,17 @@
+ // firewall and things are not working out. But you probably
+@@ -178,27 +179,26 @@
+
+ zone "." {
+ type hint;
+- file "root.hints";
++ file "named.root";
+ };
zone "0.0.127.in-addr.arpa" {
type master;
@@ -66,6 +70,11 @@
};
</code>
+-<p>The Linux distribution packages may use different file names for
++<p>The FreeBSD distribution packages may use different file names for
+ each kind of file mentioned here; they will still contain about the
+ same things.
+
<p>The `<tt/directory/' line tells named where to look for files. All
-files named subsequently will be relative to this. Thus <tt>pz</tt>
-is a directory under <tt>/var/named</tt>, i.e.,
@@ -76,51 +85,72 @@
+according to the <em>hier(7)</em> manpage.
-<p>The file named <tt>/var/named/root.hints</tt> is named in this.
--<tt>/var/named/root.hints</tt> should contain this:
+-<tt>/var/named/root.hints</tt> should contain this: (<em/If you cut
+<p>The file named <tt>/etc/namedb/named.root</tt> is named in this.
-+<tt>/etc/namedb/named.root</tt> should contain something simular to this:
-
- <code>
- ;
-@@ -208,16 +210,16 @@
++<tt>/etc/namedb/named.root</tt> should contain this: (<em/If you cut
+ and paste this file from an electronic version of this document,
+ please note that there should be <bf/no/ leading spaces in the file,
+ i.e. all the lines should start with a non-blank character. Some
+@@ -246,18 +246,18 @@
<p>The next section in <tt/named.conf/ is the last <tt/zone/. I will
- explain its use in a later chapter, for now just make this a file
--named <tt/127.0.0/ in the subdirectory <tt/pz/:
+ explain its use in a later chapter; for now just make this a file
+-named <tt/127.0.0/ in the subdirectory <tt/pz/: (<em/Again, please
+-remove leading spaces if you cut and paste this/)
+named <tt/localhost.rev/ in the subdirectory <tt//etc/namedb/:
++(<em/Again, please remove leading spaces if you cut and paste this/)
<code>
+ $TTL 3D
-@ IN SOA ns.linux.bogus. hostmaster.linux.bogus. (
+@ IN SOA ns.freebsd.bogus. hostmaster.freebsd.bogus. (
1 ; Serial
8H ; Refresh
2H ; Retry
- 1W ; Expire
+ 4W ; Expire
1D) ; Minimum TTL
- NS ns.linux.bogus.
+ NS ns.freebsd.bogus.
1 PTR localhost.
</code>
-@@ -326,7 +328,7 @@
- </verb></tscreen>
-
- <p>If there are any messages about errors then there is a mistake.
--Named will name the file it is in (one of named.conf and root.hints I
-+Named will name the file it is in (one of named.conf and named.root I
- hope :-) Kill named and go back and check the file.
-
- <p>Now you can test your setup. Start nslookup to examine your work.
-@@ -647,7 +649,7 @@
+@@ -310,7 +310,7 @@
+ options. If that does not work try `<tt>/usr/sbin/ndc start</tt>'
+ instead. If that back-fires see the <ref id="qanda" name="qanda">
+ section. If you view your syslog message file (usually called
+-<tt>/var/adm/messages</tt>, but another directory to look in is
++<tt>/var/log/messages</tt>, but another directory to look in is
+ <tt>/var/log</tt> and another file to look in is <tt/syslog/) while
+ starting named (do <tt>tail -f /var/log/messages</tt>) you should see
+ something like:
+@@ -407,7 +407,7 @@
+
+ <p>This time dig asked your named to look for the machine
+ <tt/pat.uio.no/. It then contacted one of the name server machines
+-named in your <tt>root.hints</tt> file, and asked its way from there.
++named in your <tt>named.root</tt> file, and asked its way from there.
+ It might take tiny while before you get the result as it may need to
+ search all the domains you named in <tt>/etc/resolv.conf</tt>. Please
+ note the "aa" on the "flags:" line. It means that the answer is
+@@ -458,7 +458,7 @@
+ <p>All OSes implementing the standard C API has the calls
+ gethostbyname and gethostbyaddr. These can get information from
+ several different sources. Which sources it gets it from is
+-configured in <tt>/etc/nsswitch.conf</tt> on Linux (and some other
++configured in <tt>/etc/nsswitch.conf</tt> on FreeBD (and some other
+ Unixes). This is a long file specifying from which file or database
+ to get different kinds of data types. It usually contains helpful
+ comments at the top, which you should consider reading. After that
+@@ -671,7 +671,7 @@
<sect1>Our own domain
<p>Now to define our own domain. We're going to make the domain
-<tt/linux.bogus/ and define machines in it. I use a totally bogus
-+<tt/freebsd.bogus/ and define machines in it. I use a totally bogus
++<tt/freensd.bogus/ and define machines in it. I use a totally bogus
domain name to make sure we disturb no-one Out There.
<p>One more thing before we start: Not all characters are allowed in
-@@ -661,24 +663,24 @@
+@@ -685,25 +685,25 @@
<code>
zone "0.0.127.in-addr.arpa" {
type master;
@@ -137,20 +167,21 @@
set up this file, it reads:
<code>
+ $TTL 3D
-@ IN SOA ns.linux.bogus. hostmaster.linux.bogus. (
+@ IN SOA ns.freebsd.bogus. hostmaster.freebsd.bogus. (
1 ; Serial
8H ; Refresh
2H ; Retry
- 1W ; Expire
+ 4W ; Expire
1D) ; Minimum TTL
- NS ns.linux.bogus.
+ NS ns.freebsd.bogus.
1 PTR localhost.
</code>
-@@ -703,11 +705,11 @@
- some typing that. So the NS line could also be written
+@@ -728,11 +728,11 @@
+ Saves some typing that. So the NS line could also be written
<tscreen><verb>
-0.0.127.in-addr.arpa. IN NS ns.linux.bogus
@@ -163,24 +194,24 @@
customary name for name-servers, but as with web servers who are
customarily named <tt/www./<em/something/ the name may be anything.
-@@ -717,8 +719,8 @@
+@@ -742,8 +742,8 @@
<p>The SOA record is the preamble to <em/all/ zone files, and there
should be exactly one in each zone file. It describes the zone, where
-it comes from (a machine called <tt/ns.linux.bogus/), who is
--responsible for its contents (<tt/hostmaster@linux.bogus/, you should
+-responsible for its contents (<tt/hostmaster@linux.bogus/; you should
+it comes from (a machine called <tt/ns.freebsd.bogus/), who is
-+responsible for its contents (<tt/hostmaster@freebsd.bogus/, you should
++responsible for its contents (<tt/hostmaster@freebsd.bogus/; you should
insert your e-mail address here), what version of the zone file this
is (serial: 1), and other things having to do with caching and
secondary DNS servers. For the rest of the fields (refresh, retry,
-@@ -743,30 +745,30 @@
+@@ -778,31 +778,31 @@
</verb></tscreen>
- so it manages to get <tt/localhost/ from 127.0.0.1, good. Now for our
--main task, the <tt/linux.bogus/ domain, insert a new 'zone' section in
-+main task, the <tt/freebsd.bogus/ domain, insert a new 'zone' section in
- <tt/named.conf/:
+ <p>So it manages to get <tt/localhost/ from 127.0.0.1, good. Now for
+-our main task, the <tt/linux.bogus/ domain, insert a new 'zone'
++our main task, the <tt/freebsd.bogus/ domain, insert a new 'zone'
+ section in <tt/named.conf/:
<code>
-zone "linux.bogus" {
@@ -206,12 +237,13 @@
;
; The full zone file
;
+ $TTL 3D
-@ IN SOA ns.linux.bogus. hostmaster.linux.bogus. (
+@ IN SOA ns.freebsd.bogus. hostmaster.freebsd.bogus. (
199802151 ; serial, todays date + todays serial #
8H ; refresh, seconds
2H ; retry, seconds
-@@ -774,7 +776,7 @@
+@@ -810,7 +810,7 @@
1D ) ; minimum, seconds
;
NS ns ; Inet Address of name server
@@ -220,90 +252,84 @@
MX 20 mail.friend.bogus. ; Secondary Mail Exchanger
;
localhost A 127.0.0.1
-@@ -782,11 +784,11 @@
+@@ -818,11 +818,11 @@
mail A 192.168.196.4
</code>
-<p>Two things must be noted about the SOA record. <tt/ns.linux.bogus/
+<p>Two things must be noted about the SOA record. <tt/ns.freebsd.bogus/
<em/must/ be a actual machine with a A record. It is not legal to
- have a CNAME record for he machine mentioned in the SOA record. It's
+ have a CNAME record for the machine mentioned in the SOA record. Its
name need not be `ns', it could be any legal host name. Next,
--hostmaster.linux.bogus should be read as hostmaster@linux.bogus, this
-+hostmaster.freebsd.bogus should be read as hostmaster@freebsd.bogus, this
+-hostmaster.linux.bogus should be read as hostmaster@linux.bogus. This
++hostmaster.freebsd.bogus should be read as hostmaster@freebsd.bogus. This
should be a mail alias, or a mailbox, where the person(s) maintaining
DNS should read mail frequently. Any mail regarding the domain will
be sent to the address listed here. The name need not be
-@@ -795,7 +797,7 @@
+@@ -831,7 +831,7 @@
<p>There is one new RR type in this file, the MX, or Mail eXchanger
RR. It tells mail systems where to send mail that is addressed to
--<tt/someone@linux.bogus/, namely too <tt/mail.linux.bogus/ or
-+<tt/someone@freebsd.bogus/, namely too <tt/mail.freebsd.bogus/ or
+-<tt/someone@linux.bogus/, namely to <tt/mail.linux.bogus/ or
++<tt/someone@freebsd.bogus/, namely to <tt/mail.freebsd.bogus/ or
<tt/mail.friend.bogus/. The number before each machine name is that
- MX RRs priority. The RR with the lowest number (10) is the one mail
+ MX RR's priority. The RR with the lowest number (10) is the one mail
should be sent to if possible. If that fails the mail can be sent to
-@@ -808,51 +810,51 @@
- <tscreen><verb>
- $ nslookup
- > set q=any
--> linux.bogus
-+> freebsd.bogus
- Server: localhost
- Address: 127.0.0.1
-
--linux.bogus
-- origin = ns.linux.bogus
-- mail addr = hostmaster.linux.bogus
-+freebsd.bogus
-+ origin = ns.freebsd.bogus
-+ mail addr = hostmaster.freebsd.bogus
- serial = 199802151
- refresh = 28800 (8 hours)
- retry = 7200 (2 hours)
- expire = 604800 (7 days)
- minimum ttl = 86400 (1 day)
--linux.bogus nameserver = ns.linux.bogus
--linux.bogus preference = 10, mail exchanger = mail.linux.bogus.linux.bogus
--linux.bogus preference = 20, mail exchanger = mail.friend.bogus
--linux.bogus nameserver = ns.linux.bogus
--ns.linux.bogus internet address = 192.168.196.2
--mail.linux.bogus internet address = 192.168.196.4
-+freebsd.bogus nameserver = ns.freebsd.bogus
-+freebsd.bogus preference = 10, mail exchanger = mail.freebsd.bogus.freebsd.bogus
-+freebsd.bogus preference = 20, mail exchanger = mail.friend.bogus
-+freebsd.bogus nameserver = ns.freebsd.bogus
-+ns.freebsd.bogus internet address = 192.168.196.2
-+mail.freebsd.bogus internet address = 192.168.196.4
- </verb></tscreen>
+@@ -842,19 +842,19 @@
+ with dig:
+ <tscreen><verb>
+-$ dig any linux.bogus +pfmin
++$ dig any freebsd.bogus +pfmin
+ ;; res options: init recurs defnam dnsrch
+ ;; got answer:
+ ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 23499
+ ;; QUERY: 1, ANSWER: 4, AUTHORITY: 1, ADDITIONAL: 1
+ ;; QUERY SECTION:
+-;; linux.bogus, type = ANY, class = IN
++;; freebsd.bogus, type = ANY, class = IN
+
+ ;; ANSWER SECTION:
+-linux.bogus. 3D IN MX 10 mail.linux.bogus.linux.bogus.
+-linux.bogus. 3D IN MX 20 mail.friend.bogus.
+-linux.bogus. 3D IN NS ns.linux.bogus.
+-linux.bogus. 3D IN SOA ns.linux.bogus. hostmaster.linux.bogus. (
++freebsd.bogus. 3D IN MX 10 mail.freebsd.bogus.freebsd.bogus.
++freebsd.bogus. 3D IN MX 20 mail.friend.bogus.
++freebsd.bogus. 3D IN NS ns.freebsd.bogus.
++freebsd.bogus. 3D IN SOA ns.freebsd.bogus. hostmaster.freebsd.bogus. (
+ 199802151 ; serial
+ 8H ; refresh
+ 2H ; retry
+@@ -865,29 +865,29 @@
<p>Upon careful examination you will discover a bug. The line
<tscreen><verb>
--linux.bogus preference = 10, mail exchanger = mail.linux.bogus.linux.bogus
-+freebsd.bogus preference = 10, mail exchanger = mail.freebsd.bogus.freebsd.bogus
+-linux.bogus. 3D IN MX 10 mail.linux.bogus.linux.bogus.
++freebsd.bogus. 3D IN MX 10 mail.freebsd.bogus.freebsd.bogus.
</verb></tscreen>
- is all wrong. It should be
+ <p>is all wrong. It should be
<tscreen><verb>
--linux.bogus preference = 10, mail exchanger = mail.linux.bogus
-+freebsd.bogus preference = 10, mail exchanger = mail.freebsd.bogus
+-linux.bogus. 3D IN MX 10 mail.linux.bogus.
++freebsd.bogus. 3D IN MX 10 mail.freebsd.bogus.
</verb></tscreen>
- <p>I deliberately made a mistake so you could learn from it :-) Looking
- in the zone file we find that the line
+ <p>I deliberately made a mistake so you could learn from it :-)
+ Looking in the zone file we find this line:
<tscreen><verb>
- MX 10 mail.linux.bogus ; Primary Mail Exchanger
+ MX 10 mail.freebsd.bogus ; Primary Mail Exchanger
</verb></tscreen>
--is missing a period. Or has a 'linux.bogus' too many. If a machine
-+is missing a period. Or has a 'freebsd.bogus' too many. If a machine
- name does not end in a period in a zone file the origin is added to
--its end causing the double <tt/linux.bogus.linux.bogus/. So either
-+its end causing the double <tt/freebsd.bogus.freebsd.bogus/. So either
+-<p>It is missing a period. Or has a 'linux.bogus' too many. If a
++<p>It is missing a period. Or has a 'freebsd.bogus' too many. If a
+ machine name does not end in a period in a zone file the origin is
+-added to its end causing the double <tt/linux.bogus.linux.bogus/. So
++added to its end causing the double <tt/freebsd.bogus.freebsd.bogus/. So
+ either
<code>
- MX 10 mail.linux.bogus. ; Primary Mail Exchanger
@@ -311,7 +337,7 @@
</code>
or
-@@ -877,18 +879,18 @@
+@@ -912,19 +912,19 @@
<code>
;
@@ -320,12 +346,13 @@
;
; The full zone file
;
+ $TTL 3D
-@ IN SOA ns.linux.bogus. hostmaster.linux.bogus. (
+@ IN SOA ns.freebsd.bogus. hostmaster.freebsd.bogus. (
199802151 ; serial, todays date + todays serial #
8H ; refresh, seconds
2H ; retry, seconds
- 1W ; expire, seconds
+ 4W ; expire, seconds
1D ) ; minimum, seconds
;
- TXT "Linux.Bogus, your DNS consultants"
@@ -333,7 +360,7 @@
NS ns ; Inet Address of name server
NS ns.friend.bogus.
MX 10 mail ; Primary Mail Exchanger
-@@ -903,31 +905,31 @@
+@@ -939,31 +939,31 @@
ns A 192.168.196.2
MX 10 mail
MX 20 mail.friend.bogus.
@@ -358,97 +385,92 @@
MX 10 mail
MX 20 mail.friend.bogus.
- HINFO "P6" "Linux 2.1.86"
-+ HINFO "P6" "FreeBSD 2.1.86"
++ HINFO "P6" "FreeBSD 3.0"
</code>
<p>There are a number of new RRs here: HINFO (Host INFOrmation) has
- two parts, it's a good habit to quote each. The first part is the
+ two parts; it's a good habit to quote each. The first part is the
hardware or CPU on the machine, and the second part the software or OS
on the machine. The machine called 'ns' has a Pentium CPU and runs
-Linux 2.0. CNAME (Canonical NAME) is a way to give each machine
+FreeBSD 3.0. CNAME (Canonical NAME) is a way to give each machine
- several names. So www is an alias for ns.
+ several names. So www is an alias for ns.
- <p>CNAME record usage is a bit controversial. But it's safe to follow
-@@ -946,7 +948,7 @@
+ <p>CNAME record usage is a bit controversial. But it's safe to follow
+@@ -982,7 +982,7 @@
</code>
<p>It's also safe to assume that a CNAME is not a legal host name for
--a e-mail address: <tt/webmaster@www.linux.bogus/ is an illegal e-mail
-+a e-mail address: <tt/webmaster@www.freebsd.bogus/ is an illegal e-mail
+-an e-mail address: <tt/webmaster@www.linux.bogus/ is an illegal e-mail
++an e-mail address: <tt/webmaster@www.freebsd.bogus/ is an illegal e-mail
address given the setup above. You can expect quite a few mail admins
Out There to enforce this rule even if it works for you. The way to
avoid this is to use A records (and perhaps some others too, like a MX
-@@ -970,14 +972,14 @@
- Default Server: localhost
- Address: 127.0.0.1
-
--> ls -d linux.bogus
-+> ls -d freebsd.bogus
- </verb></tscreen>
-
- <p>This means that all records should be listed. It results in this:
+@@ -1002,10 +1002,10 @@
+ named to read its files again.
<tscreen><verb>
- [localhost]
+-$ dig linux.bogus axfr
++$ dig freebsd.bogus axfr
+
+-; <<>> DiG 8.2 <<>> linux.bogus axfr
-$ORIGIN linux.bogus.
++; <<>> DiG 8.2 <<>> freebsd.bogus axfr
+$ORIGIN freebsd.bogus.
- @ 1D IN SOA ns hostmaster (
+ @ 3D IN SOA ns hostmaster (
199802151 ; serial
8H ; refresh
-@@ -987,7 +989,7 @@
-
- 1D IN NS ns
- 1D IN NS ns.friend.bogus.
-- 1D IN TXT "Linux.Bogus, your DNS consultants"
-+ 1D IN TXT "FreeBSD.Bogus, your DNS consultants"
- 1D IN MX 10 mail
- 1D IN MX 20 mail.friend.bogus.
- gw 1D IN A 192.168.196.1
-@@ -996,22 +998,22 @@
- mail 1D IN A 192.168.196.4
- 1D IN MX 10 mail
- 1D IN MX 20 mail.friend.bogus.
-- 1D IN HINFO "386sx" "Linux 1.0.9"
-+ 1D IN HINFO "386sx" "FreeBSD 2.1.5"
- localhost 1D IN A 127.0.0.1
- www 1D IN CNAME ns
- donald 1D IN A 192.168.196.3
- 1D IN MX 10 mail
- 1D IN MX 20 mail.friend.bogus.
-- 1D IN HINFO "i486" "Linux 1.2"
-+ 1D IN HINFO "i486" "FreeBSD 2.2"
- 1D IN TXT "DEK"
- ftp 1D IN A 192.168.196.5
- 1D IN MX 10 mail
- 1D IN MX 20 mail.friend.bogus.
-- 1D IN HINFO "P6" "Linux 1.3.59"
-+ 1D IN HINFO "P6" "FreeBSD 2.2.7"
- ns 1D IN A 192.168.196.2
- 1D IN MX 10 mail
- 1D IN MX 20 mail.friend.bogus.
-- 1D IN HINFO "Pentium" "Linux 1.2"
-+ 1D IN HINFO "Pentium" "FreeBSD 2.2"
- </verb></tscreen>
-
- <p>That's good. As you see it looks a lot like the zone file itself.
-@@ -1019,25 +1021,25 @@
+@@ -1017,26 +1017,26 @@
+ 3D IN NS ns.friend.bogus.
+ 3D IN MX 10 mail
+ 3D IN MX 20 mail.friend.bogus.
+- 3D IN TXT "Linux.Bogus, your DNS consultants"
++ 3D IN TXT "FreeBSD.Bogus, your DNS consultants"
+ gw 3D IN TXT "The router"
+ 3D IN HINFO "Cisco" "IOS"
+ 3D IN A 192.168.196.1
+ localhost 3D IN A 127.0.0.1
+-mail 3D IN HINFO "386sx" "Linux 1.2"
++mail 3D IN HINFO "386sx" "FreeBSD 2.1.5"
+ 3D IN MX 10 mail
+ 3D IN MX 20 mail.friend.bogus.
+ 3D IN A 192.168.196.4
+ www 3D IN CNAME ns
+ donald 3D IN TXT "DEK"
+- 3D IN HINFO "i486" "Linux 2.0"
++ 3D IN HINFO "i486" "FreeBSD 2.2"
+ 3D IN MX 10 mail
+ 3D IN MX 20 mail.friend.bogus.
+ 3D IN A 192.168.196.3
+-ns 3D IN HINFO "Pentium" "Linux 2.0"
++ns 3D IN HINFO "Pentium" "FreeBSD 2.2"
+ 3D IN MX 10 mail
+ 3D IN MX 20 mail.friend.bogus.
+ 3D IN A 192.168.196.2
+-ftp 3D IN HINFO "P6" "Linux 2.1.86"
++ftp 3D IN HINFO "P6" "FreeBSD 2.1.7"
+ 3D IN MX 10 mail
+ 3D IN MX 20 mail.friend.bogus.
+ 3D IN A 192.168.196.5
+@@ -1056,28 +1056,28 @@
+ Let's check what it says for <tt/www/ alone:
<tscreen><verb>
- > set q=any
--> www.linux.bogus.
-+> www.freebsd.bogus.
- Server: localhost
- Address: 127.0.0.1
-
--www.linux.bogus canonical name = ns.linux.bogus
--linux.bogus nameserver = ns.linux.bogus
--linux.bogus nameserver = ns.friend.bogus
--ns.linux.bogus internet address = 192.168.196.2
-+www.freebsd.bogus canonical name = ns.freebsd.bogus
-+freebsd.bogus nameserver = ns.freebsd.bogus
-+freebsd.bogus nameserver = ns.friend.bogus
-+ns.freebsd.bogus internet address = 192.168.196.2
+-$ dig www.linux.bogus +pfmin
++$ dig www.freebsd.bogus +pfmin
+ ;; res options: init recurs defnam dnsrch
+ ;; got answer:
+ ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 27345
+ ;; QUERY: 1, ANSWER: 2, AUTHORITY: 2, ADDITIONAL: 1
+ ;; QUERY SECTION:
+-;; www.linux.bogus, type = A, class = IN
++;; www.freebsd.bogus, type = A, class = IN
+
+ ;; ANSWER SECTION:
+-www.linux.bogus. 3D IN CNAME ns.linux.bogus.
+-ns.linux.bogus. 3D IN A 192.168.196.2
++www.freebsd.bogus. 3D IN CNAME ns.freebsd.bogus.
++ns.freebsd.bogus. 3D IN A 192.168.196.2
</verb></tscreen>
-<p>In other words, the real name of <tt/www.linux.bogus/ is
@@ -463,10 +485,10 @@
-<p>Now programs can convert the names in linux.bogus to addresses
+<p>Now programs can convert the names in freebsd.bogus to addresses
- which they can connect to. But also required is a reverse zone, one
- making DNS able to convert from an address to a name. This name is
- used buy a lot of servers of different kinds (FTP, IRC, WWW and
-@@ -1051,7 +1053,7 @@
+ which they can connect to. But also required is a reverse zone, one
+ making DNS able to convert from an address to a name. This name is
+ used by a lot of servers of different kinds (FTP, IRC, WWW and others)
+@@ -1091,7 +1091,7 @@
zone "196.168.192.in-addr.arpa" {
notify no;
type master;
@@ -475,16 +497,16 @@
};
</code>
-@@ -1059,19 +1061,19 @@
- contents are similar:
+@@ -1100,19 +1100,19 @@
<code>
+ $TTL 3D
-@ IN SOA ns.linux.bogus. hostmaster.linux.bogus. (
+@ IN SOA ns.freebsd.bogus. hostmaster.freebsd.bogus. (
199802151 ; Serial, todays date + todays serial
8H ; Refresh
2H ; Retry
- 1W ; Expire
+ 4W ; Expire
1D) ; Minimum TTL
- NS ns.linux.bogus.
+ NS ns.freebsd.bogus.
@@ -502,45 +524,93 @@
</code>
<p>Now you restart your named (<tt/ndc restart/) and examine your
-@@ -1082,7 +1084,7 @@
- Server: localhost
- Address: 127.0.0.1
+@@ -1128,7 +1128,7 @@
+ ;; 4.196.168.192.in-addr.arpa, type = ANY, class = IN
--Name: mail.linux.bogus
-+Name: mail.freebsd.bogus
- Address: 192.168.196.4
+ ;; ANSWER SECTION:
+-4.196.168.192.in-addr.arpa. 3D IN PTR mail.linux.bogus.
++4.196.168.192.in-addr.arpa. 3D IN PTR mail.freebsd.bogus.
</code>
-@@ -1092,20 +1094,20 @@
- > ls -d 196.168.192.in-addr.arpa
- [localhost]
+ <p>so, it looks OK, dump the whole thing to examine that too:
+@@ -1138,20 +1138,20 @@
+
+ ; <<>> DiG 8.2 <<>> -x AXFR
$ORIGIN 196.168.192.in-addr.arpa.
--@ 1D IN SOA ns.linux.bogus. hostmaster.linux.bogus. (
-+@ 1D IN SOA ns.freebsd.bogus. hostmaster.freebsd.bogus. (
+-@ 3D IN SOA ns.linux.bogus. hostmaster.linux.bogus. (
++@ 3D IN SOA ns.freebsd.bogus. hostmaster.freebsd.bogus. (
199802151 ; serial
8H ; refresh
2H ; retry
- 1W ; expiry
+ 4W ; expiry
1D ) ; minimum
-- 1D IN NS ns.linux.bogus.
--1 1D IN PTR gw.linux.bogus.
--2 1D IN PTR ns.linux.bogus.
--3 1D IN PTR donald.linux.bogus.
--4 1D IN PTR mail.linux.bogus.
--5 1D IN PTR ftp.linux.bogus.
--@ 1D IN SOA ns.linux.bogus. hostmaster.linux.bogus. (
-+ 1D IN NS ns.freebsd.bogus.
-+1 1D IN PTR gw.freebsd.bogus.
-+2 1D IN PTR ns.freebsd.bogus.
-+3 1D IN PTR donald.freebsd.bogus.
-+4 1D IN PTR mail.freebsd.bogus.
-+5 1D IN PTR ftp.freebsd.bogus.
-+@ 1D IN SOA ns.freebsd.bogus. hostmaster.freebsd.bogus. (
+- 3D IN NS ns.linux.bogus.
+-4 3D IN PTR mail.linux.bogus.
+-2 3D IN PTR ns.linux.bogus.
+-5 3D IN PTR ftp.linux.bogus.
+-3 3D IN PTR donald.linux.bogus.
+-1 3D IN PTR gw.linux.bogus.
+-@ 3D IN SOA ns.linux.bogus. hostmaster.linux.bogus. (
++ 3D IN NS ns.freebsd.bogus.
++4 3D IN PTR mail.freebsd.bogus.
++2 3D IN PTR ns.freebsd.bogus.
++5 3D IN PTR ftp.freebsd.bogus.
++3 3D IN PTR donald.freebsd.bogus.
++1 3D IN PTR gw.freebsd.bogus.
++@ 3D IN SOA ns.freebsd.bogus. hostmaster.freebsd.bogus. (
199802151 ; serial
8H ; refresh
2H ; retry
-@@ -1219,19 +1221,19 @@
+@@ -1205,7 +1205,7 @@
+ read it. Now.
+
+ <p>The reverse zone also needs to be delegated. If you got the
+-<tt/192.168.196/ net with the <tt/linux.bogus/ domain from your
++<tt/192.168.196/ net with the <tt/freebsd.bogus/ domain from your
+ provider they need to put <tt/NS/ records in for your reverse zone as
+ well as for your forward zone. If you follow the chain from
+ <tt/in-addr.arpa/ and up to your net you will probably find a break in
+@@ -1269,9 +1269,9 @@
+ master. You set it up like this:
+
+ <code>
+-zone "linux.bogus" {
++zone "freebsd.bogus" {
+ type slave;
+- file "sz/linux.bogus";
++ file "sz/freebsd.bogus";
+ masters { 192.168.196.2; };
+ };
+ </code>
+@@ -1280,7 +1280,7 @@
+ zone transfer is controlled by your SOA record:
+
+ <code>
+-@ IN SOA ns.linux.bogus. hostmaster.linux.bogus. (
++@ IN SOA ns.freebsd.bogus. hostmaster.freebsd.bogus. (
+ 199802151 ; serial, todays date + todays serial #
+ 8H ; refresh, seconds
+ 2H ; retry, seconds
+@@ -1326,7 +1326,7 @@
+ adding yourself for debugging purposes:
+
+ <code>
+-zone "linux.bogus" {
++zone "freebsd.bogus" {
+ allow-transfer { 192.168.1.4; localhost; };
+ };
+ </code>
+@@ -1347,7 +1347,7 @@
+ allow-query { 192.168.196.0/24; localhost; };
+ };
+
+-zone "linux.bogus" {
++zone "freebsd.bogus" {
+ allow-query { any; };
+ };
+
+@@ -1401,7 +1401,7 @@
here differs a bit from what you find if you query LAND-5's name
servers now.
@@ -548,13 +618,8 @@
+<sect1>/etc/namedb/named.conf
<p>Here we find master zone sections for the two reverse zones needed:
- the 127.0.0 net, as well as LAND-5's <tt/206.6.177/ subnet. And a
- primary line for land-5's forward zone <tt/land-5.com/. Also note that
--instead of stuffing the files in a directory called <tt/pz/, as I do
-+instead of stuffing the files in a directory called <tt/namedb/, as I do
- in this HOWTO, he puts them in a directory called <tt/zone/.
-
- <code>
+ the 127.0.0 net, as well as LAND-5's <tt/206.6.177/ subnet, and a
+@@ -1413,7 +1413,7 @@
// Boot file for LAND-5 name server
options {
@@ -563,112 +628,66 @@
};
zone "." {
-@@ -1259,7 +1261,7 @@
+@@ -1441,7 +1441,7 @@
put ``<tt/notify no;/'' in the zone sections for the two <tt/land-5/
zones so as to avoid accidents.
-<sect1>/var/named/root.hints
-+<sect1>/etc/namedb/named.root
++<sect1>/var/namedb/named.root
<p>Keep in mind that this file is dynamic, and the one listed here is
old. You're better off using one produced now, with dig, as explained
-@@ -1311,7 +1313,7 @@
+@@ -1493,7 +1493,7 @@
;; MSG SIZE sent: 17 rcvd: 436
</code>
-<sect1>/var/named/zone/127.0.0
-+<sect1>/etc/namedb/localhost.rev
++<sect1>/etc/namedb/zone/127.0.0
<p>Just the basics, the obligatory SOA record, and a record that maps
127.0.0.1 to <tt/localhost/. Both are required. No more should be in
-@@ -1330,7 +1332,7 @@
- 1 PTR localhost.
- </code>
+@@ -1518,7 +1518,7 @@
+ absence. I would recommend that you put the <tt/$TTL/ in line in zone
+ files as you discover that they are missing.
-<sect1>/var/named/zone/land-5.com
-+<sect1>/etc/namedb/land-5.com
++<sect1>/etc/namedb/zone/land-5.com
<p>Here we see the mandatory SOA record, the needed NS records. We
can see that he has a secondary name server at <tt/ns2.psi.net/. This
-@@ -1420,7 +1422,7 @@
+@@ -1608,7 +1608,7 @@
<tt/land-5.com/, but using an A record, not a CNAME record. This is a
good policy as noted earlier.
-<sect1>/var/named/zone/206.6.177
-+<sect1>/etc/namedb/206.6.177
++<sect1>/etc/namedb/zone/206.6.177
<p>I'll comment on this file below
-@@ -1531,52 +1533,52 @@
- (
- echo "To: hostmaster <hostmaster>"
- echo "From: system <root>"
-- echo "Subject: Automatic update of the root.hints file"
-+ echo "Subject: Automatic update of the named.root file"
- echo
+@@ -1732,10 +1732,10 @@
PATH=/sbin:/usr/sbin:/bin:/usr/bin:
export PATH
-- cd /var/named
-+ cd /etc/namedb
-
- # Are we online? Ping a server at your ISP
- case `ping -qnc some.machine.net` in
- *'100% packet loss'*)
-- echo "The network is DOWN. root.hints NOT updated"
-+ echo "The network is DOWN. named.root NOT updated"
- echo
- exit 0
- ;;
- esac
-
-- dig @rs.internic.net . ns >root.hints.new 2>&1
-+ dig @rs.internic.net . ns >named.hints.new 2>&1
-
-- case `cat root.hints.new` in
-+ case `cat named.root.new` in
- *NOERROR*)
- # It worked
- :;;
- *)
-- echo "The root.hints file update has FAILED."
-+ echo "The named.root file update has FAILED."
- echo "This is the dig output reported:"
- echo
-- cat root.hints.new
-+ cat named.root.new
- exit 0
- ;;
- esac
-
-- echo "The root.hints file has been updated to contain the following
-+ echo "The named.root file has been updated to contain the following
- information:"
- echo
-- cat root.hints.new
-+ cat named.root.new
-
-- chown root.root root.hints.new
-- chmod 444 root.hints.new
-- rm -f root.hints.old
-- mv root.hints root.hints.old
-- mv root.hints.new root.hints
-+ chown named.root named.root.new
-+ chmod 444 named.root.new
-+ rm -f named.root.old
-+ mv named.root named.root.old
-+ mv named.root.new named.root
- ndc restart
+- # NOTE: /var/named must be writable only by trusted users or this script
++ # NOTE: /etc/namedb must be writable only by trusted users or this script
+ # will cause root compromise/denial of service opportunities.
+- cd /var/named 2>/dev/null || {
+- echo "Subject: Cannot cd to /var/named, error $?"
++ cd /etc/namedb 2>/dev/null || {
++ echo "Subject: Cannot cd to /etc/namedb, error $?"
+ echo
+ echo "The subject says it all"
+ exit 1
+@@ -1784,7 +1784,7 @@
echo
echo "The nameserver has been restarted to ensure that the update is complete."
-- echo "The previous root.hints file is now called
+ echo "The previous root.hints file is now called
-/var/named/root.hints.old."
-+ echo "The previous named.root file is now called
-+/etc/namedb/named.root.old."
++/etc/namedb/named.root"
) 2>&1 | /usr/lib/sendmail -t
exit 0
</code>
-@@ -1598,7 +1600,7 @@
+@@ -1806,7 +1806,7 @@
style) for a cache-only name server:
<code>
@@ -677,7 +696,7 @@
cache . root.hints
primary 0.0.127.IN-ADDR.ARPA 127.0.0.zone
primary localhost localhost.zone
-@@ -1619,7 +1621,7 @@
+@@ -1827,7 +1827,7 @@
// generated by named-bootconf.pl
options {
@@ -686,7 +705,7 @@
};
zone "." {
-@@ -1645,13 +1647,13 @@
+@@ -1853,13 +1853,13 @@
<code>
// This is a configuration file for named (from BIND 8.1 or later).
@@ -695,7 +714,7 @@
// The only change made from the `stock' named.conf (aside from this
// comment :) is that the directory line was uncommented, since I
-// already had the zone files in /var/named.
-+// already had the zone files in /etc/namedb.
++// already had the zone files in /etc/namedd.
options {
- directory "/var/named";
@@ -703,7 +722,7 @@
datasize 20M;
};
-@@ -1721,9 +1723,9 @@
+@@ -1928,9 +1928,9 @@
like this in the named.conf file of your secondary:
<code>
@@ -715,3 +734,12 @@
masters { 127.0.0.1; };
};
</code>
+@@ -2101,7 +2101,7 @@
+ not recommended.
+
+ <item>How can I get a domain? I want to set up my own domain called
+- (for example) <tt/linux-rules.net/. How can I get the domain I want
++ (for example) <tt/freebsd-rules.net/. How can I get the domain I want
+ assigned to me?
+
+ <p>Please contact your network service provider. They will be able