Monday, 15 May 2017

Konfigurasi DNS Server Menggunakan Linux BlankOn

Pada postingan kali ini saya akan memberikan beberapa tutorial konfigurasi DNS server pada linux BlankOn. Berikut tutorialnya, selamat membaca.

1. INSTALL BIND sudo su apt-get install bind9 yum install bind9

2. SETTING IP  
·        - pico /etc/network/interfaces
·         -rubah ip                        
auto eth0                        
iface eth0 inet static                        
address 192.168.69.1                        
netmask 255.255.255.0                        
gateway 192.168.69.1
·        - restart servicenya  
·        - /etc/init.d/networking restart
·         -/etc/init.d/networking reload
·        - ifconfig
·         -ping 192.168.69.1

3.DNS SERVER  
·        - pico /etc/resolv.conf                        
domain dani.org                        
nameserver 192.168.69.1                        
search www.dani.org  
·        - cd /etc/bind  
·        - pico named.conf.local                        
zone "dani.org"{                        
type master;                        
file "/etc/bind/db.dani.org";                        
};                                                
zone "69.168.192.in-addr.arpa"{                        
type master;                        
file "/etc/bind/db.69.168.192";                        
};  
·      -   cp db.local db.dani.org  
·       -  pico db.dani.org                        
$TTL    604800                        
@        IN        SOA    dani.org. root.dani.org. (                                                            
2                      ;Serial                                                            
604800                        ;Resfresh                                                            
86400              ;Retry                                                            
2419200                      ;Expire                                                            
604800 )          ;Negative Cache TTL                         ;                        
@        IN        NS       dani.org.                        
@        IN        A          192.168.69.1                        
@        IN        AAAA  ::1                        
www    IN        CNAME          @  
·         -cp db.127 db.69.168.192  
·         -pico db.69.168.192                        
$TTL    604800                        
@        IN        SOA    dani.org. root.dani.org. (                                                            
2                      ;Serial                                                            
604800                        ;Resfresh                                                            
86400              ;Retry                                                            
2419200                      ;Expire                                                            
604800 )          ;Negative Cache TTL                        
;                        
@        IN        NS       dani.org.                        
1          IN        PTR     dani.org.                        
1          IN        PTR     www.dani.org.
·      -   touch db.dani.org  
·      -   touch db.69.168.192  
·       -  chown bind.bind db.dani.org  
·     -    chown bind.bind db.69.168.192  
·     -    chmod 644 db.dani.org  
·      -   chmod 644 db.69.168.192  
·      -   restart servicenya  
·      -   /etc/init.d/bind9 restart  
·      -   /etc/init.d/bind9 reload  
·      -   nslookup 192.168.69.1  
·      -   nslookup www.dani.org
·      -   ping 192.168.69.1
·      -   ping www.dani.org


Pembuatan DNS Server selesai. 

0 comments:

Post a Comment