|
Membuat DNS Server dengan Linux Ubuntu 8.10 |
|
Disini aku mau berbagi pengalaman membuat (setting) DNS server dengan menggunakan Ubuntu 8.10. Sebelumnya, perlu kita ketahui, apa sih sebenarnya DNS itu??? DNS itu singkatan dari Domain Name Server, jadi yang kita inget bukan alamat IP Address dari setiap komputer tapi nama yang diberikan untuk IP Address tersebut. Misalnya seperti www.yahoo.com atau www.google.com atau juga masnyoto.com.
Kenapa? Karena manusia kesulitan kalo harus mengingat banyak nomor sekaligus, jadi dibuat sebuah program namanya DNS Server supaya manusia tinggal inget nama websitenya doang, tugasnya DNS Server untuk nerjemahin nama menjadi nomor.
Tapi sebelum dia bisa nerjemahin, kita harus install dan konfigurasi dulu DNS Server.
Asumsi kita adalah:
IP Address DNS Server : 114.134.73.222 Nama Website : http://www.masnyoto.com Network : 114.134.73.216 Gateway : 114.134.73.217 Nama komputer : server
yang pertama kita masuk ke terminal selanjutnya kita install DNS server (bind9) # sudo apt-get install bind9 setelah proses instalasi nya selesai, kita konfigure di bagian name.conf # sudo nano /etc/bind/named.conf tambahkan konfigurasi seperti ini: zone "73.134.114.in-addr.arpa" { type master; file "/etc/bind/db.73.134.114"; };
zone "masnyoto.com" { type master; file "/etc/bind/db.masnyoto.com"; };
Selanjutnya kita copy file dari db.local ke db.masnyoto.com dan dari db.127 ke db. 73.134.114 ketik: # sudo cp /etc/bind/db.local /etc/bind/db.masnyoto.com # sudo cp /etc/bind/db.127 /etc/bind/db.73.134.114
langkah berikutnya adalah setting zone domain(db.masnyoto.com) #sudo nano /etc/bind/db.masnyoto.com buat konfugurasi seperti dibawah ini: ; ; BIND data file for local loopback interface ; $TTL 604800 @ IN SOA masnyoto.com. root.masnyoto.com. ( 2 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL ; @ IN NS ns1.masnyoto.com. @ IN A 114.134.73.222 ns1 IN A 114.134.73.222 mail IN A 114.134.73.222 server IN A 114.134.73.222 www IN A 114.134.73.222 masnyoto.com. MX 10 mail.masnyoto.com.
langkah selanjutnya adalah setting zone ip address (db.73.134.114) # nano /etc/bind/db.73.134.114 buat konfigurasi seperti dibawah ini: ; ; BIND reverse data file for local loopback interface ; $TTL 604800 @ IN SOA masnyoto.com. root.masnyoto.com. ( 1 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL ; @ IN NS ns1.masnyoto.com. 222 IN PTR masnyoto.com.
setelah itu kita restart DNS server: #sudo /etc/init.d/bind9 restart
untuk menge-check kita ketik: # dig masnyoto.com bila ada reply seerti ini; server:~# dig masnyoto.com
; <<>> DiG 9.5.1-P1 <<>> masnyoto.com ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 56410 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1 ;; QUESTION SECTION: ;masnyoto.com. IN A ;; ANSWER SECTION: masnyoto.com. 604800 IN A 114.134.73.222 ;; AUTHORITY SECTION: masnyoto.com. 604800 IN NS ns1.masnyoto.com. ;; ADDITIONAL SECTION: ns1.masnyoto.com. 604800 IN A 114.134.73.222 ;; Query time: 0 msec ;; SERVER: 114.134.73.222#53(114.134.73.222) ;; WHEN: Sun Feb 28 21:18:20 2010 ;; MSG SIZE rcvd: 81 maka settingan kita suda berhasil... yang terakhir kita ganti ip dns diserver kita # sudo nano /etc/resolv.conf search masnyoto.com nameserver 114.134.73.222 nameserver 208.67.222.222 selesai dech setting dns server nya.. untuk memastikan lagi kita bisa test dengan menggunakan # nslookup www.yahoo.com
server:~# nslookup www.yahoo.com Server: 114.134.73.222 Address: 114.134.73.222#53
Non-authoritative answer: www.yahoo.com canonical name = fp.wg1.b.yahoo.com. fp.wg1.b.yahoo.com canonical name = any-fp.wa1.b.yahoo.com. Name: any-fp.wa1.b.yahoo.com Address: 72.30.2.43 Name: any-fp.wa1.b.yahoo.com Address: 98.137.149.56
Demikian sedikit tulisan dari aku, apa bila ada kesalahan mohon dikoreksi.. terimkasih...
|
A PEASANT found an wow power leveling Eagle captured in a trap,world of warcraft power leveling and much wow power leveling admiring the bird,wow power leveling set him free.wow power leveling The Eagle did World of Warcraft power leveling not prove ungrateful knight noah to his deliverer,wow cd keys for seeing the Peasant sitting under fast wow gold a wall which was not safe,wow leveling he flew toward him and world of warcraft gold with his talons snatched flyff penya a bundle from World of Warcraft power leveling his head.aion kinah When the Peasant wow power leveling rose in pursuit, last chaos money the Eagle let dog jackets the bundle fall again. 2moons power leveling Takingit up,wow leveling the man returned to the same place,Archlord gold to find that archlord gold the wall under which he had been sitting had fallen to pieces;world of warcraft power leveling and he marveled world of warcraft power leveling at the servicerendered him by the Eagle