Tugas Instalasi Administrasi Jaringan: Konfigurasi Dns
This document summarizes the steps to configure a DNS server and Apache web server on Ubuntu. It involves:
1. Editing configuration files such as db.nama.zone and apache2.conf to set the domain name and enable DNS.
2. Configuring Apache virtual hosts by editing files in sites-available and sites-enabled to set the server name and document root for the website.
3. Creating DNS zone and reverse lookup files that define the IP address and domain name mappings to enable name resolution.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
122 views16 pages
Tugas Instalasi Administrasi Jaringan: Konfigurasi Dns
This document summarizes the steps to configure a DNS server and Apache web server on Ubuntu. It involves:
1. Editing configuration files such as db.nama.zone and apache2.conf to set the domain name and enable DNS.
2. Configuring Apache virtual hosts by editing files in sites-available and sites-enabled to set the server name and document root for the website.
3. Creating DNS zone and reverse lookup files that define the IP address and domain name mappings to enable name resolution.
$ sudo su # cd /etc/bind/ # vi db.nama.zone edit file zone pada DNS server yang telah di konfigurasi sebelumnya www IN CNAME ns • # apt-get install apache2 # cd /etc/apache2 # vi apache2.conf • Lalu edit file apache2.conf, dan tambahkan script dibawah ServerName namaserver • Tampilan pada shell : # cd /etc/apache2/sites-available # cp default www # vi www Isi file tersebut seperti di bawah ini : ServerName namaserver # cd /etc/apache2/sites-enable # rm 000-default # ln –s /etc/apache2/sites-available/www /etc/apache2/sites-enable/www # apache2ctl restart # /etc/init.d/apache2 restart # apt-get install links # cd /var/www # vi index.html Lalu save # links www.imamtkj32.tk KESIMPULAN • KESIMPULAN >Dalam peng-konfigurasi-an WEB server, kita cukup mengkonfigurasi file 1. file zone pada bind 2. apache2.conf 3. file pada direktori sites-available. Konfigurasi DNS • include "/etc/bind/named.conf.options"; • • // prime the server with knowledge of the root servers • zone "." { • type hint; • file "/etc/bind/db.root"; • }; • • // be authoritative for the localhost forward and reverse zones, and for • // broadcast zones as per RFC 1912 • • zone "localhost" { • type master; • file "/etc/bind/db.local"; • }; • • zone "127.in-addr.arpa" { • type master; • file "/etc/bind/db.127"; • }; • zone "debian.com" { • type master; • file "/etc/bind/db.debian"; • }; • • zone "1.168.202.in-addr.arpa" { • type master; • file "/etc/bind/db.202"; • }; • zone "0.in-addr.arpa" { • type master; • file "/etc/bind/db.0"; • }; • zone "255.in-addr.arpa" { • type master; • file "/etc/bind/db.255"; • }; include "/etc/bind/named.conf.local"; Konfigurasi Reverse • ; • ; BIND data file for local loopback interface • ; • $TTL 604800 • @ IN SOA debian.com. root.debian.com. ( • 1 ; Serial • 604800 ; Refresh • 86400 ; Retry • 2419200 ; Expire • 604800 ) ; Negative Cache TTL • ; • @ IN NS debian.com. • @ IN A 202.168.1.1 • www IN A 202.168.1.1 Konfigurasi ARPA • ; • ; BIND reverse data file for local loopback interface • ; • $TTL 604800 • @ IN SOA fedora.it.id. root.fedora.it.id. ( • 1 ; Serial • 604800 ; Refresh • 86400 ; Retry • 2419200 ; Expire • 604800 ) ; Negative Cache TTL • ; • IN NS debian.com. • 1 IN PTR debian.com. • • Konfigurasi Resolve • search 202.168.1.1 • nameserver debian.com • domain debian.com Konfigurasi “www” • NameVirtualHost *:80 • <VirtualHost *:80> • ServerAdmin www.debian.com • ServerName www.debian.com • DocumentRoot /var/www/ • <Directory /> • Options FollowSymLinks • AllowOverride None • </Directory> • <Directory /var/www/> • Options Indexes FollowSymLinks MultiViews • AllowOverride None • Order allow,deny • allow from all • # This directive allows us to have apache2's default start page • # in /apache2-default/, but still have / go to the right place • # RedirectMatch ^/$ /apache2-default/ • </Directory> • • ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ • <Directory "/usr/lib/cgi-bin"> • AllowOverride None • Options ExecCGI -MultiViews +SymLinksIfOwnerMatch • Order allow,deny • Allow from all • </Directory> Langkah pertama kita melakukan uji coba dengan membuat source code website kita. (*Kita menggunakan sebagian source) Pada alamat browser. Tertulis file:///D:/itats.html yang berarti website ini di buat pada direktori “file D/”dengan nama file nya “itats”.