configuration服务器的DNS与EC2亚马逊

我有一个实例麦克风与Ubuntu 10.04安装没有问题,对我来说超快,问题是,我想安装Virtualmin正在放弃去我的新网站。 当我configuration绑定生成名称服务器(ns,ns2)首先,我不能更改FQDN的主机名,并没有看到更改它的选项。 分配的IP和绑定名称生成的区域不适用(我是新的这一套还绑定和地区)。

亚马逊EC2事实上,伟大的,但是这个设置有点麻烦,有人能够用Virtualmin或单独安装和configurationbind9 bind9,这里有一个手册。 我需要一个曾经在那里的人可以帮助我。

如果没有解决scheme,最终我会有一个传统的VPS,将是一个耻辱,因为亚马逊是伟大的。

生成的configuration是绑定的。

$ttl 38400 @ IN SOA ip-10-243-63-218. root.ip-10-243-63-218. ( 1330564129 10800 3600 604800 38400 ) @ IN NS ip-10-243-63-218. ubuhive.com. IN A 10.243.63.218 www.ubuhive.com. IN A 10.243.63.218 ftp.ubuhive.com. IN A 10.243.63.218 m.ubuhive.com. IN A 10.243.63.218 localhost.ubuhive.com. IN A 127.0.0.1 webmail.ubuhive.com. IN A 10.243.63.218 admin.ubuhive.com. IN A 10.243.63.218 mail.ubuhive.com. IN A 10.243.63.218 ubuhive.com. IN MX 5 mail.ubuhive.com. ubuhive.com. IN TXT "v=spf1 a mx a:ubuhive.com ip4:10.243.63.218 ?all" ubuhive.com. IN NS ns.ubuhive.com. ubuhive.com. IN NS ns2.ubuhive.com. ns.ubuhive.com. IN A xx.xx.xx.xx ns2.ubuhive.com. IN A xx.xx.xx.xx The doubts I have are that it should go here: @ IN SOA ip-10-243-63-218. root.ip-10-243-63-218. @ IN NS ip-10-243-63-218. 10.243.63.218 internal ip xx.xx.xx.xx is my ip elastic 

问候

好,我遗漏了很多你的logging,因为这个问题真的不重要。 我也没有configuration一个从服务器。 由于看起来你是一种新的使用绑定,我们需要从基础开始。 一旦你获得了基本的工作,你可以尝试实施你的工作解决scheme。 用Amazon Linuxtesting这个解决scheme,你可能需要用ubuntu更改一些目录,我不确定。

对于这个configuration你将使用两个文件

  1. 的/etc/named.conf
  2. /var/named/master.ubuhive.com

/etc/named.conf的内容

 options { listen-on port 53 { 127.0.0.1; }; listen-on-v6 port 53 { ::1; }; directory "/var/named"; dump-file "/var/named/data/cache_dump.db"; statistics-file "/var/named/data/named_stats.txt"; memstatistics-file "/var/named/data/named_mem_stats.txt"; allow-query { localhost; }; recursion yes; dnssec-enable yes; dnssec-validation yes; dnssec-lookaside auto; /* Path to ISC DLV key */ bindkeys-file "/etc/named.iscdlv.key"; }; logging { channel default_debug { file "data/named.run"; severity dynamic; }; }; zone "." IN { type hint; file "named.ca"; }; zone "ubuhive.com" { type master; file "master.ubuhive.com"; }; include "/etc/named.rfc1912.zones"; 

/var/named/master.ubuhive.com的内容(用您的私人IPreplacexxx.xxx.xxx.xxx)

 $TTL 43200 ubuhive.com. IN SOA help.ubuhive.com. ns01.ubuhive.com. ( 1 ; serial 21600 ; refresh (6 hours) 7200 ; retry (2 hours) 1209600 ; expire (2 weeks) 43200) ; minimum (12 hours) ubuhive.com. NS ns01.ubuhive.com. ns01 A xxx.xxx.xxx.xxx 

现在可以在本地运行命令host ns01.ubuhive.com 127.0.0.1

 [root@domU-12-31-39-09-FA-A8 ~]# host ns01.ubuhive.com 127.0.0.1 Using domain server: Name: 127.0.0.1 Address: 127.0.0.1#53 Aliases: ns01.ubuhive.com has address xxx.xxx.xxx.xxx 

让我知道如果你仍然有问题,或者如果这种configuration没有做你所期望的。