Thursday, 7 June 2018

Install DNS In Debian 6 With Winbox

Understanding DNS (Domain Name System)
debian6
DNS (Domain Name System) is a system that stores information about the host name or domain name in the form of a distributed database (Distributed Database) within the computer network, For example: Internet

Install DNS via Bind9 package with command # apt-get install bind9
If the install process is done do the command # cd / etc / bind
Copy db.local to bind #cp /etc/bind/db.local / var / cache / bind / ikmi.ac.id.db
install-dns1
Then edit the contents #nano / var / cache / bind / ikmi.ac.id.db
install-dns2
Rename localhost to ikmi.ac.id with find command: ctrl W > ctrl R (write localhost) > enter
(write ikmi.ac.id) > A (all). then change and addkn @ below to:

@ IN NS ikmi.ac.id.
@ IN A 192.168.1.1
@ IN AAAA :: 1
www IN A 192.168.1.1

Copy also to rev #cp /etc/bind/db.local /var/cache/bind/ikmi.ac.id.rev
Then edit also the contents #nano / var / cache / bind / ikmi.ac.id.rev
install-dns3
Rename localhost to ikmi.ac.id with find command: ctrl W > ctrl R (write localhost) àenter
(write ikmi.ac.id) > A (all). then change and addkn @ below to:

@ IN NS ikmi.ac.id.
IN PTR www. ikmi.ac.id.

Then do Restart # /etc/init.d/bind9 restart
Configure with the command #nano /etc/bind/named.conf.local Change and fill it as below:
install-dns4
#nano /etc/resolv.conf (change the IP first customize with IP Server)
nameserver5
#nslookup ikmi.ac.id (for testing)
Check first and add nameservers to the repository by doing #nano / etc / network /
interfaces (add nameserver 192.168.1.1)
# / etc / init.d / networking restart (restart)
restart6
Already able to check the web broser available with IP address or domain nameny, but with
default view / default from sananya, (It's Work) before we have installed apachenya to do the
editing do this command: # cd / etc / apache2 / sites- available
Then the default copy to ikmi.ac.id #cp default ikmi.ac.id
cpdefault7
#nano index.html (create web content)
htmlconten8
Then do pengenablelan on ikmi.ac.id # a2ensite ikmi.ac.id
And pendisablelan on default with the default # a2dissite command
#nano ikmi.ac.id change (/ var / www / to / etc / apache2 / sites-available)
apachesite9
Then restart the apache # / etc / init.d / apache2 restart
Ip settings in client add ip server in DNS server
ipclient10
Then open in web browser with IP or domain name, if as below means to succeed
testingpage11

Don't forget to share this article........


No comments:

Post a Comment