【问题标题】:Dnsmasq not working domain .localDnsmasq 不工作域 .local
【发布时间】:2018-03-02 00:08:35
【问题描述】:

我买了一个 macpro,我很新,我正在配置我的开发环境,当我安装 dnsmasq 时,我无法访问“anyname.local”页面,它说站点无法访问,我所有的东西都在运行,apache,dnsmasq,但没有任何效果,我按照上面的教程进行操作。 Link Tut

我打印了一些信息,也许有人知道出了什么问题。

dig foo.local

; <<>> DiG 9.8.3-P1 <<>> foo.local
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 3951
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;foo.local.         IN  A

;; AUTHORITY SECTION:
.           10800   IN  SOA a.root-servers.net. nstld.verisign-grs.com. 2018030101 1800 900 604800 86400

;; Query time: 18 msec
;; SERVER: 192.168.1.1#53(192.168.1.1)
;; WHEN: Fri Mar  2 00:03:23 2018
;; MSG SIZE  rcvd: 102

【问题讨论】:

    标签: macos apache macos-sierra dnsmasq


    【解决方案1】:

    在 MacOS 上应避免使用 .local 后缀,因为它由 MacOS Bonjour 服务使用。

    您可以查看Apple explanation page,他们建议在其中使用其他后缀,例如:.private.intranet.internal.lan

    我个人使用.localhost.test.example

    附带说明,也不建议使用 .dev,因为 Chrome 63 开始要求此后缀的 SSL 证书。

    希望这会有所帮助!

    【讨论】:

      猜你喜欢
      • 2018-05-29
      • 1970-01-01
      • 2019-07-08
      • 2016-11-24
      • 2013-10-22
      • 2019-10-30
      • 1970-01-01
      • 2019-03-09
      • 2015-05-14
      相关资源
      最近更新 更多