Before you set a configuration server, you must install the operational system Linux Debian 4.0 in your computer. If you have finished installing it, so you can set-up configuration server for your computer. Next, you must scan the CD 1 untill CD 8 (last CD) in your computer, to make you easily in your worked or you wouldn’t hardly to find them on the CD, use command
mount /media/cdrom or mount /dev/cdrom
apt-cdrom add –m
eject
until last CD (CD 8). After that, you must install MC (Midnight Commander) which to get at CD 1 and CD 4. Use command :
apt-get install mc
· DNS Server
Now, you will set-up DNS Server in your computer. Before its, you must install bind9 to make DNS Server by using command apt-get install bind9. After wards, add the configuration to the named.conf found on directory /etc/bind/named.conf, add of them in over there.
zone "tkj.com" {
type master;
file "/var/cache/bind/db.tkj";
};
zone "192.in-addr.arpa" {
type master;
file "/var/cache/bind/db.192";
};
If you’ve finished, you have to exit and save this file. And then, copy , move, and rename file db.127 with db.192 and db.local with db.tkj to directory /var/cache/bind/.
use command :
cp db.127 /var/cache/bind/db.192
cp db.local /var/cache/bind/db.tkj
then, you must reconfigure db.192 as following this file :
;
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA tkj.com. root.tkj.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS tkj.com.
1.1.168 IN PTR tkj.com.
www IN PTR tkj.com.
After finished, you must exit and save this file. Last step, you also have to reconfigure db.tkj like this :
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA tkj.com. root.tkj.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS tkj.com.
@ IN A 192.168.1.1
www IN A 192.168.1.1
If you have finished, you must exit and save this file. Restart bind9 by using command /etc/init.d/bind9 restart. To check your configuration success or failed, you can use many commands to check it, they are :
§ ping tkj.com
§ ping www.tkj.com
§ nslookup
>set type=PTR
>192.168.1.1
>set type=SOA
>tkj.com
§ dig tkj.com or dig www.tkj.com
if you get reply from your computer, your configuration is success.
22 Desember 2007
DNS Server
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar