Ubuntu Dns

Rabu, 27 Juli 2011

This time we load a DNS (Domain Name Server), whose job is to translate an IPaddress into a name, so the client does not need to bother memorizing thenumbers IP'nya and just need to know the name alone. For example, when we open a site like facebook for example, we only need to type in"www.facebook.com".

Because the OS that we will use is Ubuntu, then to create a control we used mode"text" to be used in a terminal. To get into the Terminal, just click on the taskbarapplications - accessories - terminal.

Because to create a control that we need to install bind9 on ubuntu repositories,then we need to make sure that the settings are correct repository and is already connected to the address that provides a repository of ubuntu we need. If not, lookat http://wiwin.web.id/?p=688

If you have, just install bind9 on ubuntu you, but before that make sure you arelogged in as super user by typing su, then enter your root password. If you have,type apt-get install bind9 and then enter.


If already installed, we will begin to do the settings DNS. The first we do ismake sure that your computer already has the IP. If not connected to the network,we can create a virtual IP, the way by typing: ifconfig eth0 IP_yang-will-we-wear-ipnetmask netmask_dari broadcast_dari broadcast-network-virtual-ip-of-us. This isan example:



Once we get the IP, the next step is to go in the folder / etc / bind by typing "cd / etc/ bind". After that we copy the DNS settings that are already there after we installBIND earlier. The setting is in the file 'db.local'. So to copy the file, we simply typing:cp db.local db. (Name of the file we will create).



then we edit the file db.dany which is a copy of db.local file, type:nano db.dany

dan edit sampai seperti berikut:


Note:
ns.dany.com. : Name that we will use to controlroot.localhost. : Is actually your email, "@" sign replaced with ".", For exampledany_preistian13@yahoo.co.id dany.preistian13.yahoo.co.id replaced.192.168.0.13 is the IP we are.If you are finished save this setting by press ctrl + x then follow the steps. If you have, copy db.dany manner as earlier example: cp db.dany db.ip. kemnudian db.ipwith nano.


After that, we edit the named.conf so that control leads to the setting that wecreated earlier. Type: nano named.confand fill in:
zone "dany.com" {

type master;

file "/etc/bind/db.dany";

};

zone "0.168.192.in-addr.arpa" {

type master;

file "/etc/bind/db.ip";

};

Can be filled under himself so easy to find. After that we finished setting up the DNS task. Then we test, dns we succeed ornot. How do I run the first BIND9: / etc/init.d/bind9 restartthen ping dany.com to membukatikan whether the control that we make aresuccessful or not.


If the PING results as above, means the DNS has been successfully created.

0 komentar:

Posting Komentar

 
 
 

Label

Label