DNS (Domain Name Service) server is a server that translate an IP address into a name that will be easy to remember or do the opposite way.
The administrative job is done in Server side. For client side just set the machine to connect the DNS server.
Before we start, I assume that you are connected to Internet already. For, text editor, you can use any program that you are familiar with. In this sample, I use vim.
The installation is as easy as below:
Step 1. Install the bind9
Open Linux Terminal (Applications>Accessories>Terminal), type: sudo apt-get install bind9
Installation finished.

Step 2. Edit file /etc/bind/named.conf
Edit file /etc/bind/named.conf, at Linux Terminal type: $sudo vim /etc/bind/named.conf and add the codes below:
—————————————————-
include “/etc/bind/named.conf.options”;
zone “1.168.192.in-addr.arpa” {
type master;
file “/etc/bind/ip.db”;
};
zone “myserver.loc” {
type master;
file “/etc/bind/www.db”;
};
—————————————————-
Step 3. Edit file /etc/bind/ip.db
Edit file /etc/bind/named.conf, at Linux Terminal type: $sudo vim /etc/bind/ip.db and add the codes below:
—————————————————-
$TTL 86400
@ IN SOA ns.myserver.loc. root.myserver.loc. (
2006081201
8H
2H
1W
1D )
@ IN NS ns.myserver.loc.
@ IN MX 10 ns.myserver.loc.
1 IN PTR ns.myserver.loc.
1 IN PTR http://www.myserver.loc.
1 IN PTR mail.myserver.loc.
—————————————————-
Step 4. Edit file /etc/bind/www.db
Edit file /etc/bind/www.db, from Linux Terminal type: $sudo vim /etc/bind.www.db and add the codes below:
—————————————————-
$TTL 86400
@ IN SOA ns.myserver.loc. root.myserver.loc. (
2006081201
8H
2H
1W
1D )
@ IN NS ns.mymyserver.loc.
@ IN MX 10 ns.myserver.loc.
ns IN A 192.168.1.5
www IN A 192.168.1.5
mail IN A 192.168.1.5
—————————————————-
Step 5. Edit file /etc/resolv.conf
Edit file /etc/resolv.conf, from Linux Terminal type: $sudo vim /etc/resolv.conf and add the codes below:
—————————————————-
search myserver.loc
nameserver 192.168.1.5
—————————————————-
Step 6. Restart the DNS server
From Linux Terminal type: $sudo /etc/init.d/bind9 restart
Step 7. Test the result.
From Linux Terminal type: $ping http://www.myserver.loc
You may find this error because you haven’t set your ip address yet. Just type: $sudo ifconfig eth0 192.168.1.5 netmask 255.255.255.0
Test it again. Now, it works.
Now, test with ‘dig’ to get information about DNS Name server.
Most DNS administrators use ‘dig’ to troubleshoot DNS problems because it’s easy to use and very flexible.
From Linux terminal, type: $dig http://www.myserver.loc
Check, the dns mail server name.
Done.
After everything works, you can change the dns server name and ip address with your own need.
Happy trying.



















[...] source here Tags: apt-get install bind, bind, bind9, dns, jaunty, ubuntu This entry was posted on Wednesday, September 22nd, 2010 at 8:19 pm and is filed under Networking, debian, linux, ubuntu. You can follow any responses to this entry through the RSS 2.0 feed.You can leave a response, or trackback from your own site. No ResponsesLeave a Reply Name (required) Mail (will not be published) (required) Website .nucaptcha {width: 350px; position: relative; font-family:Times New Roman,sans-serif; font-size: 16px; padding: 0px; margin: 0px;} .nucaptcha_center {margin-left: auto; margin-right: auto;} .nucaptcha_right {margin-left: auto; margin-right: 0px;} #leapplayer a{border: none;} Type the RED moving letters View Help Information var data = {"dataRequest":"http://data.east1.nucaptcha.com/", "token":"2.58.5867.1285168810.0.eGyquEmX5M8qKXdu3JdMCQ,,.Jp9Z_C7E44eOQgAIySaOCY7hcGEQQeBR_NpXtpasqVN1lwP5Ndk_pVyAL3iQ3HshOTj4nUxuAUjdns38g_MYx6yBp9Cah7CmSOh5lhbykIO1BHorMlhxZqqilpRLvD6JRs-oidEX4HM2n6zsdCMYrNW0_XsEihiVEJJ3SAEWK5FshSOAYyg0AVw8UDLoFwkT3ffsgxfjE_g8BpAv2rsKJkXbCJNLvasBgW6MqIQ7BUkWrw-D4oUVDEKvJHsj7f2Q6swzU8ZkREQpOjKo_fUS2wE4aHJuRwkEqgZ7rVe_rQPvhMdwbqcvY1X94Qei5pkRkJqdqP4wrZP8sajmvh_GTB3uzbsggSHEPxM3IXrHPyVmgUzu7Riym81DqApVv8bEQXLj0zBwewyJsBRYYfhmtk0k_5lEUUuMbVV4m-1sduLMIr-h-8KhekHVPJl8Lb9bobP_EoTnpcwuLQTh9KgUkw,,.cnhaYmdwMmZvc3o4N1hNTnV3N2t6bUV2WUdzNGZXL09JM1JaQzBxUndEQ2lEakNFdVZYd2VJLytqc1RzV0pZNHljcXlHTSt1aW85VjNwRU9yaVlHNGhlQ3p5cERURHU1OXJ0UExXdWNsdXVGdnU4NEVBcGlDMmNFTEJqYjFaWTRhOHdKRjhycjhRQ0ErS1dCa3hqTzZ0dFFZVVM3STQzK09FK2hYSG44eVFvPQ,,", "resourceServer":"http://static.nucaptcha.com/59/", "w":312, "h":286, "validationFields":["lmanswer","lmanswer_enter","lmanswer_exit","lmindex","lmdatatype","lmlanguage"], "cssSkin":"default", "skin":"http://static.nucaptcha.com/59/images/player/leap/", "webRequest":false, "imagePath":"http://static.nucaptcha.com/59/images/player/leap/", "showFlashVars":false, "skinJSON":[], "version":1, "skinname":"skin.xml", "isTransparent":false, "highlightAnswerBox":false, "position":"center", "language":"ENG", "ipAddress":"74.200.247.247"} ; lmLoadPlayer(data); InitNuCaptchaWPForm(false, "wp-caption", "");#submit {display:none;} CAPTCHA Code [...]
-,~ I am very thankful to this topic because it really gives useful information .’”
A couple of my best friends “liked” this article on facebook so I decided I’d check it out. I just did the same so perhaps a few more people will notice this
I am very thankful to this topic because it really gives useful information .
I just did the same so perhaps a few more people will notice this
J’aime beaucoup ce site
I am really loving the theme/design of your website. Do you ever run into any browser compatibility problems? A small number of my blog readers have complained about my website not working correctly in Explorer but looks great in Chrome. Do you have any recommendations to help fix this problem?
welcome to our webside
Do you have any recommendations to help fix this problem?
Hello blogger. I like your blog about 7 Easy Steps Installation DNS server in Ubuntu Jaunty Taufan Lubis – Ubuntu Linux.
But i have a question not related to subject: Do you use a seperate blogposting program or do you write your blogposts in the wordpress admin? If you post your answer here below, i will read this in the next couple of day’s.
Thanks Brandklasse F
Excellent site. Plenty of useful info here. I’m sending it to a few friends ans also sharing in delicious. And of course, thanks to your effort!
The cost of dental implants in Turkey seems to be the best around with all the other dentistry services it seems to be the best place.Dentists in Turkey seem to give the best service and work for your money.Dentistry and especially dental implants and orthodontics seems to be top class in Turkey.
Connection timed out; no servers could be reached
>>> got this problem during digging and http.
you’re in point of fact a excellent webmaster. The web site loading velocity is incredible. It kind of feels that you’re doing any unique trick.
Furthermore, The contents are masterwork. you have done a excellent task in this subject!