michaellunsford Posted July 19, 2006 Share Posted July 19, 2006 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.comwhy? 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? Quote Link to comment https://forums.phpfreaks.com/topic/15076-dns-settings/ Share on other sites More sharing options...
akitchin Posted July 19, 2006 Share Posted July 19, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/15076-dns-settings/#findComment-60645 Share on other sites More sharing options...
michaellunsford Posted July 19, 2006 Author Share Posted July 19, 2006 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.comI'd like to redirect the "a" records to the main domain name. So far, it doesn't like anything but an IP address. Quote Link to comment https://forums.phpfreaks.com/topic/15076-dns-settings/#findComment-60688 Share on other sites More sharing options...
tomfmason Posted August 1, 2006 Share Posted August 1, 2006 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.comServerAlias www.domain.comDocumentRoot "path\www\domain\public"</VirtualHost> <VirtualHost *:80>ServerName domain.netServerAlias www.domain.netDocumentRoot "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 wayHope this Helps,Tom Quote Link to comment https://forums.phpfreaks.com/topic/15076-dns-settings/#findComment-67026 Share on other sites More sharing options...
michaellunsford Posted August 1, 2006 Author Share Posted August 1, 2006 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? Quote Link to comment https://forums.phpfreaks.com/topic/15076-dns-settings/#findComment-67031 Share on other sites More sharing options...
tomfmason Posted August 1, 2006 Share Posted August 1, 2006 I am assuming that it changes the masters file like my second example Quote Link to comment https://forums.phpfreaks.com/topic/15076-dns-settings/#findComment-67032 Share on other sites More sharing options...
tomfmason Posted August 1, 2006 Share Posted August 1, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/15076-dns-settings/#findComment-67035 Share on other sites More sharing options...
michaellunsford Posted August 1, 2006 Author Share Posted August 1, 2006 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? Quote Link to comment https://forums.phpfreaks.com/topic/15076-dns-settings/#findComment-67036 Share on other sites More sharing options...
tomfmason Posted August 1, 2006 Share Posted August 1, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/15076-dns-settings/#findComment-67046 Share on other sites More sharing options...
tomfmason Posted August 1, 2006 Share Posted August 1, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/15076-dns-settings/#findComment-67050 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.