hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Hosting Security and Technology Tutorials : DNS Tips
Reply

Hosting Security and Technology Tutorials Tutorials related to server security or the like.
Forum Jump

DNS Tips

Reply Post New Thread In Hosting Security and Technology Tutorials Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 06-06-2006, 01:20 AM
jbargs jbargs is offline
Disabled
 
Join Date: Dec 2005
Posts: 37

DNS Tips


My advice... (this is pure gold)

Remember, IP addresses change, domain names do not. Think about this basic truth and apply it. So whenever possible point services to names (CNAME records) not IP's (A records).
See the point yet? If your hosting server changes IP and all of your clients point to it's IP then someone will need to update ALL of your clients DNS records. But if everyone points to the NAME of your server then it's not a problem.

server1.isp.com = 123.123.123.123
www.clientA.com = server1.isp.com

Change the IP on server1 and nobody will notice.

You can paypal me $5 for the advice.

Reply With Quote


Sponsored Links
  #2  
Old 06-06-2006, 03:12 AM
lpmusic lpmusic is offline
Junior Guru
 
Join Date: Apr 2004
Posts: 202
Or you could make a script to change the IPs in your zone files (presuming you host the DNS of course)

Reply With Quote
  #3  
Old 06-06-2006, 09:38 PM
morcego morcego is offline
Web Hosting Guru
 
Join Date: May 2005
Posts: 280
Actually, I think he is saying you should NOT point to 123.123.123.123.
server1.isp.com is.
On the other hand, I like using 1 name -> 1 service better. That way, if you want to move only 1 service to another server, you will have no problem. Something like:
Code:
blah.domain.com    IN  A 123.123.123.123
smtp.domain.com   IN  CNAME blah.domain.com.
pop.domain.com    IN  CNAME blah.domain.com.
imap.domain.com   IN  CNAME blah.domain.com.

Reply With Quote
Sponsored Links
  #4  
Old 06-07-2006, 06:45 PM
lpmusic lpmusic is offline
Junior Guru
 
Join Date: Apr 2004
Posts: 202
Yes, I read what he said. I'm saying there's no point in doing so if you host all the dns zone files for the domains. Why would you want to have to make your dns servers answer more queries? Granted, it probably wouldn't be a huge increase in load but it's more than if you just used A records all the way around.

Reply With Quote
  #5  
Old 06-08-2006, 02:02 PM
jbargs jbargs is offline
Disabled
 
Join Date: Dec 2005
Posts: 37
Quote:
Originally Posted by lpmusic
Yes, I read what he said. I'm saying there's no point in doing so if you host all the dns zone files for the domains. Why would you want to have to make your dns servers answer more queries? Granted, it probably wouldn't be a huge increase in load but it's more than if you just used A records all the way around.

Your idea works only if you host all of the zone files yourself. But what happens when 50 of your customers register domain names and manage their DNS records via their registrar (like Register.com). If they point their www and mail services to the IP of your server (123.123.123.123) then all 50 customers will need to edit their DNS if your server changes IP. But if they point to the name of your server (server1.isp.com) then the 50 clients won't need to do anything. The only necessary DNS edit will be the zone file for isp.com

Reply With Quote
  #6  
Old 06-08-2006, 05:17 PM
lpmusic lpmusic is offline
Junior Guru
 
Join Date: Apr 2004
Posts: 202
From above...
Quote:
Originally Posted by lpmusic
(presuming you host the DNS of course)
Sure CNAME's are nice if you have to change IPs, but why would you have to in the first place if this is in a datacenter (aside from a datacenter move which would probably have you worried about bigger problems).


Reply With Quote
  #7  
Old 06-08-2006, 07:45 PM
jbargs jbargs is offline
Disabled
 
Join Date: Dec 2005
Posts: 37
Quote:
Originally Posted by lpmusic
Sure CNAME's are nice if you have to change IPs, but why would you have to in the first place if this is in a datacenter (aside from a datacenter move which would probably have you worried about bigger problems).
Hey, all big problems start out as small problems. An ounce of prevention is worth a pound of cure.

Changing IP's:...
1. DC customers do change IP's. Not often, quite rare, but it does happen.
2. Server failover to other locations outside of your DC, city, state or country.
3. IPv6 migration
4. Moves within a DC and between DC's.
5. If your IPs become blacklisted or something. Not due to yourself but someone in a neighboring subnet.

All in all using CNAMES whereever possible is always a good idea. It is less of a factor if:
1. You are an ISP and have your OWN IP space from ARIN.
2. You host and manage your own name servers.

Reply With Quote
  #8  
Old 06-09-2006, 02:10 AM
lpmusic lpmusic is offline
Junior Guru
 
Join Date: Apr 2004
Posts: 202
Here's a fun thread:
http://www.webhostingtalk.com/archiv...d/34264-1.html

Anycase, whatever you do, just make sure you don't use CNAME's for your MX record

Reply With Quote
  #9  
Old 06-09-2006, 10:12 AM
jbargs jbargs is offline
Disabled
 
Join Date: Dec 2005
Posts: 37
Quote:
Originally Posted by lpmusic
Here's a fun thread:
http://www.webhostingtalk.com/archiv...d/34264-1.html

Anycase, whatever you do, just make sure you don't use CNAME's for your MX record

I read the above referenced thread. If you do not know what you are doing and are not 100% familiar with DNS and how it works then you may have problems if you try to use CNAME records.

Done properly CNAME records will save you from tons of headaches and downtime. I'll write up some sample zone files and post here shortly.

Reply With Quote
  #10  
Old 06-09-2006, 11:23 AM
jbargs jbargs is offline
Disabled
 
Join Date: Dec 2005
Posts: 37
Some examples..

Here we go. Some examples: (omiting all of the details)

Zone file for ISP.com domain (use only A records)

MX = 123.123.123.6
www = 123.123.123.7
ftp = 123.123.123.7
mail = 123.123.123.6
www2 = 123.123.123.8
staging = 123.123.123.9
@ = 123.123.123.x (use only if all services run on a single IP)
* = 123.123.123.x (use only if all services run on a single IP)

Zone file for client.com domain (use only CNAME records)
MX = mail.isp.com
www = www.isp.com
mail = mail.isp.com
ftp = www.isp.com

All clients should use CNAMES. Since all clients point to ISP.com host names then a single change in the zone file for ISP.com will effect all clients. Thus it will not be necessary to edit/change client zone files.

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
3 Ways GlowTouch Can Help You Grow Your Business Leveraging Amazon Web Services Webinars 2013-05-17 13:17:18
Lead Generation Part 1 – Form Fills Blog 2012-11-16 09:03:48
How Website Design Affects Conversion Rates Blog 2012-09-28 13:52:36
Web Host Clicktostart Goes Beyond Technical Support with Free Marketing Support Web Hosting News 2012-06-21 13:52:45
Website usability – 10 tips for getting it right Blog 2012-04-27 14:11:03


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?