Sep 13, 2016
0
Level 5
Homestead problems with DNS
I have the latest Homestead installed and everything works as expected.
I have 2 sites configured inside Homestead, one is sort of a client and the other is API ...
I can access both sites in browser using local domain names.
But, if I use command line cUrl or cUrl from PHP (WordPress), I get Couldn't resolve host 1op-sl.app:80
When I ping both domains, I get 192.168.10.10, which is fine.
I tested with curl -- resolve:
curl --trace-ascii --resolve '1op-sl.app:80:192.168.10.10' -XGET "http://1op-sl.app/api/ping"
Any ideas?
Please or to participate in this conversation.