代客泊车:找不到DNS地址

代客泊车:找不到DNS地址,dns,homebrew,dnsmasq,laravel-valet,Dns,Homebrew,Dnsmasq,Laravel Valet,我的问题和两年前一样 我一步一步地走了进去,一点运气都没有 此外,我还重新启动了我的机器,并删除了我的防病毒软件(只是为了安全起见) 在我尝试挖掘或ping测试域之前,一切都很顺利。 我已经卸载并重新安装了所有内容,运行brew doctor等 所有文件看起来都正常,服务都按照brew运行 我安装了php(7.2.5)而不是php70,因为brew声称该软件包已经过时。我使用的是新的默认域*.test,而不是*.dev,否则我会按照这封信的答案中的步骤进行操作 brew信息dnsmasq结果 d

我的问题和两年前一样

我一步一步地走了进去,一点运气都没有

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

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

所有文件看起来都正常,服务都按照brew运行

我安装了php(7.2.5)而不是php70,因为brew声称该软件包已经过时。我使用的是新的默认域*.test,而不是*.dev,否则我会按照这封信的答案中的步骤进行操作

brew信息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
username           5152   0.0  0.0  4258468    184 s000  R+    5:04PM   0:00.00 grep dnsmasq
; <<>> 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
ps aux | grep 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
username           5152   0.0  0.0  4258468    184 s000  R+    5:04PM   0:00.00 grep dnsmasq
; <<>> 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
挖掘一些东西。测试结果

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
username           5152   0.0  0.0  4258468    184 s000  R+    5:04PM   0:00.00 grep dnsmasq
; <<>> 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
;挖9.9.7-P3什么的。测试
;; 全局选项:+cmd
;; 得到答案:

;; ->>校长您能解释一下您面临的问题吗?@TarunLalwani dnsmasq似乎设置正确,但正在ping一些东西。测试不返回任何结果。请添加
brew信息dnsmasq
ps aux | grep dnsmasq
的输出。在您的问题中测试@127.0.0.1
,dig是否显示了您想要的IP?Laravel,您的问题主要是关于配置dnsmasq,因此与编程关系不大。试试看,否则你会得到更好的帮助。