Domain Name Server (DNS)
Domain Name Server (DNS)
Edit muhsyi.com
$ nano muhsyi.com
==============================================
$TTL 86400
@
IN
SOA muhsyi.com. root. muhsyi.com. (
2
; Serial
604800
; Refresh
86400
; Retry
2419200
; Expire
604800 )
; Negative Cache TTL
;
@
IN
NS
muhsyi.com.
@
IN A
192.168.0.1
www IN A
192.168.0.1
perpustakaan IN
A
192.168.0.1
ftp
IN
A
192.168.0.1
mail IN
A
192.168.0.1
pop
IN
A
192.168.0.1
smtp IN
A
192.168.0.1
Edit named.conf.local
Ketik :
$ nano named.conf.local
#tambahkan ini
zone "muhsyi.com" {
type master;
file "/etc/bind/muhsyi.com";
};
zone "0.168.192.in-addr.arpa" {
type master;
file "/etc/bind/ptr";
};
C. Edit /etc/resolv.conf
Ketik : nano /etc/resolv.conf
===============================================
pico /etc/resolv.conf
lalu tambahkan :
nameserver 192.168.0.1
===============================================
D. Restart Bind
Ketik : /etc/init.d/bind9 restart atau reload
E. ping domainku.com
Kalau sudah reply,m berarti DNS sudah berhasil