0% found this document useful (0 votes)
35 views5 pages

Domain Name Server (DNS)

This document discusses configuring DNS (Domain Name System) on Linux. It describes installing and configuring BIND, the DNS server software commonly used on Linux. The steps include configuring the IP address of the server, installing and configuring BIND, editing configuration files like named.conf.local and zones files to define the local domain "muhsyi.com" and reverse lookup zone, and restarting BIND. Once complete, pinging the domain name should resolve successfully, indicating the local DNS server is functioning properly.

Uploaded by

vinsens
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views5 pages

Domain Name Server (DNS)

This document discusses configuring DNS (Domain Name System) on Linux. It describes installing and configuring BIND, the DNS server software commonly used on Linux. The steps include configuring the IP address of the server, installing and configuring BIND, editing configuration files like named.conf.local and zones files to define the local domain "muhsyi.com" and reverse lookup zone, and restarting BIND. Once complete, pinging the domain name should resolve successfully, indicating the local DNS server is functioning properly.

Uploaded by

vinsens
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 5

BAB I

Domain Name System


(DNS)
A. Pengertian DNS(Domain Name System)
Domain Name System (DNS) adalah Distribute Database System yang digunakan untuk
pencarian nama komputer (name resolution) di rangkaian yang menggunakan TCP/IP. DNS
merupakan sebuah aplikasi service yang biasa digunakan di internet seperti web browser atau email yang menerjemahkan sebuah domain ke IP address. DNS di linux ini menggunakan BIND
yang harus diinstall tersendiri.
B. Setting DNS
a. Konfigurasi IP Address
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

b. Restart service Ethernet dengan mengetik :


$ /etc/init.d/networking restart
Tes Ip yang dikonfigurasi dengan perintah :
$ Ping 192.168.0.1

Kalau berhasil reply berarti sudah siap unutk dikonfigurasi BIND


c. Instal Bind9
$ apt-get install bind9
(Untuk meremove BIND yang mungkin rusak gunakan perintah $ apt-get remove bind9 )
d. Konfigurasi Bind
Buat file ptr dan domainku.com yang dicopy-kan dari file db.local
$ cd /etc/bind/
$ cp db.local ptr
$ cp db.local domainku.com
Konfigurasi File ptr
$ nano ptr
============================================;
; BIND data file for local loopback interface
;
$TTL 604800
@
IN
SOA muhsyi.com. root. muhsyi.com. (
2
; Serial
604800
; Refresh
86400
; Retry
2419200
; Expire
604800 )
; Negative Cache TTL
;
@
IN
NS
ns.
1
IN
PTR ns. muhsyi.com.
Angka 1 merupakan oktet ke 4 dari IP 192.168.0.1

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

You might also like