了解 dig 输出 - 这会重定向浏览器吗?

发布于 2024-09-12 23:11:06 字数 502 浏览 3 评论 0原文

我正在尝试在 example.com 域上设置子域 elstest1 以重定向到某个 IP。按照网上的一些说明,我创建了一条 A DNS 记录。

目前,如果我这样做:

dig elstest1.example.com

我得到:

...
...
;; ANSWER SECTION:
elstest1.example.com. 14400  IN      A       994.93.999.990

(IP 地址隐藏)

将前往 http://elstest1.example.com< /a> 带我到上面的IP地址吗?

它目前无法正常工作,但这是可以预料的,因为网络服务器没有启动+我刚刚进行了 DNS 更改等。但我想确保上述 DNS 设置是他们需要的。

I'm trying to setup a subdomain elstest1 on my example.com domain to redirect to a certain IP. Following some instructions on the web, I created an A DNS record.

Currently, if I do this:

dig elstest1.example.com

I get:

...
...
;; ANSWER SECTION:
elstest1.example.com. 14400  IN      A       994.93.999.990

(IP address hidden)

Will going to http://elstest1.example.com take me to the IP address above?

Its not working presently, but that's to be expected because the web server isn't up + I just made the DNS changes, etc. But I want to make sure the above DNS settings are what they need to be.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

做个ˇ局外人 2024-09-19 23:11:06

是的,您的记录是正确的 - 这正是 A 记录的作用。

如果这个条目是全新的,那么它应该很快就会在互联网的其他地方可见。所谓的“否定答案”(即“该域不存在”)通常仅缓存 15 分钟左右,最坏的情况是几个小时。请参阅 RFC 2308

如果该条目以前存在,但刚刚获得该值,则可能需要更长时间,具体取决于 TTL 的(先前)值。为了安全起见,通常建议所有缓存最多需要一两天的时间来刷新先前的条目,然后获取新的条目。

Yes, your record is correct - that's exactly what an A record would do.

If this entry is brand new it should be visible very quickly across the rest of the internet. So called "negative answers" (i.e. "this domain does not exist") are usually only cached for 15 minutes or so, or at worst a few hours. See RFC 2308.

If the entry previously existed, but only just got this value it might take longer, depending on the (previous) value of the TTL. To be on the safe side it's normally suggested that it takes up to a day or two for all caches to flush the previous entry and then pick up the new one.

给妤﹃绝世温柔 2024-09-19 23:11:06

首先,您创建了一个别名,而不是重定向。别名指向 IP,而不是重定向到它。实际上,所有域都是别名。

其次,更改 DNS 记录需要一些时间。从 15 分钟到 1-2 天。发生这种情况是因为世界上有很多 DNS 服务器,而且它们都必须更新。

访问 http://elstest1.example.com 会将我带到上面的 IP 地址吗?< /p>

事实上,您的 ISP 的 DNS 将会更新。

First, you've created an alias, not redirect. Alias points to IP, not redirects to it. Actually, all domains are aliases.

Second, changing DNS records takes some time. From 15 minutes to 1-2 days. It happens because there are lots of DNS servers in the world, and they all have to be updated.

Will going to http://elstest1.example.com take me to the IP address above?

Indeed, after your ISPs DNS will update.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文