大网数据广告活动
网站运营与故障问答

Buy domain without static, public IP address

· 52CE 我爱测

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 i…

问题原文

原帖链接 · 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.)

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2016-11-13)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。