ubuntu安装mysql-bind,启动成功但是解析却没有生效,哪位高手帮我看看,谢谢!
已经倒腾了三天ubuntu+bind+mysql了,但是都没有成功,网上找了很多资料基本千篇一律,但是我还是坚持找到了几个不同的版本,最后有参照两篇文章分别用 bind-dlz 和 mysql-bind 两种方式配置并且启动成功,但是检测的时候域名和dns服务器上面设置的A记录的IP并不一样,不知到到底哪里出错了。
--------------------------------------------------------------
用的是VMware 7.1.4安装ubuntu11.0.4,在局域网中使用桥接,主机获取的IP为192.168.0.11,虚拟机中ubuntu获取的IP为192.168.0.3,虚拟网卡为Auto eth0.
--------------------------------------------------------------
下面是具体的设置:
1.在网卡设置中选取 自动(DHCP仅地址),将dns服务器地址设置为127.0.0.1
2.mysql中dns记录为
name ttl rdtype rdata thelupine.com 3600 SOA thelupine.com. thelupine.com 3600 NS ns.thelupine.com. thelupine.com 3600 MX 10 mail.thelupine.com. lupunsrv.thelupine.com 3600 A 192.168.5.1 mail.thelupine.com 3600 CNAME lupunsrv.thelupine.com. www.thelupine.com 3600 CNAME lupunsrv.thelupine.com.
root@ecpt-virtual-machine:/usr/src# nmap localhostStarting Nmap 5.21 ( http://nmap.org ) at 2011-08-06 01:32 CSTNmap scan report for localhost (127.0.0.1)Host is up (0.000011s latency).Not shown: 996 closed portsPORT STATE SERVICE53/tcp open domain80/tcp open http631/tcp open ipp3306/tcp open mysql
root@ecpt-virtual-machine:/usr/src# dig @localhost thelupine.com; <<>> DiG 9.7.3 <<>> @localhost thelupine.com; (1 server found);; global options: +cmd;; Got answer:;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50327;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 0;; QUESTION SECTION:;thelupine.com. IN A;; ANSWER SECTION:thelupine.com. 3600 IN A 69.89.31.208;; AUTHORITY SECTION:thelupine.com. 3600 IN NS ns31.domaincontrol.com.thelupine.com. 3600 IN NS ns32.domaincontrol.com.;; Query time: 1695 msec;; SERVER: 127.0.0.1#53(127.0.0.1);; WHEN: Sat Aug 6 01:24:40 2011;; MSG SIZE rcvd: 99
root@ecpt-virtual-machine:/usr/src# ping lupunsrv.thelupine.comping: unknown host lupunsrv.thelupine.com