【问题标题】:Dnsmasq homestead & osx stopped working for subdomainsDnsmasq homestead & osx 停止为子域工作
【发布时间】:2017-12-12 04:41:04
【问题描述】:

直到 chrome 阻止我使用我的 http://development.app 域,一切正常。我的笔记本电脑突然重启,然后开发域 (http://development.app) 开始请求 SSL。

所以我尝试转移到http://development.local(也尝试了.test,但也无法正常工作-但一切都在.app上工作)

在我的操作系统中:

nano /usr/local/etc/dnsmasq.conf

address=/.local/192.168.10.10  // also tried: address=/local/192.168.10.10

然后我重新开始:

sudo launchctl stop homebrew.mxcl.dnsmasq
sudo launchctl start homebrew.mxcl.dnsmasq

然后在vagrant ssh:

sudo nano /etc/dnsmasq.conf

local=/development.local/
domain=development.local
address=/development.local/127.0.0.1

在我的主机中,我有:

192.168.10.10 development.local
192.168.10.10 *.development.local

现在,http://development.local 有效,但 http://test.development.local 无效,在此更改之前,它与 http://test.development.app 一起使用。现在转到 url 会返回我:

无法访问此网站 找不到test.development.local的服务器IP地址

我完全不知道这是什么意思,但是

dig test.development.local @127.0.0.1

> test.development.local.   0   IN  A   192.168.10.10

【问题讨论】:

    标签: macos vagrant subdomain homestead dnsmasq


    【解决方案1】:

    我忘记了我之前做的这一步:

    nano /etc/resolver/local
    
    nameserver 127.0.0.1
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-03-29
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多