Solved

Editing DNS entries in Cpanel (WHM)

Posted on 2009-07-13
5
1,797 Views
Last Modified: 2013-12-16
My host was kind enough to provide me with WHM for CPANEL so that I could edit my own DNS entries. Unfortunately im not too clear on how things need to be set up and I dont have the luxury of experimenting as this is company's domains im dealing with here. The code pasted is for standard Standard Package

Id like to use this host's own nameservers which are:
ns1.chqdns.com
ns2.chqdns.com


I need to change it according to the screenshot from our previous host and I need done as soon as possible(lowest TTL right?):

http://i29.tinypic.com/9uuel2.jpg
; cPanel %cpversion%
; Zone file for %domain%
$TTL %ttl%
@      %nsttl%	IN      SOA     %nameserver%. %rpemail%. (
		%serial%	; serial, todays date+todays
		86400		; refresh, seconds
		7200		; retry, seconds
		3600000		; expire, seconds
		86400 )		; minimum, seconds
 
%domain%. %nsttl% IN NS %nameserver%.
%domain%. %nsttl% IN NS %nameserver2%.
%domain%. %nsttl% IN NS %nameserver3%.
%domain%. %nsttl% IN NS %nameserver4%.
 
%nameserverentry%. IN A %nameservera%
%nameserverentry2%. IN A %nameservera2%
%nameserverentry3%. IN A %nameservera3%
%nameserverentry4%. IN A %nameservera4%
 
%domain%. IN A %ip%
 
localhost.%domain%. IN A 127.0.0.1
 
%domain%. IN MX 0 %domain%.
 
mail IN CNAME %domain%.
www IN CNAME %domain%.
ftp IN CNAME %domain%.

Open in new window

hosting4.JPG
0
Comment
Question by:Anti-Mhz
  • 2
5 Comments
 
LVL 30

Accepted Solution

by:
Kerem ERSOY earned 500 total points
ID: 24845660
Hi,

When it comes to setting TTL and SOA values there are some guideline in setting up DNS SOA settings. The are RFC 2308 and RFC1912.

Check these out here:
http://www.isi.edu/in-notes/rfc2308.txt
http://www.isi.edu/in-notes/rfc1912.txt

According to RFC 2308 suggested default TTL value should be between 1 and 3 hours. In your previous host set this value to be 1 hour (3600 seconds) I'll suggest you to use 2 hours (7200 seconds). This value  will affect how long a nameserver will serve the info gathered from your host (called negative caching). Once queried a nemeserver will serve this information from its cache for 1 hours. If you modify the values in your site it would mean that any DNS server accessed to your site will refresh this value in 1 hours time. It is good if you modify the values on your site very often. But this has a drawback that since each DNS server will serve the gathered data for only an hour they will need to re-query your server every hour. So it will create lots of traffic.  Hence I'm suggesting you 2 hours instead.

But there is also the default TTL value. It will be used asa default when default TTL was not applied to any record. the value ofr this setting  was 86400 in your previous host.

So the final result will be similar to the example below.

So the values for the variables you have displayed here should be:

%ttl% = 86400
%nsttl%= 3600 ( I'm suggesting 7200)
%nameserver%= ns1.chqdns.com
%domain%= arcelectronics.com
%nameserver%= ns1.chqdns.com
%nameserver2%= ns2.chqdns.com

you don't need these since your DNS seetinds are located outside of your domain. They would be only needed if your DNS settings were located in your domain.

I think taht your MX records are located in your domain so I'm suggesting you to add a custom text record to designate a SPF record:

%domain%              IN    TXT "v=spf1 mx ~all"

This will insure your operation without any problems.

Cheers,
K.


$TTL  86400
$ORIGIN arcelectronics.com
@      3600  IN      SOA     NS1.chqdns.com. root.arcelectronics.com. (
                                2009071401      ; serial
                                1800    ; refresh (30 mins)
                                900     ; retry (15 mins)
                                604800  ; expire (7 days)
                                7300 ) ; minimum (20 mins)
 
             IN    NS ns1.chqdns.com
             IN    NS ns2.chqdns.com
             
             IN    MX  10 mail.arcelectronics.com.
 
       

Open in new window

0
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24845976
I have completely answered the question. I don't think it is ethical closing a question like that.
0
 
LVL 1

Author Closing Comment

by:Anti-Mhz
ID: 31602778
good to know
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Why VNC doesn't work in Redhat? 11 61
Linux Copy Command - All Files inc Directory 1 42
Oracle 10g standard edition server with 4 processors 3 52
ftp to port 21 4 43
Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question