简体   繁体   English

RDS DNS查找错误

[英]RDS DNS lookup error

Does anyone know how to turn off DNS lookup on an AWS RDS server, MySQL? 有谁知道如何关闭AWS RDS服务器上的DNS查找,MySQL? Keep getting the same error, and its giving me 504 errors. 继续得到相同的错误,它给我504错误。

2014-07-31 12:39:44 14174 [Warning] IP address '222.127.85.158' could not be resolved: Name or service not known 2014-07-31 12:39:44 14174 [警告]无法解析IP地址'222.127.85.158':姓名或服务未知

Regards, 问候,

Bob 短发

I don't think you can. 我认为你不能。 It's better to use hostnames in the long run anyways. 不管怎样,最好长期使用主机名。 Can't think of many reasons why you'd only want to use IP. 想不出为什么只想要使用IP的原因很多。

While you should be able to access your RDS instance via its IP, you shouldn't do it. 虽然您应该能够通过其IP访问您的RDS实例,但您不应该这样做。

  • Amazon does not guarantee that the IP will always be the same. 亚马逊不保证IP始终保持不变。
  • Amazon's failover (multi AZ) switches the IP address behind the DNS entry. 亚马逊的故障转移(多AZ)切换DNS条目背后的IP地址。 So can't use the IP address with a failover setup 因此无法在故障转移设置中使用IP地址

You can turn it off in your my.cnf file. 您可以在my.cnf文件中将其关闭。

See this post: https://www.percona.com/blog/2008/05/31/dns-achilles-heel-mysql-installation/ 看到这篇文章: https//www.percona.com/blog/2008/05/31/dns-achilles-heel-mysql-installation/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM