Step-by-Step: Writing a Zone File
Updated: May 30, 2001

Note: This example is specific for using the free DNS service.  However, it can be adapted to work with any DNS service if you replace "" and "" in lines 1 and 2 with the names of the nameservers you are using.

For each domain you create, you need to have a zone file, which is basically a list of directions for where to send the web user. The three main types of requests from the user are:

HTTP - Web page requests.
FTP - FTP servers can be directed to the same or a different server than the web requests.
Mail - The email can be sent to the same or a different server than the web requests.

In your zone file, the IP number that you must enter is that of your DSL/Cable line (WAN) not the internal IP number of the server (LAN).  If your IP looks like, then you made a mistake and entered your internal LAN IP number.  You cannot reach internal LAN IP numbers from the Internet.  Be careful, this is one of the biggest mistakes with writing zone file.  Look here at this diagram if your are still confused.

Cut and past the text between the lines and use the "replace" function in either Notepad or Microsoft Word to do your replacements. It will save you time and be more accurate.

Replace yourdomain with your domain name
Replace with your DSL/Cable IP number (WAN)
Replace yourname with your own name IN NS IN NS IN RP IN A IN CNAME IN CNAME IN A IN MX 10

The way this zone file is written, your domain name can be accessed from both "" or "" which is very convenient.

Step by Step Menu