Jump to content

Archived

This topic is now archived and is closed to further replies.

michaellunsford

DNS settings?

Recommended Posts

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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

[code]
<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
[/code]

or in your named.conf you could use the same zone file for all of the domians like this.
[code]
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";
};[/code]

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

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
I am assuming that it changes the masters file like my second example

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Also, a very good data center with some of the best prices I have ever seen is [url=http://www.calpop.com]Calpop[/url] This is what I use for two of my colocation servers.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.