【发布时间】:2016-11-28 00:07:54
【问题描述】:
我有一个带有 NGINX 和 Node.js 应用程序的 EC2 实例。
它具有 AWS 在创建实例时设置的默认公共 DNS 和公共 IP。
公共 DNS:ec2-xx-xx-xxx-xx.ap-southeast-2.compute.amazonaws.com
公共 IP:xx.xx.xxx.xx(与公共 DNS 中的 ec2-xx-... 相同)
我想制作这样的公共 DNS foo.ap-southeast-2.compute.amazonaws.com。也就是说,只需去掉 ec2-xx-xx-xxx-xx 部分并设置一些任意词即可。
我该怎么做?我正在尝试使用 Route53,但它没有成功:
有可能吗?我知道我可以使用弹性 IP 注册和使用像 example.com 这样的域名,但在这种特殊情况下,我想完全按照我上面写的那样进行设置。我想知道这是否可能,如果这是我做错了什么?我是否也应该在我的 EC2 中更改这些文件?
-rw-r--r-- 1 root root 92 Feb 20 2014 host.conf
-rw-r--r-- 1 root root 16 Apr 21 10:39 hostname
-rw-r--r-- 1 root root 649 Jul 12 21:43 hosts
-rw-r--r-- 1 root root 411 Mar 25 2015 hosts.allow
-rw-r--r-- 1 root root 711 Mar 25 2015 hosts.deny
【问题讨论】:
标签: amazon-web-services amazon-ec2 dns amazon-route53