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.3.使用 nmsp localhost 命令查看系統服務,顯示53埠已經打開root@ecpt-virtual-machine:/usr/src# nmap localhost
Starting Nmap 5.21 ( http://nmap.org ) at 2011-08-06 01:32 CST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000011s latency).
Not shown: 996 closed ports
PORT STATE SERVICE
53/tcp open domain
80/tcp open http
631/tcp open ipp
3306/tcp open mysql4.使用dig 命令得到的結果和資料庫設置的不一樣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: 995.使用ping命令找不到主機root@ecpt-virtual-machine:/usr/src# ping lupunsrv.thelupine.com
ping: unknown host lupunsrv.thelupine.com---------------------------------------------------------------------------------------------------------------------------------------
參考的文章為
mysql-bind方式:http://www.thelupine.com/content/ubuntu-bind-and-mysql-sdb
bind-dlz方式:http://blog.sina.com.cn/s/blog_59929ec30100rus4.html
最後再請高手指點,不勝感激,謝謝!
《解決方案》
沒人知道么?
《解決方案》
:emn58:沒人知道么