Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

How can I host a website from my home machine? I have a DynDNS address so that even if my external IP changes, the machine is accessible.

Lets say, for example, the machine is accessible at example.dyndns-home.com (this is a free service from DynDNS). I've registered a domain name for my website from GoDaddy. Let's say that domain name is example.com

Right now, I've forwarded port 80 so I can enter example.dyndns-home.com from anywhere and I can see whatever I've hosted at my homebox.

How can I make it so that, when I enter www.example.com, I see the same thing? I want to see what I host on my home machine out on the internet via example.com.

share|improve this question

migrated from superuser.com Mar 8 '12 at 23:54

This question came from our site for computer enthusiasts and power users.

    
There should be an option from your domain registrar to let the domain point to something else, in this case your DynDNS address. –  slhck Mar 8 '12 at 19:35
    
Do you mean forwarding? so when someone says www.example.com, they are taken to example.dyndns-home.com ? –  hari Mar 8 '12 at 19:39
    
Personally, I don't like adding unnecessary hops if it can be avoided. You should be able to point your domain to the IP address of your home router. If your ISP provides a Static IP address then this would solve your problems. If not, you could always ask your ISP what the lease time of the IP addresses are and then ask if they have sticky ip addresses. Personally, I've swapped service packages, modems, and routers and never lost my IP address since it is a Sticky Dynamic IP. –  kobaltz Mar 8 '12 at 22:03

2 Answers 2

up vote 7 down vote accepted

Add a cname record to the DNS record for your domain, pointing from www.example.com to example.dyndns-home.com. I've only ever used one domain registrar (not Godaddy), but they have a neat web interface where you can update the DNS record.

Raw example:

www.example.com.
43200
IN
CNAME
example.dyndns-home.com.

Working example is provided, at least using Google's nameservers.

Edit (twice):

If you wanted http://example.com to work too, you must add a second entry from example.com to example.dyndns-home.com. This might be done by forwarding @.example.com, I don't know if that's standard or not.

share|improve this answer
    
Thanks Eroen. I do not want anyone to ever see example.dyndns-home.com in their address-bar or anywhere else. is that possible? –  hari Mar 8 '12 at 19:47
2  
Sure, as long as the web server claims to be www.example.com and does not redirect to example.dyndns-home.com. –  Eroen Mar 8 '12 at 19:52
1  
Thank you! I've just made this change. Let it propagate! I will report back. –  hari Mar 8 '12 at 20:05
1  
I don't know if you mean in the DNS record or on your computer, but if it works for the first case, you will likely break something if you change it. In the second case, you probably want to use Godaddy's servers while you are changing stuff, so you won't have to wait for caches to be refreshed before testing. –  Eroen Mar 8 '12 at 21:35
1  
Think of the nameserver records for your domain as the thing that advertises where your DNS records are. If you change your nameservers then the records on godaddy will do nothing, so you'd have to enter those records at the location you set the name server to. –  ridogi Mar 8 '12 at 21:49

Finally i know What is the problem ? For me My ISP block port 80 and 8080 So i configure My Website to work with another port For Example :

http://exapmle.dyndnsorg:5060

1- I register for 14 Trial Days in Dyn Standard Dns

2- I configure my domain with the DNS from dyndns

xxxx.dns.dyn.com
xxxx.dns.dyn.com
xxxx.dns.dyn.com
xxxx.dns.dyn.com

3- I create anew WebHop to forward my Domain To My DynDns Domain For Example

Host-name  : example.com    

Service    : WebHop 

Details    : http://example.dyndns.org:5060 
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.