一个域名是否可能有多个对应的IP地址? [英] Is it possible that one domain name has multiple corresponding IP addresses?
问题描述
例如,当我们连接到 www.example.com
时,首先我们尝试连接到 192.0.2.1
.如果第一次尝试失败,那么我们尝试192.0.2.222
.
For example, when we connect to www.example.com
, at first we try to connect to 192.0.2.1
. And if first try fails, then we try 192.0.2.222
.
有可能吗?一个域名可以注册多个备份IP吗?
Is it possible? Can we register multiple backup IP addresses for one domain name?
推荐答案
这是循环 DNS.这是一个非常简单的负载平衡解决方案.通常 DNS 服务器会为每个传入的 DNS 请求轮换/混洗 DNS 记录.不幸的是,这不是故障转移的真正解决方案.如果其中一台服务器出现故障,一些访问者仍将被定向到该故障服务器.
This is round robin DNS. This is a quite simple solution for load balancing. Usually DNS servers rotate/shuffle the DNS records for each incoming DNS request. Unfortunately it's not a real solution for fail-over. If one of the servers fail, some visitors will still be directed to this failed server.
这篇关于一个域名是否可能有多个对应的IP地址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!