DNS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationDNS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old December 30th, 2003, 05:52 AM
dugla dugla is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 16 dugla User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 m 37 sec
Reputation Power: 0
host name vs. alias : What is the difference?

Hello,

I have been unsuccessfully wrestling with the difference between the hostname of a machine and an alias for the domain name associated with that machine that appears as an A record in the DNS. Could someone please enlighten me?

For example, must a hostname for a machine also appear as an alias (CNAME) in the DNS? What is the best practices here?

Thanks,
Douglass Turner

Reply With Quote
  #2  
Old December 30th, 2003, 08:55 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Your system hostname should be in the format host.domain.com, not domain.com.

When you run the command hostname you should get the FQDN as host.domain.com. The command hostname -s gives you just the host part.

Your mail server name, website name, dns server name and the like, should always be FQDN. That said, using http://domain.com/ is non-standard. Some folks use domain.com as their MX, they are completely clueless. That'd interpret as domain being the host and com being the domain name, apparently they can't be the MX for the roots.

Quote:
must a hostname for a machine also appear as an alias (CNAME) in the DNS?

CNAME is being used by DNS illiterate admins who are completely clueless and lazy.
Say you run a mail server and apache on the same box, this box should have its system hostname set to mail.domain.com. This mail.domain.com should also have an A record in its domain.com's zone.
If this box runs www and DNS, you need to give DNS higher priority in its hostname and preferably set its hostname as ns1.domain.com.
Why so? Because ns1.domain.com is glued at roots even the dns is being down, ns1.domain.com is resolvable to an IP, which enhance reliability.
That said, your theimageengine.com as the MX is non-standard and decreases reliability.

Last edited by freebsd : December 30th, 2003 at 08:57 AM.

Reply With Quote
  #3  
Old December 30th, 2003, 09:18 AM
dugla dugla is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 16 dugla User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 m 37 sec
Reputation Power: 0
freebsd,

Umm. You didn't really answer my question. My goal is to be able to have {www, mail}.my-domain.com both point to the same IP address (the one I established via pairnic.com's nifty custom DNS server for my-domain.com).

I am not running a DNS on my machine. I am simply running a box in my home office connected via DSL to an ISP (not pairnic.com).

That said, I am still left with the issue of what hostname to use for my physical box: my-hostname.my-domain.com.

Are you saying I should not use CNAMEs for www and mail?

Should (must?) my-hostname appear as a CNAME.

Perhaps you could simple sketch the preferred setup since it sounds straightforward, I just don't happen to know it. Hostname's I get. Throwing DNS issues into the mix just hurts my brain.

-Douglass

Reply With Quote
  #4  
Old December 30th, 2003, 09:27 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
You didn't really answer my question
I already replied what you asked, unless you didn't ask correctly.
Quote:
That said, I am still left with the issue of what hostname to use for my physical box: my-hostname.my-domain.com.

Look, I already replied with
Code:
Say you run a mail server and apache on the same box, this box should have its system hostname set to mail.domain.com. 
This mail.domain.com should also have an A record in its domain.com's zone

Quote:
Are you saying I should not use CNAMEs for www and mail?

Should (must?) my-hostname appear as a CNAME.
There is no such thing as CNAME on earth any longer.
Quote:
Perhaps you could simple sketch the preferred setup since it sounds straightforward
You didn't mention this in your first post until now.
Anyway:
1) Set your hostname to mail.theimageengine.com. The command hostname should output the same thing. hostname -s should give you mail
2) Tell pairnic.com to add an A record for mail.theimageengine.com and www.theimageengine.com and theimageengine.com to point to your IP.
3) Tell them to use mail.theimageengine.com as the MX.

Reply With Quote
  #5  
Old December 30th, 2003, 09:52 AM
dugla dugla is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 16 dugla User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 m 37 sec
Reputation Power: 0
Ok, we're almost there.

At pairnic.com they have a form to add an MX Record. Here is what I entered:

Hostname: mail.theimageengine.com
Priority: 0
Mail Server: theimageengine.com

Correct?


By the way under Linux (SuSE at least)

hostname returns my-hostname (not my-hostname.mydomain.com)

hostname -l returns my-hostname.mydomain.com

dnsdomainname returns mydomain.com

and domainname returns nothing.

-Douglass

Reply With Quote
  #6  
Old December 30th, 2003, 10:52 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
No, your mail server should be the same as its hostname as mail.theimageengine.com. Like I said in my previous post, your domain is theimageengine.com, not com.
Quote:
hostname -l returns my-hostname.mydomain.com
Then your suse has a different hostname. It doesn't matter so long as you set your system hostname to mail.theimageengine.com

Last edited by freebsd : December 30th, 2003 at 11:01 AM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationDNS > host name vs. alias : What is the difference?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





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