代客:无法找到DNS地址

时间:2018-05-16 18:21:13

标签: dns homebrew dnsmasq laravel-valet

我的问题与2年前的this one相同。

我按照this detailed answer中的所有步骤,没有运气。

此外,我还重启了我的机器并删除了我的防病毒软件(为了安全起见)。

在我尝试挖掘或ping测试域之前,一切都很顺利。 我已经卸载并重新安装了所有东西,运行brew医生等等。

所有文件看起来都应该是这样,服务都是按照brew运行的。

我安装了php(7.2.5)而不是php70,因为brew声称包已过时。我使用新的默认域名* .test而不是* .dev,否则我按照这个答案中的步骤写了一封信。

brew info dnsmasq结果

dnsmasq: stable 2.79 (bottled)
Lightweight DNS forwarder and DHCP server
http://www.thekelleys.org.uk/dnsmasq/doc.html
/usr/local/Cellar/dnsmasq/2.79 (8 files, 516.3KB) *
  Poured from bottle on 2018-05-16 at 13:22:30
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/dnsmasq.rb
==> Dependencies
Build: pkg-config ✘
Optional: libidn ✘
==> Options
--with-dnssec
    Compile with DNSSEC support
--with-libidn
    Compile with IDN support
==> Caveats
To configure dnsmasq, take the default example configuration at
  /usr/local/etc/dnsmasq.conf and edit to taste.

To have launchd start dnsmasq now and restart at startup:
  sudo brew services start dnsmasq

ps aux | grep dnsmasq结果

username           5152   0.0  0.0  4258468    184 s000  R+    5:04PM   0:00.00 grep dnsmasq

dig something.test结果

; <<>> DiG 9.9.7-P3 <<>> something.test
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 2961
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;something.test.            IN  A

;; ANSWER SECTION:
something.test.     10  IN  A   198.105.244.228
something.test.     10  IN  A   198.105.254.228

;; Query time: 77 msec
;; SERVER: 209.18.47.62#53(209.18.47.62)
;; WHEN: Thu May 24 17:06:34 EDT 2018
;; MSG SIZE  rcvd: 64

0 个答案:

没有答案