Miscellaneous
  Home arrow Miscellaneous arrow Page 3 - DNS Primer
Codewalker Forums 
  Tutorials  
Database Articles  
Miscellaneous  
Navigation Usability  
PEAR Articles  
Programming Basics  
Server Administration  
XML Tutorials  
  Reviews  
Database Book Reviews  
Linux Book Reviews  
Miscellaneous Reviews  
PHP Book Reviews  
PHP Software Reviews  
Server Admin Reviews  
SQL Tool Reviews  
  Code Gallery  
Content Management Code  
Contest Code  
Counters Code  
Database Code  
Date Time Code  
Discussion Board Code  
Email Code  
File Manipulation Code  
GUI Code  
Link Farm Code  
Miscellaneous Code  
Search Code  
Site Navigation Code  
User Management Code  
Forums Sitemap 
Dedicated Servers  
Download TestComplete 
JMSL Numerical Library 
IBM® developerWorks
Weekly Newsletter 
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
MISCELLANEOUS

DNS Primer
By: Codewalkers
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2002-10-03

    Table of Contents:
  • DNS Primer
  • named.conf
  • Sample DNS File
  • named.local
  • Finishing up

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    DNS Primer - Sample DNS File


    (Page 3 of 5 )

    Sample DNS File for yourdomain.named.hosts located in /var/named

    @       IN      SOA     www.yourdomain.com.      postmaster.www.yourdomain.com. (
                                    2002020101        ;Serial
                                    10800   ; Refresh 3 hours
                                    3600    ; Retry 1 hour
                                    604800  ; Expire 1 week
                                    86400 ) ; Minimum 24 hours
    ;
    ; (yourdomain.com) Name and Mailserver Definition
    ;
                                    IN      NS      www.youdomain.com.
                                    IN      NS      auth00.ns.uu.net.
                                    IN      MX      10 www.yourdomain.com.
    ;
    ; (yourdomain.com) Localhost Definition
    ;
    localhost       IN      A       127.0.0.1
    ;
    ; (yourdomain.com) Hosts Definition
    ;
    yourdomain.com.                 IN      A       111.111.111.111
    www.yourdomain.com.             IN      A       111.111.111.111
    ftp.yourdomain.com.             IN      A       111.111.111.111
    mail.yourdomain.com.            IN      A       111.111.111.111

    The first line is the (SOA) record for my DNS server. It is qualified as being an IN (Internet) record. www.yourdomain.com is the name of the name server itself. and postmaster.www.yourdomain.com is the e-mail address of the person responsible for this domain (you need to replace the first '.' with an '@' sign).

    The remainder of the stuff is:

    Serial Number: I use today's date with a two digit ending, in case you change it more that once per day. You must change this number with each change or your changes will not be read!

    Refresh: In seconds, Is how often hosts re-query name server for record information.

    Retry: In seconds, Is the number of seconds a remote host will wait if it can't get authoritative information about a host in your domain.

    Expire: In Seconds, Is how long a secondary name server will cache information about a host in your domain before asking for updated values.

    Minimum: In seconds, Is the default period of time that answers from this name server are used before new values will be asked for.

    The NS record defines my domain's name server. Its IP address must be present both in this file and in the reverse IP address mapping file.

    MX or Mail Exchange is the server that handles the mail. You can have a different mail server to handle all the mail. You can add you ISP's address to cache mail if yours goes down. They should be setup to do this.

    More Miscellaneous Articles
    More By Codewalkers


     

    MISCELLANEOUS ARTICLES

    - Stopping CSRF Attacks in Your PHP Applicatio...
    - Quick and Dirty AJAX Tutorial
    - Flickr Puzzle Mashup
    - The PAVISE of Security
    - Creating a CAPTCHA with PHP
    - Sending SMS Thru HTTP
    - The Postal Fix - Part 2
    - Adding Mail with Exim
    - The Postal Fix - Part 1
    - Create Your Own Custom API
    - Adding Drop Shadows with PHP
    - Writing a Basic Authentication System in PHP
    - Overlapping Images with GD
    - Using Sockets in PHP
    - Dynamic CSS with PHP






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway