Jul 20, 2008

How To Setup Your Own Dns (domain Name Server)

Free Web Hosting, No Ads > CONTRIBUTE > Tutorials

free web hosting

How To Setup Your Own Dns (domain Name Server)

Zaero
How To Setup Your Own Dns (Domain Name Server)

This is only a quick tutorial, there are literally hundreds of little tricks you can do with a DNS, but this will get your basics up and running. I'm assuming you want to setup a windows DNS server, but the principals will work for most servers.

You will need..

1) A domain name over which you have full control
2) DNS server software(Windows server always comes with one of these)
3) At least one fixed IP address, allthough two is highly desirable
4) An idea of what services you want on your server

The first thing you need to do is create your new domain entry. In windows this is called a "Zone" and you will have one for every domain name you have. Add your main domain in the forward lookup zone as a Primary zone, which will be in the format "Domainname.com", or .co.uk, or whatever, you shouldn't need any more details for this bit. Do *not* allow dynamic updates unless this is a local network DNS. Once it is created you will have 2 entry's under your new domain, "SOA"(Or Start of Authority) and "NS"(Or Name server). If you want a 100% compliant DNS then you should now follow the same process but adding a domain as a reverse lookup zone. Any changes you make to the forward lookup should have the "Update Reverse Lookup" option ticked if its available, if not you must update the reverse zone manually(This is very important).

Now edit the "NS" entry in your forward zone to "NS0.DomainName.Com", and set it to the relevant IP address. Add another (NS) record and set it to "NS1.DomainName.Com". If using 2 IP address, try to make NS0 the first IP. Now you need to configure the SOA entry in the forward lookup zone. The serial number should be changed to a date followed by a number in this format "YYYYMMDDnn", this is not required, but is advised by RIPE. The primary server will be the "NS0.domainname.com" entry you just made and the responsible person should be left for now. The refresh interval should be set somewhere between 1200 to 43200 seconds, the retry should be between 120-7200 seconds and the expires after should be around 2-4 weeks(I'll let you work out the seconds for that). The minimum TTL is quite important, and depending on what you are going to do with the domain, you might need to tweak this a bit. Typically a value between 1-3 hours should be used. Now go to your "Name server" settings in your SOA record(In windows this is a tab in the same window) remove the defaults, and add your two Name servers that you just setup. We will come back to the SOA record later, but for now we need to do some more stuff.

If you want a website, then your going to want the WWW. setting up. We will set it up as an "A" record, which means it is a separate top level record and will be populated separately from other entries. So add an "A" to your forward lookup zone and put the entry as "WWW", and set the IP address to wherever you want the website to be. This will be where the domain always goes, and it could be anywhere. Just make sure there is a web server waiting there for it. If you want FTP, then setup the same thing but with "FTP" in the entry. You will now also have to setup "A" records for the NS0 and NS1 name servers that you added previously, just make them the same as WWW and FTP, but make sure the IP addresses match the ones used for setting up the "NS" records. Also add a blank "A" record, this will make sure that "domainname.com" works as well as "www.domainname.com".

Now you should decide whether or not you want to have mail on this domain. It is Hegel advisable that you set one up, even if it just to catch domain mail about abuse or potential problems that might occur. You can find plenty of high quality free mail servers out there, but I would recommend "Mail Enable", its free and provides everything you would want, but if you want webmail you do have to pay something extra for it. We will now configure the MX records. Add an "A" name for your mail server, you can add 2 if you want, but for simplicity I would advise staying with 1. We will call ours "Mail.domainname.com", and point it to one of our IP addresses. Now add an "MX" record in the Forward Lookup zone, giving it the full "A" record you just entered "Mail.domainname.com", and do not setup a host or child domain, just leave it blank.

This next step isn't needed, but is again highly recommended.

Now to finish the SOA you need to add two more records. A "RP" entry, which is a Responsible Person, and they will be the contact point for domain complaints and a "MB" entry, which is a mailbox entry. The "MB" should just be pointed to the mail server domain name "Mail.domainname.com", and the "RP" should have the host or domain set to the name of your mail box. So for this server it will be "Tony.Domainname.com", and the mailbox will be set to the "MB" record you just made. Don't worry about the RP address having no "@" in it, this is the expected format for an "RP" entry. You will now have to go back into the SOA and change the responsible person to the new "RP" record you just made.

And thats it, your done! You can add as many "A" records as you like to point to other web servers, or a multitude of FTP sites. And you can add "CNAME" records to basically point to another name, usually an "A" record, like an alias.

Now before you switch your domain on, you need to check that the server is performing properly. So go to www.dnsreport.com, and run the report on your domain "domainname.com", and it will give you a very detailed report of any problems, and even a short description of how to fix the problems. If all is OK, then you are ready to go live. If your domain name is new, or not currently hosted anywhere then the first thing you should do is re-point the domain at your new server. You will typically do this with the provider who owns the domain, and it will be different with all hosts. But the basic settings are the same. You will be asked for at least 2 name servers and ip addresses to go with them. Just put in "NS0.domainname.com" and "NS1.domainname.com" and put in the correct IP addresses. Make sure you do not mess this up, as changes to your main NS servers could potentially take several days to straighten themselves out. Update these settings, and then sit back and wait. You can do a whois on the main DNS server of your domain provider to check if the settings have worked, but again this doesn't always work. For the big 3 domains(.com .net .org) you can do a whois on the network associates site to see the changes instantly. You can also track the progress of the domain changes by doing an NSLookup in dos, like this...

c:\nslookup ns0.domainname.com NS0.yourprovidersdns.com

That will give you the entries your domain provider has

c:\nslookup www.domainname.com ns0.domainname.com

And this will tell you if the changes for your domain have gone through to your ISPs DNS yet. It should give you back the IP address of your new DNS server.

You should always make sure your server is backed up, and that you refresh or update the DNS when you are making changes

 

 

 


Reply

Adamrosso
Awesome. It worked. Thanks =D.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : setup, dns, domain, server

  1. How To Make Your Own Counter Strike Source Dedicated Server!
    (2)
  2. How To Setup A Website After Your Forum
    (3)
    This tutorial is about how to setup a website after you have setup a forum. That means, you have a
    forum, and are wanting to add a website. This tutorial will show you how to create the website in
    your root directory(Example: http://domainname.com) , while your traffic gets redirected to your
    forum while you are creating it, until you're ready for guests to see it. This method is
    opposed to setting it up in another directory, then moving it(particularly more time consuming if
    you're site is PHP based). First of all, you are going to want to setup a redirect ....
  3. How To Create Counter-strike 1.6 Server In Console Mode
    (5)
    Hello! Now I will show you how to create a CS 1.6 Dedicated server /smile.gif"
    style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> 1. Locate HLDS.exe. It
    could start it from Steam. 2. Make a batch file. You could name it how you like, I writed it as
    start.bat. It should be located in the same folder as the HLDS.exe. It should contain something like
    this: CODE HLDS.EXE -console -game cstrike -port 27015 +maxplayers 24 +map bl_counterquake
    +sv_lan 0 +rcon_password yourrconpass -secure I recommend -console to be there, couse it starts
    hld....
  4. Starting Or Stopping Apache And Mysql Server Via Batch File
    (0)
    Hi guys, this is a litte tutorial about how we start and stop the Apache and MySQL in Windows NT
    (2000, XP, 2003) via a batch file script. As we know in Windows NT based system Apache and MySQL
    installed as Windows Services. So we can stop and start it using NET command. For more information
    about DOS command, type HELP at command prompt. I assuming that your MySQL service name is "mysql"
    and your Apache (Apache 2.0.x) service name is "apache2". If you want to chek it click Start > Run >
    services.msc > OK. Windows IS NOT Case Sensitive. Let's get started!. 1. ....
  5. Making A Dynamic Page On Blogspot
    Using an external server to make your pages hosted on blogspot dynamic (5)
    Good morning everyone. Have you ever wondered how to allow your visitors to edit content on your
    blog? Like adding a post straight off the page, adding a link, editing your profile etc. This will
    be extremely useful if you want your visitors to contribute to your blog besides writing comments or
    tagging. 1. Adding a post straight off the page. Go to blogger.com, login, select your blog. Go to
    settings -> email. By enabling blog email, you can now add a post by simply sending an email to the
    address you specified. The address should look something like: yourusername....
  6. Checking For Open Ports From Php
    If you want to check the status of a server at a specific port you can (3)
    Some days ago, i needed to check ports of a server from a webpage, for advising of its status. I
    simply used a great php code that's fsockopen . I'll explain it in the following example:
    (Imagine a file called 'checkports.php', containing the next) CODE <? $address
    =" trap17.com"; //Here you can specify the address you want to check ports $port =
    "80"; //Here you can specify the port you want to check from $address $checkport =
    fsockopen($address, $port, $errnum, $errstr, 2); //The ....
  7. Run Your Own Mail / Radio Server
    SHOUTcast and more (24)
    firstly i want to point out that i did have alot more images that i took for this tutorial but i was
    only aloud to show 15 in this post /sad.gif" style="vertical-align:middle" emoid=":(" border="0"
    alt="sad.gif" /> ill ask for the ammount to be raised then i can add the rest in /smile.gif"
    style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> ok here we go.. Audio
    Streaming Server (Radio) What is a Streaming Audio Server Its an application that will allow you to
    "stream" or send a continuous block of data to a client. In a few words, it will allow....
  8. A Nice Mysql Server Check
    (4)
    I made this and its not very hard at all just fill in the info and it willl see if your mysql is up
    or down CODE <html> <head> <title> Mysql Connection Test
    </title> </head> <body> <h2> <?php // On this you need to put
    your host most of the times localhost username and password. $conncect = mysql_connect (
    "host", "Username", "password" ) or die (" Sorry your server
    can't connect to your mysql server <BR> Check to see you have put in the Username and....
  9. Set Os X Server 10.3 Dhcp To Filter Desks
    Restrict which PCs/Macs get DHCP IP #s (0)
    Among my other duties, I help run a small computing lab for med students at the U of MN. Recently I
    learned that though we only have about twenty legitimate DHCP clients on our wired ethernet getting
    addresses from our Mac OS X 10.3 Server (great system), thirty allocated DHCP addresses were being
    used. Huh? I found that some addresses went to testing, which I understand, but others were being
    grabbed by PCs that should have static IPs but were misconfigured and/or by outsiders who unplugged
    our PCs to network personal laptops (a no-no). We don't watch our PCs all t....
  10. Mysql Database Setup
    tutorial walk through (1)
    Post copied. Google cache to source Credits have been adjusted. Setting Up Your MySQL &
    phpMyAdmin For The First Time This tutorial will show you how to set up your MySQL and your
    phpMyAdmin with ease, regardless of whether you are going to be using PHP Nuke or PHP Nuke
    Platinum. The process is still the same. -Log into your CPanel with your User Name and Password.
    -Click on MySQL icon -Now, we need to create a database also known as Db , Your User Name will
    make up part of the necessary details, but you don't need to do this as it will be done au....
  11. Server Status
    MAke Your own server status in PHP (12)
    My Friend and i made an mmorpg we decided to make a code so the users could tell when the game
    server was running this codoe has many other uses to like monitor a website or w/e you want to do.
    CODE <? $ip = "youriphere"; $port = "yourporthere"; if
    (! $sock = @fsockopen($ip, $port, $num, $error, 5))
    echo '<B><FONT COLOR=red>Offline</b></FONT>'; else{ echo
    '<B><FONT COLOR=lime>Online</b></FONT>'; fclose(....
  12. Checking Your Php Version
    check your version of your server (1)
    This is a very easy tutorial, others may know of this... step 1 => Download the attachment step 2
    => upload to your public directory step3 => open and run the files and you'll get a whole list
    of your server environment and so on.......
  13. Parking Domains
    howto on adding a purchased domain to your account here (3)
    I wrote this tutorial for astahost, but I thought I'd add it here too /smile.gif' border='0'
    style='vertical-align:middle' alt='smile.gif' /> QUOTE Since this is something we may encounter
    while being hosted here I thought I'd touch the subject /smile.gif' border='0'
    style='vertical-align:middle' alt='smile.gif' /> First of all this tutorial/how to is written for
    those who have purchased a domain name through a registrar /smile.gif' border='0'
    style='vertical-align:middle' alt='smile.gif' /> Depending on how your registrar works, you should
    be able ....
  14. Installing And Connecting To A Ventrilo Server
    (0)
    1: Download The Client From http://www.ventrilo.com/download.php 2: Install The Client 3: Boot
    The Client 4: Click the Arrow Pointing to the Right beside the User Name Tab. 5: Click The New
    Button 6: Type In Your Desired Username And Hit Ok 7: In The Phonetic Spot, type your username
    again 8: Enter A Description If Wanted and click ok 9: Click the arrow pointing to the right
    beside the server tab. 10: click the new button. 11: Type in a name for the server. 12: Type in
    the server address that you are connecting to in the Hostname or IP slot. 13: Click Ok. ....
  15. How To Setup A Php-nuke Based Site
    very helpfull (5)
    Ok, so you want to have a php nuke site. First of all, what is this "PHP nuke", and why is it so
    special? Php nuke is a web portal system. It is expandible, and can be very usefull. You can find
    an example here. Yes, it is that good. So, lets take a closer look. It's pre-packaged basic
    features are: *forums *a login system *weblinks *downloads *news *polls *faqs *content You can
    allways de-actuvate some features, but it's near-imposible to remove them. Kinda annoying, but
    you know. Some people may not need phpnuke, or cant have i period. You need: *some ....
  16. Set-up Your Registered Domain Name
    at GoDaddy.com (14)
    Alright, here is how you set-up your registered domain name with Trap17. I bought
    http://www.zroenergy.net at http://www.godaddy.com so I know how it works first hand.
    /smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /> First go to
    http://www.godaddy.com Then go to My Account, and login. Then go to Manage Domains under the
    Domain section of the page you get after logging in. Now the domain you bought will be listed. If
    there is a lock next to it, click on your domain name. On the right of the next page under "Domain
    Details" click unlo....

    1. Looking for setup, dns, domain, server

Searching Video's for setup, dns, domain, server
advertisement



How To Setup Your Own Dns (domain Name Server)



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE