I bought a domain name on godaddy.com let's call it www.website.com
, but my server has a dynamic ip, how do I resolve this issue?
What I've tried:
get a dns account at dyndns.com let's call it dns.dyndns.com
, so I set up godaddy to forward the domain to dns.dyndns.com
.
problem: When the user goes to www.website.com
, they see dns.dyndns.com
in the url bar. Bad
So then I set up the forwarding on godaddy to forward with domain masking, but then the problem is now that users can't even see url paths/get queries/ or hash marks anymore!
`www.website.com/folder/search?id=4#ajax=4` becomes just
www.website.com in the url bar. bad!
What do I do?
EDIT:
Ok so, say my godaddy domain name is mysite.com and I have a dyndns account called redirect.com. I set up a cname record on www.mysite.com to go to blah.redirect.com. This works, but when I go to www.mysite.com it shows me the contents of www.redirect.com instead of the contents on blah.redirect.com, what gives?
My suggestion would be to move your name servers to DynDNS, set up your DNS records there, and install one of their dynamic DNS clients somewhere on your local network to keep your dynamic ip address in sync with your DNS records. I use DynDNS and host 6 web sites at home using their dynamic DNS client.
You don't want domain masking, you want something like a CNAME record. You would have to look up in GoDaddy's help about how to add it, but it's a standard DNS feature that they certainly support.
Assuming this is a web server at home, I'm 80% sure your router will be capable for dyndns. Check your routers manual on how to use it, by it probably involves going to 192.168.0.1, clicking DNS and entering the details for dyndns.
Now there are two things that could happen. Either you have been given a dedicated ip from dyndns that will resolve to your router (where you logged in). Put that on you're DNA record do yoursite.com. Or you have been given a free sub domain such as myfreeaccount.dyndns.org and you are being a cheap skate. Pay the money, get the dedicated IP or DnS service.
I was facing this same issue and, after finding a powershell script that did the update, I decided to create an application to automatically update the IP of the DNS records on GoDaddy, pretty much like what DynDNS does, the difference is that I don't have to pay for another service to do that for me anymore.
It's a Windows application though, hopefully it will suit you as well: https://github.com/leandrokoiti/GoDaddyDnsUpdater
This is pretty easy in two steps
host.hopto.org
as your site namehost.hopto.org
.Hope this helps
I wrote a little python script to update the A record. It can be found in this public repo.
https://bitbucket.org/MattTYXM/godaddy_duc/src/9a4bdc6efa9d406029c49f331e1d3fa99bce8db9/godaddy_update.py?at=master&fileviewer=file-view-default