亚马逊ec2实例无法解析主机 [英] amazon ec2 instance unable to resolve host

查看:155
本文介绍了亚马逊ec2实例无法解析主机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一堆亚马逊ec2实例。今天,没有理由我可以确定,其中三个无法解决一个具体的网址。当我尝试 curl< url> 时,这三个实例说curl:(6)无法解析主机,而所有其他实例能够解析url和返回正确的数据。这只是特定的网址,以及所有其他网址工作正常。

I have a bunch of amazon ec2 instances. Today, for no reason I can determine, three of them became unable to resolve a specific url. When I try curl <url>, those three instances say "curl: (6) Could not resolve host", while all the other instances are able to resolve the url and return the correct data. It's only that specific url, as well - all other urls work fine.

这可能是什么原因造成的?我没有改变任何实例上的任何东西,所以这不是我做的。

What could have caused this? I haven't changed anything on any of the instances, so it's not something I did. How do I find out why it happened?

推荐答案

如果您不使用默认VPC或由VPC向导中,您需要确保已启用 DNS主机名 DNS解析选项。

If you’re not using the default VPC, or a VPC created by the VPC wizard, you’ll need to make sure that the DNS hostname and DNS resolution options are enabled.

这篇关于亚马逊ec2实例无法解析主机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆