0% found this document useful (0 votes)
13 views

Mengatur IP: Nano /etc/network/interfaces

The document outlines the steps to configure a DNS server on a Linux system using Bind9: 1) Edit the network interfaces file to configure a static IP address. 2) Install the Bind9 package and add the installation media if needed. 3) Edit the Bind configuration files named.conf.default-zones and db files to define the forward and reverse lookup zones for the domain. 4) Restart the Bind9 service and verify DNS resolution is working by querying names.

Uploaded by

Anis Khoirunnisa
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

Mengatur IP: Nano /etc/network/interfaces

The document outlines the steps to configure a DNS server on a Linux system using Bind9: 1) Edit the network interfaces file to configure a static IP address. 2) Install the Bind9 package and add the installation media if needed. 3) Edit the Bind configuration files named.conf.default-zones and db files to define the forward and reverse lookup zones for the domain. 4) Restart the Bind9 service and verify DNS resolution is working by querying names.

Uploaded by

Anis Khoirunnisa
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Mengatur IP

nano /etc/network/interfaces
# The loopback network interface Auto lo Iface lo inet loopback auto eth0 iface eth0 inet static address 200.100.4.65 netmask 255.255.255.224 network 200.100.4.64

Restart

/etc/init.d/networking restart
Install bind9 pastikan cdrom telah di add dengan memasukkan isonya

Apt-cdrom add Apt-get install bind9

Membuka file bind


root@tkj:~# cd /etc/bind/ root@tkj:/etc/bind # ls bind.keys

Mengedit konfigurasi zona forward dan zona reverse root@tkj:/etc/bind # nano named.conf.default-zones semua kata localhost dengan nama domain yang diinginkan.

zone smkn1katapang.sch.id { type master; file etc/bind/db.smkn1katapang.sch.id; };

Zone 4.100.200.in-addrs.arpa{ type master; file etc/bind/db.ip;

Copykan db.local ked b.smkn1katapang root@tkj:/etc/bind # cp db.local db.smkn1katapang.sch.id root@tkj:/etc/bind # nano db.smkn1katapang.sch.id *localhost ganti dengan domain $TTL @ IN 604800 SOA smkn1katapang.sch.id root.smkn1katapang.sch.id

; @ @ ns IN IN IN NS A A A A A smkn1katapang.sch.id. 200.100.4.65 200.100.4.65 200.100.4.66 karna servernya berbeda dgn yg lain 200.100.4.66 karna servernya berbeda dgn yg lain 200.100.4.65

www IN mail ftp IN IN

root@tkj:/etc/bind # cp db.smkn1katapang.sch.id db.ip root@tkj:/etc/bind # nano db.ip $TTL @ IN 604800 SOA smkn1katapang.sch.id root.smkn1katapang.sch.id

; @ 65 66 66 65 IN IN IN IN IN NS PTR PTR PTR PTR smkn1katapang.sch.id. ns.smkn1katapang.sch.id www.smkn1katapang.sch.id mail.smkn1katapang.sch.id ftp.smkn1katapang.sch.id

Nano /etc/resolv.conf nameserver 200.100.4.65

/etc/init.d/bind9 restart

Nslookup >www.smkn1katapang.sch.id >ftp.smkn1katapang.sch.id >mail.smkn1katapang.sch.id >ns.smkn1katapang.sch.id > 200.100.4.65

You might also like