DNS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

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:
  #1  
Old October 23rd, 2012, 04:45 AM
Ruski Ruski is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2007
Posts: 28 Ruski User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 41 m 16 sec
Reputation Power: 0
Domain A Record

Hi All,

I would like to know if I can share a domain between 2 different hosts, one to manage email and the other to show the actual site.

If I just change the A record of the domain to point to the new IP address where the website sits, would the email sub domain still work with the current host?

Kind regards,
Alex

Reply With Quote
  #2  
Old October 23rd, 2012, 12:10 PM
couttsj couttsj is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2011
Posts: 167 couttsj User rank is Sergeant Major (2000 - 5000 Reputation Level)couttsj User rank is Sergeant Major (2000 - 5000 Reputation Level)couttsj User rank is Sergeant Major (2000 - 5000 Reputation Level)couttsj User rank is Sergeant Major (2000 - 5000 Reputation Level)couttsj User rank is Sergeant Major (2000 - 5000 Reputation Level)couttsj User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 2 Days 17 h 26 m 18 sec
Reputation Power: 43
The "A" record points to the Web site.

The "MX" record points to the Mail server.

If the "MX" record is missing, the "A" record is used.

Reply With Quote
  #3  
Old October 24th, 2012, 05:12 AM
Heatleakz Heatleakz is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Location: Stockholm, Sweden
Posts: 16 Heatleakz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 27 m 22 sec
Reputation Power: 0
Send a message via XFire to Heatleakz
Quote:
Originally Posted by Ruski
Hi All,

I would like to know if I can share a domain between 2 different hosts, one to manage email and the other to show the actual site.

If I just change the A record of the domain to point to the new IP address where the website sits, would the email sub domain still work with the current host?

Kind regards,
Alex


Is this what you're looking for:

Webmail: webmail.domain.tld
Regular website: www.domain.tld

You want other users to be able to use webmail.domain.tld while e.g viewing their mail inbox or sending a mail?

Your user's mail addresses will work as following:
user@domain.tld

not as: webmail.domain.tld

The subdomain has nothing to do with the domain where people send mail to, after all, it's the mail server (Dovecot/Postfix) that decides the default host/domain to serve mail on.

To do this, follow my instructions:

1). Your DNS
[webmail.domain.tld] [86400] IN [A] [server ip]

2). Edit /etc/apache2/apache2.conf or /etc/httpd/conf/httpd.conf (path differs depending on your operating system)
Code:
NameVirtualHost xxx.xxx.xxx.xx:443
<VirtualHost xxx.xxx.xxx.xx:443>
ServerName webmail.domain.tld
DocumentRoot /var/webmail/
<Directory "/var/webmail/">
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>


3). Restart apache (as sudoer), Note: apache2 is commonly used if you're on Ubuntu or Debian, httpd may be used if on RHEL or CentOS or similar.
Code:
service apache2 restart
service httpd restart

Reply With Quote
  #4  
Old November 28th, 2012, 06:57 AM
vincewicks vincewicks is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2012
Location: Brooklyn, NYC
Posts: 24 vincewicks User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 52 sec
Reputation Power: 0
Send a message via AIM to vincewicks
Yes you can. You need to edit Zone file. IP address of webserver - A record. IP address of mail server - MX record.

Reply With Quote
  #5  
Old December 20th, 2012, 01:42 AM
renika renika is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2012
Posts: 4 renika User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 32 m 51 sec
Reputation Power: 0
yes you have to edit your Zone file

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationDNS > Domain A Record

Developer Shed Advertisers and Affiliates



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 | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap