View Full Version : Two domain names - one hosting acct
bishop
02-11-2004, 12:32 PM
Hi,
Is it possible or a good idea to put the same DNS names for 2 different domain names?
I want two domains to point to the existing website, but need the new domain to be the main site and the old domain name to be the pointer.
Trying to find a simple way to do it - rather than opening a new hosting and swapping all the files etc.
Thanks - hope I've explained it correctly.
Shawn
Dragonsi
02-11-2004, 04:52 PM
Hi bishop,
Have you tried emailing your hosting company and ask them to set up a perminant redirect on the old domain name?
Failing that, try using this meta tag on the old site:
<meta http-equiv="refresh" content="1;URL=http://www.newdomain.com" />
This will have to be on an index page under the old domain's directory and will refresh the browser after 1 sec to your new domain.
If your hosting package will not allow you to have 2 domains, try looking for another package or upgrade. There are plenty of cheap hosting packages that will allow several domains, each with the same DNS IP address (shared hosting).
Good luck.
netman4ttm
02-12-2004, 09:46 AM
Multible websites can easily share the same ip adresses.
This is the quick and dirty answer.
Using an examble of a Class C network, with x.com and y.com on server webby.xy.com this is the way I would do it.
192.168.1.1 = name server (biggy.xy.com)
192.168.1.2 = slave name server (quicky.xy.com)
192.168.1.3 = web server (webby.xy.com)
named.conf would have 2 entries
zone x.com
zone y.com
going to db.x.com and db.y.com respectively.
these databases would show biggy as the SOA
and the following
db.x.com
webby IN A 192.168.1.3
;Aliases
www IN CNAME webby.xy.com.
db.y.com
webby IN A 192.168.1.3
;Aliases
www IN CNAME webby.xy.com.
This is not a wotking examble the network for one thing is unusable and neither named.conf nor the databases are complete. but the lines are correct.
The web server, if configured properly will responde with the correct page by checking for the domain name.
When you register the domain name you can use the same ip addresses for both domains.