You are on page 1of 8

DNS

Konfigurasi IP . Konfigurasi /etc/network/interfaces Nano /etc/network/interfaces auto eth0 iface eth0 inet static address 192.168.100.1 netmask 255.255.255.0 Atau auto eth1 iface eth1 inet static address 192.168.100.2 netmask 255.255.255.0 Restart service Ethernet /etc/init.d/networking restart

3. Periksa apakah BIND sudah terinstall apt-get install bind9 ------menginstall BIND apt-get remove bind9 ------ meremove BIND 4. Konfigurasi BIND cd /etc/bind/ cp db.local ptr cp db.local domainku.com

a.nano ptr nano ptr ============================================ ; ; BIND data file for local loopback interface ; $TTL 604800 @ IN SOA domainku.com. root.domainku.com. ( 2009032001 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL ; @ IN NS ns. 190 IN PTR ns.domainku.com.

b. edit domainku.com nano domainku.com ============================================== $TTL 86400 @ IN SOA domainku.com. root.domainku.com. ( 200903181 ; Serial 28800 ; Refresh 14400 ; Retry 3600000 ; Expire 86400 ) ; Negative Cache TTL ; @ IN NS domainku.com. @ IN A 203.134.239.190 www IN A 203.134.239.190 ( atau www IN CNAME domainku.com) mail IN A 203.134.239.188 ftp IN A 203.134.239.191 pop IN A 203.134.239.188 smtp IN A 203.134.239.189

c. Konfigurasi named.conf.local nano named.conf.local #tambahkan ini zone "domainku.com" { type master; file "/etc/bind/domainku.com"; }; zone "239.134.203.in-addr.arpa" { type master; file "/etc/bind/ptr"; };

5. Edit /etc/resolv.conf pico /etc/resolv.conf nameserver 203.134.239.190

6. Restart BIND service bind9 restart atau /etc/init.d/bind9 restart atau reload

You might also like