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 8th March 2007, 13:21
smathaven smathaven is offline
Member
 
Join Date: Oct 2006
Posts: 48
Thanks: 1
Thanked 0 Times in 0 Posts
Default server configuration

i have up a web server and a mail server using debian on the same pc. Now i want to break down the webserver and mail server into two different Pcs, i.e have the web server on one PC and the mail server on a second PC. I will be very grateful if you could help by telling me what configuration i have to do, i have searched everywhere but i still dont know how to do it.

My main problem is i dont know what to do with the DNS,

* Should i intall it on the web server? If i do, what configuration
do i have to do with the mail server? How do i access the
mailserver from the Internet? (Through Phpmyadmin). How do iconfigure apache on the mailserver.

* My web server is also using mysql and phpmyadmin.

Can you please help me how to setup my dns, and i have only one IP address? . can i have one web server on this address "http://www.npccmauritius.com" and "http://mailserver.npccmauritius.com/

Thanking you in advance
Reply With Quote
Sponsored Links
  #2  
Old 9th March 2007, 17:21
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

Let's assume your servers have the IP addresses 1.2.3.4 (webserver) and 1.2.3.5 (mailserver).
In DNS, you'd create the following records:

npccmauritius.com. A 1.2.3.4
www.npccmauritius.com. A 1.2.3.4
mailserver.npccmauritius.com. A 1.2.3.5
npccmauritius.com. MX 0 mailserver.npccmauritius.com.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 13th March 2007, 07:34
smathaven smathaven is offline
Member
 
Join Date: Oct 2006
Posts: 48
Thanks: 1
Thanked 0 Times in 0 Posts
Default

can i create a new website with the following address http://mailserver.npccmauritius.com and a new mail server xx@mailserver.npccmauritius.com from the domain npccmauritius.com ?
if yes how do i do so?
thanks
Reply With Quote
  #4  
Old 14th March 2007, 22:36
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

Quote:
Originally Posted by smathaven
can i create a new website with the following address http://mailserver.npccmauritius.com
Yes.

Quote:
Originally Posted by smathaven
and a new mail server xx@mailserver.npccmauritius.com from the domain npccmauritius.com ?
if yes how do i do so?
thanks
xx@mailserver.npccmauritius.com is an email address, not a hostname.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 15th March 2007, 07:42
smathaven smathaven is offline
Member
 
Join Date: Oct 2006
Posts: 48
Thanks: 1
Thanked 0 Times in 0 Posts
Default

How do i create the website, i want to put it on another pc? how do i add it to my current dns server configuration. is this setting up a subdomain?
Reply With Quote
  #6  
Old 15th March 2007, 16:14
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

Quote:
Originally Posted by smathaven
How do i create the website, i want to put it on another pc?
Do you use a control panel like ISPConfig?
If not, take a look here: http://httpd.apache.org/docs/2.0/vhosts/name-based.html

Quote:
Originally Posted by smathaven
how do i add it to my current dns server configuration. is this setting up a subdomain?
If you use BIND, take a look at this tutorial: http://www.howtoforge.com/traditional_dns_howto
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 16th March 2007, 13:57
smathaven smathaven is offline
Member
 
Join Date: Oct 2006
Posts: 48
Thanks: 1
Thanked 0 Times in 0 Posts
Default

I have configured my dns server and added the following configuration to it:
$ORIGIN test.mailserver.npccmauritius.com
test IN A 192.168.192.42
IN MX 10 test.mailserver.npccmauritius.com.

check IN CNAME test.mailserver.npccmauritius.com.


when i ping check.npccmauritius.com, it responds but i get the content of what is on www.npccmauritius.com

how do i redirect it to the check.npccmauritius.com? can i add it in the Virtual host part in Apache? I have tried to add it in the httpd.conf but it still redirects to www.npccmauritius.com. Sorry for all inconvenient caused, i am getting some light now
Thanks a lot for your help
Reply With Quote
  #8  
Old 17th March 2007, 22:57
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

Quote:
Originally Posted by smathaven
I have configured my dns server and added the following configuration to it:
$ORIGIN test.mailserver.npccmauritius.com
test IN A 192.168.192.42
IN MX 10 test.mailserver.npccmauritius.com.

check IN CNAME test.mailserver.npccmauritius.com.
Are you sure you want to use a local IP address for a DNS record?

Quote:
Originally Posted by smathaven
when i ping check.npccmauritius.com, it responds but i get the content of what is on www.npccmauritius.com

how do i redirect it to the check.npccmauritius.com? can i add it in the Virtual host part in Apache? I have tried to add it in the httpd.conf but it still redirects to www.npccmauritius.com. Sorry for all inconvenient caused, i am getting some light now
Thanks a lot for your help
Did you create an Apache vhost for check.npccmauritius.com? Because otherwise your requests go to the default vhost.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #9  
Old 19th March 2007, 09:02
smathaven smathaven is offline
Member
 
Join Date: Oct 2006
Posts: 48
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Is it wrong to add an internal IP in Dns?

I have added the following in the httpd.conf

NameVirtualHost 192.168.192.42
<VirtualHost 192.168.192.42>
ServerName check.npccmauritius.com
DocumentRoot /var/www/
</virtualHost>
but still it redirects to www.npccmauritius.com
Reply With Quote
  #10  
Old 19th March 2007, 11:18
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
 
Default

Quote:
Originally Posted by smathaven
Is it wrong to add an internal IP in Dns?

I have added the following in the httpd.conf

NameVirtualHost 192.168.192.42
<VirtualHost 192.168.192.42>
ServerName check.npccmauritius.com
DocumentRoot /var/www/
</virtualHost>
but still it redirects to www.npccmauritius.com
If noone else then poele in your local setup shall lookup the domain, then thats fine. If someone from the internet shall be able to lookup this domain, you will have to use a official (external) IP address.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
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
php Apps email not going through palkat General 8 21st September 2011 06:35
Statistic not working mzo Installation/Configuration 49 20th April 2011 13:19
ispconfig and mambo shajazzi Installation/Configuration 70 28th March 2006 20:29
Email - Ueb-Miau mazhar Installation/Configuration 5 21st December 2005 11:01
The Perfect Setup Suse 9.3 - Postfix problems new_bee05 HOWTO-Related Questions 20 25th November 2005 03:30


All times are GMT +2. The time now is 15:58.


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