问题原文
原帖链接 · boolean.is.null · CC BY-SA 3.0
I'm about to buy a domain, just for a personal website, where the availability is not that crucial at all.
As of now, I don't have a static, public IP.
My question is, if I could buy the domain (e.g. example.com) and configure it to point to my DynDNS (or equivalent services) domain name (e.g. mocksite.dyndnsprov.com), ultimately allowing someone to visit example.com, without having the DynDNS name apparent in the browser?
For instance, with the scenario in place, when someone enters example.com in their browser, the domain resolves to mocksite.dyndnsprov.com, which again resolves to my current public home IP address. The user is shown the content hosted on my home server and is displayed the example.com address in the address bar of his browser.
已采纳解答
原帖链接 · DocRoot · CC BY-SA 3.0
I'm not sure that you can do this for the apex (bare) domain (unless your DNS provider specifically supports this), however, you could create a CNAME record for a subdomain that points to your DynDNS domain name.
home.example.com CNAME mocksite.dyndnsprov.com
Your DynDNS domain "contains" an A record that points to your (dynamic) IP address (which is automatically updated using some software on the client).
So, http://home.example.com will now direct traffic to your home server. (You still need to configure your home network and server to accept/route such requests.)
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
