Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

codeforest's avatar

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?

0 likes
0 replies

Please or to participate in this conversation.