bind-9.0.0
BIND9
I installed the bind 9. bind-9.1.0 is also like this.
I don't know what is better than bind 8. haha :)
I may be able to be happy with Multi-processor scalability.
But I think I won't use DNS so much....:D
Uncompress
tar xvzf bind-9.0.0.tar.gz
cd bind-9.0.0
コンパイル
I won't use IPv6, so..
./configure --disable-ipv6
\make #in my situation; \make -j 3 This takes very long time (it was about 7 mins on Celeron433x2)
Install
make install
Configuration
I'll gather all of the files in the /etc/namedb.
I made the domain hirano.cc for my inside DNS server.
named.conf
Bind will see /etc/named.conf for default so make a symblic link.
cd /etc
mkdir namedb
vi namedb/named.conf
//
// Jul. 12, 2000 Y.Hirano (hirano@orcaland.gr.jp)
//
options {
directory "/etc/namedb";
};
zone "localhost" {
type master;
file "localhost.zone";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "localhost.rev";
};
zone "hirano.cc" {
type master;
file "hirano.cc.zone";
};
zone "1.168.192.in-addr.arpa" {
type master;
file "192.168.1.rev";
};
ln -s namedb/named.conf .
localhost.zone
It seems to be error, if the TTL of SOA isn't written on bind9.
I set it one hour.
I dind't consider so much.. so please change as you like...
cd namedb
vi localhost.zone
;
; localhost.zone
;
; Jul.12, 2000 Y.Hirano (hirano@orcaland.gr.jp)
;
$TTL 3600
@ IN 3600 SOA intdns.hirano.cc. postmaster.hirano.cc. (
2000071200 ; serial
3600 ; refresh 1hr
900 ; retry 15min
1209600 ; expire 14day
86400 ) ; min 24hr
IN NS intdns.hirano.cc.
localhost. IN A 127.0.0.1
localhost.rev
vi localhost.rev
;
; localhost.rev
;
; Jul.12, 2000 Y.Hirano (hirano@orcaland.gr.jp)
;
$TTL 86400
@ IN 86400 SOA intdns.hirano.cc. postmaster.hirano.cc. (
2000071200 ; Serial
3600 ; Refresh
900 ; Retry
3600000 ; Expire
3600 ) ; Minimum
IN NS intdns.hirano.cc.
1 IN PTR localhost.hirano.cc.
hirano.cc.zone
make hirano.cc zone.
I made a hosts on the internet; www, mail, i and for internal; intdns, test, itest as IP address of 192.168.1.240.
vi hirano.cc.zone
;
; hirano.cc.zone
;
; Jul.12 2000 Y.Hirano (hirano@orcaland.gr.jp)
;
$TTL 86400
@ IN 86400 SOA intdns.hirano.cc. postmaster.hirano.cc. (
2000071200 ; serial
3600 ; refresh 1hr
900 ; retry 15min
1209600 ; expire 14day
86400 ) ; min 24hr
IN NS intdns.hirano.cc.
IN A 210.167.246.33
www IN A 210.167.246.33
mail IN A 210.167.246.33
i IN A 210.167.246.33
intdns IN A 192.168.1.240
test IN A 192.168.1.240
itest IN A 192.168.1.240
hirano.cc. IN MX 5 ukulele.orcaland.gr.jp.
hirano.cc. IN MX 20 dns1.eparty.ne.jp.
192.168.1.rev
reverse
vi 192.168.1.rev
;
; 192.168.1.rev
;
; Jul. 12, 2000 Y.Hirano (hirano@girigiri.co.jp)
;
$TTL 86400
@ IN 86400 SOA intdns.hirano.cc. postmaster.hirano.cc. (
2000071200 ; Serial
3600 ; Refresh
900 ; Retry
3600000 ; Expire
3600 ) ; Minimum
IN NS intdns.hirano.cc.
240 IN PTR intdns.hirano.cc.
write on rc file
cd /etc/rc.d/init.d
vi named
#!/bin/sh
/usr/local/sbin/named
chmod +x named
cd ../rc3.d
ln -s ../init.d/named S65named
start
named
setting resolver
vi /etc/resolv.conf
nameserver 192.168.1.240
confirm
tail /var/log/messages
Jul 13 03:46:46 gogyo named[5356]: starting BIND 9.0.0b5
Jul 13 03:46:46 gogyo named[5358]: loading configuration from '/etc/named.conf'
Jul 13 03:46:46 gogyo named[5358]: no IPv6 interfaces found
Jul 13 03:46:46 gogyo named[5358]: listening on IPv4 interface lo, 127.0.0.1#53
Jul 13 03:46:46 gogyo named[5358]: listening on IPv4 interface eth0, 192.168.1.240#53
Jul 13 03:46:46 gogyo named[5358]: running
This seems good.
There were a warning "can't locate module net-pf-10" before. This was because of the IPv6. So you can configure with --disable-ipv6 option or write
alias net-pf-10 off
into your /etc/conf.modules to disapper this message.Thanks Sixx Lim @ Singapore.
ps ax | grep name
5356 ? S 0:00 named
5357 ? S 0:00 named
5358 ? S 0:00 named
5359 ? S 0:00 named
5360 ? S 0:00 named
5361 ? S 0:00 named
There're 6 nameds. This is the difference from bind8.
nslookup test.hirano.cc.
Answer crypto-validated by server:
Server: intdns.hirano.cc
Address: 192.168.1.240
Answer crypto-validated by server:
Name: test.hirano.cc
Address: 192.168.1.240
nslookup 192.168.1.240
Answer crypto-validated by server:
Server: intdns.hirano.cc
Address: 192.168.1.240
Answer crypto-validated by server:
Name: intdns.hirano.cc
Address: 192.168.1.240
Outside
nslookup www.yahoo.com.
Answer crypto-validated by server:
Server: intdns.hirano.cc
Address: 192.168.1.240
Answer crypto-validated by server:
Non-authoritative answer:
Name: www.yahoo.akadns.net
Addresses: 204.71.200.75, 204.71.200.67, 204.71.200.68, 204.71.202.160
204.71.200.74
Aliases: www.yahoo.com
That's all..
$Lastupdate: 2001/02/23 (Fri) 00:58:14 $
[home]
[install]