Jump to content


Photo

DNS settings?


  • Please log in to reply
9 replies to this topic

#1 michaellunsford

michaellunsford
  • Members
  • PipPipPip
  • Advanced Member
  • 1,023 posts
  • LocationLouisiana, USA

Posted 19 July 2006 - 08:28 PM

Short of buying the DNS for dummies book... I am trying to get a few different domain names to forward to a single domain -- http, https, ftp, email, everything...

does anyone know how to accomplish this?

example.com (main domain)
example1.com (forwards to example.com)
example2.com (forwards to example.com)

On the e-mail front, it is my hope that an email going to bob@example2.com would end up in bob@example.com's inbox. Also, any www.example2.com traffic would just go to www.example.com

why? plesk charges per domain -- I'd hate to blow five domain licenses on a single domain. Also, manually forwarding each individual email address in plesk seems like a waste of time.

thoughts?

#2 akitchin

akitchin
  • Staff Alumni
  • Advanced Member
  • 2,516 posts
  • LocationCalgary, AB, Canada

Posted 19 July 2006 - 08:46 PM

my guess would be to forward all of the domains to the name servers for the original domain.  then again, i'm not a DNS guy, so this is a shot in the dark.

#3 michaellunsford

michaellunsford
  • Members
  • PipPipPip
  • Advanced Member
  • 1,023 posts
  • LocationLouisiana, USA

Posted 19 July 2006 - 10:42 PM

the name server configuration is what I'm toying with...

i have to change the following settings:

ns, mx, and "a" records. the NS records I am assuming are name servers (no problem there)
mx is set to "mail" -- which apparently is just mail.example.com
I'd like to redirect the "a" records to the main domain name. So far, it doesn't like anything but an IP address.

#4 tomfmason

tomfmason
  • Staff Alumni
  • Advanced Member
  • 1,696 posts
  • Locationstealing your wifi

Posted 01 August 2006 - 01:49 PM

Now I had this very same issue with my domains. I have mydomain.com, .net, .org, and .biz. All pointing to mydomain.com. Like you I thought that I would need to use the zone file to do this but no. If they are all on the same server then all you have to do is, in your httpd.conf or mode_rewrite point them to the same directory. The same goes for any subdomains.

 <VirtualHost *:80>
ServerName domain.com
ServerAlias www.domain.com
DocumentRoot "path\www\domain\public"
</VirtualHost>

 <VirtualHost *:80>
ServerName domain.net
ServerAlias www.domain.net
DocumentRoot "path\www\domain\public"
</VirtualHost>

#continue this for as many as needed
#the vhosts are very simple are only meant to be an example

or in your named.conf you could use the same zone file for all of the domians like this.
zone "domain.com" IN {
	type master;
	file "domain.com.zone";
};

zone "domain.net" IN {
	type master;
	file "domain.com.zone";
};

zone "domain.org" IN {
	type master;
	file "domain.com.zone";
};

zone "domain.biz" IN {
	type master;
	file "domain.com.zone";
};

This would have the same out come but would be alot easier then doing this with apache. I would suggest doing it this way

Hope this Helps,
Tom

Traveling East in search of instruction, and West to propagate the knowledge I have had gained.

current projects: pokersource

My Blog | My Pastebin | PHP Validation class | Backtrack linux


#5 michaellunsford

michaellunsford
  • Members
  • PipPipPip
  • Advanced Member
  • 1,023 posts
  • LocationLouisiana, USA

Posted 01 August 2006 - 02:00 PM

very good info. Thanks for the reply.

an interesting new feature of plesk 8 (which I have also just become aware of) is the alias feature. Odd, though, it does not change the httd.conf file (I wonder what it does change?). Plesk will also do mail -- but I'd really like to know how to accomplish this (as I'm not terribly eager to pay sw-soft for every domain I own). Would it be as simple as adding a new entry for ports 110 and 995?

#6 tomfmason

tomfmason
  • Staff Alumni
  • Advanced Member
  • 1,696 posts
  • Locationstealing your wifi

Posted 01 August 2006 - 02:01 PM

I am assuming that it changes the masters file like my second example

Traveling East in search of instruction, and West to propagate the knowledge I have had gained.

current projects: pokersource

My Blog | My Pastebin | PHP Validation class | Backtrack linux


#7 tomfmason

tomfmason
  • Staff Alumni
  • Advanced Member
  • 1,696 posts
  • Locationstealing your wifi

Posted 01 August 2006 - 02:05 PM

I have very little expernece with plesk. If I were to use a hosting controler I would use h-sphere. Beause it can give the apperance of a dual platform hosting solution.

Traveling East in search of instruction, and West to propagate the knowledge I have had gained.

current projects: pokersource

My Blog | My Pastebin | PHP Validation class | Backtrack linux


#8 michaellunsford

michaellunsford
  • Members
  • PipPipPip
  • Advanced Member
  • 1,023 posts
  • LocationLouisiana, USA

Posted 01 August 2006 - 02:13 PM

ahh, the named.conf (the file that plesk rewrites from time to time). Looks like I need another server without plesk.

as for h-sphere, I really don't have that much control over the leased server -- short of installing it myself from ssh. As my knowledge grows of how these things work, I am looking forward to doing it all myself (no plesk). Of course, there is always the dread of someone exploiting my ignorance and hacking root access.

Any suggested reading on how to setup and maintain a web server without a hosting controller?

#9 tomfmason

tomfmason
  • Staff Alumni
  • Advanced Member
  • 1,696 posts
  • Locationstealing your wifi

Posted 01 August 2006 - 02:26 PM

First what I do is store all of my zone and vhost info in a database. Then in the httpd.conf file I include a file called vhosts.conf(all of my virtual host information). Then I use the standard fwrite and fread with some mysql querys to update this infomation. This is very simple but it suits mine and my clients needs.

Traveling East in search of instruction, and West to propagate the knowledge I have had gained.

current projects: pokersource

My Blog | My Pastebin | PHP Validation class | Backtrack linux


#10 tomfmason

tomfmason
  • Staff Alumni
  • Advanced Member
  • 1,696 posts
  • Locationstealing your wifi

Posted 01 August 2006 - 02:28 PM

Also, a very good data center with some of the best prices I have ever seen is Calpop This is what I use for two of my colocation servers.

Traveling East in search of instruction, and West to propagate the knowledge I have had gained.

current projects: pokersource

My Blog | My Pastebin | PHP Validation class | Backtrack linux





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users