Home > How-To Guides > Creating Virtual Host pointing to an IP on GoDaddy

Creating Virtual Host pointing to an IP on GoDaddy

Purpose: have a Virtual Host, vhost, subdomain, vanity host…pointing to a unique IP address, for example if you don’t have hosting service at GoDaddy.

There are a lot of documents explaining this but there have created a lot of confusion up here so I would like to clear things up.

If you want to accomplish what follows, read on.

Issue:
– GoDaddy as Domain Registrar, so you will use GoDaddy Domain Manager
– Hosting your sites somewhere, where the web server ip is 111.111.111.111
for example because you own a dedicated server or you have a fixed IP address
at home and you want to host your sites at your place
– Hosting subdomains, virtual hosts, vhosts etc on other IP addresses
for example:

http://www.mydomain.com > 101.101.101.1
http://dev.mydomain.com > 201.201.201.2
http://test.mydomain.com > 103.103.103.3

– Log yourself on GoDaddy Domain Manager and click on the domain you to work on
– Click on Total DNS Control
– Note that you have an A(Host) Record called “@” and pointing to a GoDaddy IP Address, then you have a CNAME Record called “@” and pointing to your virtual host “www”
– Click to edit the A(Host) “@” record and change the existing IP with the one you want for
http://www.mydomain.com, for example 101.101.101.1
– A dialog will appear to confirm the change has been recorded
– Click ADD NEW A RECORD button and type only “dev” for dev.mydomain.com, the enter the IP Address, for example 201.201.201.2 and confirm
– A dialog will appear to confir the change has been recorded
– Repeat this for each subdomain or virtual host you may want to add and then wait for 24-48 hours for the DNS to propagate

You may want to keep open a terminal window or a DOS Prompt window and

ping dev.mydomain.com

from time to time to see when you DNS has been updated. When it starts to reply, you can open your browser and point it to http://dev.mydomain.com and it will open the WebServer Default page on 201.201.201.2

Just create the new domain “dev.mydomain.com” on your server and the magic will happen

Enjoy

You may want to read also:

    Similar Posts:

    Categories: How-To Guides Tags: ,
    1. Drew
      November 27th, 2012 at 15:30 | #1

      Is there a way to do this but using a single external IP? Say your external IP is 111.111.111.111 and you want to point http://www.example.com and http://www.elpmaxe.com at the same machine running apache and have two different document roots, say /var/www/example.com and /var/www/elpmaxe.com. Is this a possibility? Or is it possible to resolve a domain name to a certain ip and port so I could send it to another machine using port forwarding in my firewall? The basic problem is I have several sites and only 1 IP. I don’t really care if I have to host them on several machines but I only have one external IP…

    2. June 10th, 2013 at 09:44 | #2

      Well…if we would need 1 IP for each domain…IPv6 would be out there since ages and it would be the standard….

      But it is not since we don’t need 1 IP for each domain and with 1 IP we can run several domains (hundreds if not more)

      It’s Apache’s job to identify the call for the specific domain and to display its start page

      But I am not sure what you are asking and it seems you have to work on your Apache and not the IP redirection in GoDaddy

      Hope the above helps!

    1. No trackbacks yet.