Continuing from
CsMandrakeFreq72 to get into some of the detail around the
DNS setup.
See
AboutThesePages.
Contents
Notes
Setup By Dann at 192.168.1.99
Dann setup named and the hosts file as follows. At various times he did things like
kill -xxx hup (IIRC) which I guess stopped and restarted the nameserver. He also issued the command
named -u named -g named one or more times.
Just for the record (well, more than that really), Dann didn't have to set up everything for Bind/DNS -- much of it was preconfigured by the Mandrake setup, AFAIK. I not 100% clear on what Dann did and didn't do. (The point is not to take any credit away from Dann, but just to point out that if your distro sets Bind/DNS up for you, there is a limited amount of things you may have to do to get it set up exactly the way you require. Of course, figuring out what that limited amount of things is and how to set them is the key.
/etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.1.99 church100.home church100
/etc/named.conf
// generated by named-bootconf.pl
options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};
//
// a caching only nameserver config
//
zone "." {
type hint;
file "named.ca";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "named.local";
};
zone ¨1.168.192.in-addr.arpa¨ {
type master;
file ¨named.church¨;
};
/etc/resolv.conf
hostresorder, local bind
# search church
#search church
nameserver 192.168.1.99
#nameserver 206.245.170.12
#nameserver 209.92.1.12
# ppp temp entry
/var/named/named.ca
; This file holds the information on root name servers needed to
; initialize cache of Internet domain name servers
; (e.g. reference this file in the "cache . <file>"
; configuration file of BIND domain name servers).
;
; This file is made available by InterNIC registration services
; under anonymous FTP as
; file /domain/named.root
; on server FTP.RS.INTERNIC.NET
; -OR- under Gopher at RS.INTERNIC.NET
; under menu InterNIC Registration Services (NSI)
; submenu InterNIC Registration Archives
; file named.root
;
; last update: Aug 22, 1997
; related version of root zone: 1997082200
;
;
; formerly NS.INTERNIC.NET
;
. 3600000 IN NS A.ROOT-SERVERS.NET.
A.ROOT-SERVERS.NET. 3600000 A 198.41.0.4
;
; formerly NS1.ISI.EDU
;
. 3600000 NS B.ROOT-SERVERS.NET.
B.ROOT-SERVERS.NET. 3600000 A 128.9.0.107
;
; formerly C.PSI.NET
;
. 3600000 NS C.ROOT-SERVERS.NET.
C.ROOT-SERVERS.NET. 3600000 A 192.33.4.12
;
; formerly TERP.UMD.EDU
;
. 3600000 NS D.ROOT-SERVERS.NET.
D.ROOT-SERVERS.NET. 3600000 A 128.8.10.90
;
; formerly NS.NASA.GOV
;
. 3600000 NS E.ROOT-SERVERS.NET.
E.ROOT-SERVERS.NET. 3600000 A 192.203.230.10
;
; formerly NS.ISC.ORG
;
. 3600000 NS F.ROOT-SERVERS.NET.
F.ROOT-SERVERS.NET. 3600000 A 192.5.5.241
;
; formerly NS.NIC.DDN.MIL
;
. 3600000 NS G.ROOT-SERVERS.NET.
G.ROOT-SERVERS.NET. 3600000 A 192.112.36.4
;
; formerly AOS.ARL.ARMY.MIL
;
. 3600000 NS H.ROOT-SERVERS.NET.
H.ROOT-SERVERS.NET. 3600000 A 128.63.2.53
;
; formerly NIC.NORDU.NET
;
. 3600000 NS I.ROOT-SERVERS.NET.
I.ROOT-SERVERS.NET. 3600000 A 192.36.148.17
;
; temporarily housed at NSI (InterNIC)
;
. 3600000 NS J.ROOT-SERVERS.NET.
J.ROOT-SERVERS.NET. 3600000 A 198.41.0.10
;
; housed in LINX, operated by RIPE NCC
;
. 3600000 NS K.ROOT-SERVERS.NET.
K.ROOT-SERVERS.NET. 3600000 A 193.0.14.129
/var/named/named.church
@ IN SOA church100.home root.church100. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS 192.168.1.
99 IN PTR mail.church100.home
/var/named/named.local
@ IN SOA localhost. root.localhost. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS localhost.
1 IN PTR localhost.
Fat, Dumb, and Happy Strategy
To try to make mail work at 192.168.0.100, I'm simply going to try editing the files above to replace every reference to all (or part) of 192.168.1.99 with the similar reference to 192.168.0.100. I'm then going to try to stop and restart the nameserver, either via the kill hup approach or by the more Mandrake like approach which I can recall right now. (The same way I start and stop, for example, Apache -- something like
service httpd restart.)
<Currently, no significant content below this line.>
Contributors
- () RandyKramer - 28 Jul 2002
- <If you edit this page: add your name here; move this to the next line; and include your comment marker (initials), if you have created one, in parenthesis before your WikiName.>
[[Main.RandyKramer#28 Jul 2002][]]
Page Ratings