1
我真的很努力與dnsmasq設置。dnsmasq配置被繞過
我的dnsmasq的配置包括(其中包括)下列
address=/local/127.0.0.1
listen-address=127.0.0.1
domain=local
我的網絡管理員的conf和解決的conf肯定包括127.0.0.1作爲第一個域名服務器。
如果我運行
dig mysite.local
我得到
; <<>> DiG 9.8.1-P1 <<>> mysite.local
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 61359
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;mysite.local. IN A
;; ANSWER SECTION:
mysite.local. 0 IN A 127.0.0.1
;; Query time: 1 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Dec 17 10:33:40 2013
;; MSG SIZE rcvd: 46
(是的,mysite.local是一個Apache虛擬主機偵聽端口80)。
但是,如果我瀏覽或wget來mysite.local,我得到:
--2013-12-17 10:35:49-- http://mysite.local/
Resolving mysite.local (mysite.local)... failed: Name or service not known.
wget: unable to resolve host address `mysite.local'
運行Ubuntu 12.04。使用dnsmasq調試打開系統日誌的輸出,表明wget或瀏覽器都不會查詢.local域的dnsmasq,但在.local域上運行挖掘可以正常工作。
任何想法非常讚賞。