1 | ERROR 2005 (HY000): Unknown MySQL server host 'xxxxxxxx.ap-northeast-1.rds.amazonaws.co' (0) |
上記のようにRDSのエンドポイントに接続できない場合は以下のようにデバッグをすること。ただしルーター直にアクセスできなくなるので変更したい場合は戻すこと。
- 確認
1 2 3 4 5 | $ nslookup xxxxxxxx.ap-northeast-1.rds.amazonaws.com Server: xxxxxxxxxxxxx Address: xxxxxxxxxxx ** server can't find xxxxxxxxxxx.ap-northeast-1.rds.amazonaws.com: REFUSED |
- Mac>システム環境設定>ネットワーク>Wi-Fi>詳細>DNS>8.8.8.8 and 8.8.4.4を追加
- 下記のように名前解決できれば接続可能。
1 2 3 4 5 6 7 8 9 | $ nslookup xxxxxxxxxxxx.ap-northeast-1.rds.amazonaws.com Server: 8.8.8.8 Address: 8.8.8.8#53 Non-authoritative answer: xxxxxxxxxxxxx.ap-northeast-1.rds.amazonaws.com canonical name = xxxxxxxxxxxxx.ap-northeast-1.rds.amazonaws.com. xxxxxxxxxxxxx.ap-northeast-1.rds.amazonaws.com canonical name = xxxxxxxxxxxxx.ap-northeast-1.compute.amazonaws.com. Name: xxxxxxxxxxxxx.ap-northeast-1.compute.amazonaws.com Address: xxxxxxxxxxxxx |
Was this helpful?
0 / 1
1989年生まれのSRE。ホスティングから大規模なアドテクなどのインフラエンジニアとして携わる。現在はサービスの信頼性向上、DevOps、可用性、レイテンシ、パフォーマンス、モニタリング、オブザーバビリティ、緊急対応、AWS/Azureでのインフラ構築、Docker開発環境の提供、Kubernetes保守、インフラコード化、新技術の検証、リファクタリング、セキュリティ強化などを担当している。個人開発では「夫婦、パートナー向け家事管理サービス/famii」をCakePHPで開発中。個人事業主では数社サーバー保守とベンチャー企業のインフラコンサルティングやMENTAで未経験者にインフラのコーチング/コミュニティの運用を実施している。また、「脆弱性スキャナVuls」のOSS活動もしており、自称エバンジェリスト/技術広報/テクニカルサポート/コントリビュータでもある。