Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 26th January 2013, 21:05
darinpeterson darinpeterson is offline
HowtoForge Supporter
 
Join Date: Nov 2011
Posts: 153
Thanks: 35
Thanked 13 Times in 13 Posts
Default Configuring DNS for Primary Servers In Multi-Server Setup

Hi,

I have read many of the howto documents regarding multi-server and DNS server setup, but none of them are clear on configuring DNS records for these primary servers.

The DNS servers are working fine and I have setup the DNS records at my hosting provider. I have created websites on my multi-server setup and they are working fine.

Here is where I have trouble, say I have the following primary servers setup in my configuration:

web.server.com - 1.2.3.4
db.server.com - 1.2.3.5
mail.server.com - 1.2.3.6
git.server.com - 1.2.3.6
ns1.server.com - 1.2.3.7
ns2.server.com - 1.2.3.8

In ISP Config 3, what DNS records are needed to do the following:

(1) Create records to access web.server.com via https://www.server.com:8080 instead of https://1.2.3.4:8080

(2) Create records that will make use of db.server.com as well as 1.2.3.5.

(3) Create records that will allow me and my clients to access my mail server like this https://mail.server.com. I don't even think the server is setup properly to access webmail via https://1.2.3.6, but that information was not provided in the howto documentation.

(4) Create records that will allow me to access my git server via git.server.com instead of 1.2.3.6.

These are the howto documents that I referred to during the multi-server setup, and I am unable to complete the setup with the information provided:

http://www.howtoforge.com/virtual-mu...th-ispconfig-3

http://www.howtoforge.com/multiserve...th-ispconfig-3

http://www.howtoforge.com/how-to-run...debian-squeeze

Is there someone who can help me complete this setup?

Thanks in advance...

Darin
Reply With Quote
Sponsored Links
  #2  
Old 27th January 2013, 00:02
pititis pititis is offline
Senior Member
 
Join Date: Dec 2010
Location: München
Posts: 364
Thanks: 39
Thanked 90 Times in 68 Posts
Default

In ispconfig:

Step 1 - Add a zone for server.com
Step 2 - Click on the new zone and add an A record for each host.

Example for the host web.server.com (A record dialog):

Hostname: web
Ip Address: 1.2.3.4
TTL: 86400


Ready!
Reply With Quote
The Following User Says Thank You to pititis For This Useful Post:
darinpeterson (27th January 2013)
  #3  
Old 27th January 2013, 00:54
darinpeterson darinpeterson is offline
HowtoForge Supporter
 
Join Date: Nov 2011
Posts: 153
Thanks: 35
Thanked 13 Times in 13 Posts
Default Server Now Working! Nice!

Thank you pititis...

That worked perfectly. I entered A records for mail, db, web, git, and also ns1, and ns2.

Maybe the problem was that I did not add A records for ns1 and ns2? I thought that was taken care of on the side of my host?

After entering the A records, I entered a CNAME record for www to web. Now I can do https://www.server.com:8080...

ONE MORE QUESTION:
When creating a new website and new DNS records, how do I correctly point the user's site to mail.server.com?

Example: I create a domain for client.com. What will the DNS records look like for their email?
Reply With Quote
  #4  
Old 27th January 2013, 01:26
pititis pititis is offline
Senior Member
 
Join Date: Dec 2010
Location: München
Posts: 364
Thanks: 39
Thanked 90 Times in 68 Posts
Default

Quote:
Originally Posted by darinpeterson View Post

Maybe the problem was that I did not add A records for ns1 and ns2?
Yes.

Quote:
Originally Posted by darinpeterson View Post

ONE MORE QUESTION:
When creating a new website and new DNS records, how do I correctly point the user's site to mail.server.com?

Example: I create a domain for client.com. What will the DNS records look like for their email?
Easy because mail.server.com is already defined. You must only add a MX record pointing to mail.server.com for the domain client.com

Example for the domain client.com (MX dialog):

Hostname: client.com.
Mailserver hostname: mail.server.com.
Priority: 10
TTL: 86400

(please note the dots)

However I like to use mail.client.com, it's easy for the customers. It's easy to remember and easy when configure the email software. If you want to use this, add an A record for mail pointing to the mail server ip and a MX record pointing to mail.client.com.

Cheers!
Reply With Quote
The Following User Says Thank You to pititis For This Useful Post:
darinpeterson (27th January 2013)
  #5  
Old 27th January 2013, 03:14
darinpeterson darinpeterson is offline
HowtoForge Supporter
 
Join Date: Nov 2011
Posts: 153
Thanks: 35
Thanked 13 Times in 13 Posts
Default Something is not quite right.

Thanks again for taking the time to reply to my question. This time, the solution didn't work. Now, I don't know whether that's due to improper configuration or that there is an issue with the mail server. ISP Config 3, says all green and that everything is good with the mail server.

Here is my configuration for client.com:

A Record for website:
client.com.
1.2.3.4

A Record for mail:
mail
1.2.3.6

A record for www:
www
1.2.3.4

MX record for mail:
client.com.
mail.client.com.

NS record:
client.com.
ns1.server.com.

NS record:
client.com.
ns2.server.com.

Do you recognize any issues with the configuration? Recommendations?
Reply With Quote
  #6  
Old 27th January 2013, 11:48
pititis pititis is offline
Senior Member
 
Join Date: Dec 2010
Location: München
Posts: 364
Thanks: 39
Thanked 90 Times in 68 Posts
Default

What is in your mail.log?
Reply With Quote
The Following User Says Thank You to pititis For This Useful Post:
darinpeterson (27th January 2013)
Reply

Bookmarks

Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPconfig setup - DNS, router and general access problems ingvar Installation/Configuration 6 31st July 2010 13:13
Debian 5 Ajax error + network interface always shutting down ev0css Installation/Configuration 3 5th June 2010 12:58
Webmail problems with only one domain? compner Installation/Configuration 14 16th February 2010 16:59
Xen on Ubuntu kmand HOWTO-Related Questions 17 5th March 2009 18:43
DNS Configuration Problems VMartins Installation/Configuration 10 24th July 2007 14:40


All times are GMT +2. The time now is 10:33.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.