WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > IT Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

IT Discussion Forum Having IT issues? Got IT questions? Who doesn't? If you can't get your Apache to work with your MySQL or your php is choking on your ODBC... Let's see if we can help you come up with some ideas.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-11-2004, 12:32 PM
WebProWorld New Member
 

Join Date: Jul 2003
Posts: 4
bishop RepRank 0
Default Two domain names - one hosting acct

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
Reply With Quote
  #2 (permalink)  
Old 02-11-2004, 04:52 PM
Dragonsi's Avatar
WebProWorld Veteran
 

Join Date: Dec 2003
Location: Wales (UK)
Posts: 343
Dragonsi RepRank 0
Default

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:

Quote:
<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.
__________________
www.westwalesweb.com
Website development & ICT solutions.
Reply With Quote
  #3 (permalink)  
Old 02-12-2004, 09:46 AM
netman4ttm's Avatar
WebProWorld Veteran
 

Join Date: Aug 2003
Location: Virginia
Posts: 386
netman4ttm RepRank 1
Default

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.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > IT Discussion Forum
Tags: , , , ,



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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0