Untuk melakukan memasang dns di Slackware perlu melakukan konfigurasi,dan cara mengkonfigurasinya ikuti langkah tersebut:
• Memasang IP
# Nano eth1 up
# nano /etc/rc.d/rc.inet1.conf
# /etc/rc.d/rc.inet1 restart
# nano /etc/resolv.conf
(isikan nomor IPnya)
• Mengedit konfigurasi /etc/named.conf
# Cd /var/named/
# ls
# nano /etc/named.conf
zone "." IN {
type hint;
file "/var/named/named.root";
};
zone "localhost" IN {
type master;
file "/var/named/localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "/var/named/named.local";
allow-update { none; };
};
• menambahkan kofigurasi di bawah konfigurasi /etc/named.conf
zone "." IN {
type hint;
file "/var/named/named.root";
};
zone "localhost" IN {
type master;
file "/var/named/localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "/var/named/named.local";
allow-update { none; };
};
(dan tambahkan konf dibawah ini)
zone "irwan.net" IN {
type master;
file "/var/named/db.rian";
allow-update { none; };
};
zone "68.45.128.in-addr.arpa" IN {
type master;
file "/var/named/db.128.45.68";
allow-update { none; };
};
• Memindahkan konfigurasi yang ada di dalam rndc-confgen kedalam named.conf, rndc.conf, rndc.key
Didalam named.conf
(letakan konfigurasi dari rndc-confgen ke paling bawah konfigurasi yang ada di named.conf )
key "rndc-key" {
algorithm hmac-md5;
secret "WLZVwym1YmYaj4AoqEIGIQ==";
};
controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { "rndc-key"; };
};
Didalam Rndc.conf
key "rndc-key" {
algorithm hmac-md5;
secret "WLZVwym1YmYaj4AoqEIGIQ==";
};
options {
default-key "rndc-key";
default-server 127.0.0.1;
default-port 953;
};
Didalam rndc.key
key "rndc-key" {
algorithm hmac-md5;
secret "WLZVwym1YmYaj4AoqEIGIQ==";
};
• Mengedit nano db.irwan dan db.128.45.68
#cd /var/named
#cp localhost.zone db.irwan
#cp db.128.45.68
#ls
Didalam db.irwan
$TTL 86400
@ IN SOA ns1.irwan.net root.irwan.net. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS ns1.irwan.net.
irwan.net. IN A 128.45.68.1
www.irwan.net. IN A 128.45.68.1
Didalam db.128.45.68
$TTL 86400
@ IN SOA ns1.irwan.net. root.irwan.net. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS ns1.irwan.net.
1 IN PTR irwan.net.
• Selanjutnya menjalankan test domain
# chmod +x /etc/rc.d/rc.bind
# /etc/rc.d/rc.bind start
# ping irwan.net
#nslookup irwan.net
Tidak ada komentar:
Posting Komentar