markshust / docker-magento

Mark Shust's Docker Configuration for Magento
https://m.academy/courses/set-up-magento-2-development-environment-docker/
MIT License
2.52k stars 995 forks source link

Error DNS_PROBE_FINISHED_NXDOMAIN #1186

Open gaeldelmer opened 2 months ago

gaeldelmer commented 2 months ago

Description After what appeared to be a successful installation, I'm encountering a DNS error when navigating to magento.test. I have already added 127.0.0.1 magento2.test to C:\windows\system32\drivers\etc\hosts as specified in the WSL2 documentation https://github.com/markshust/docker-magento/discussions/372. Everything else seems to be functioning correctly, as I'm able to run setup upgrades and install sample data.

Steps To Reproduce

  1. Install on Windows 11 WSL with one line script
  2. Go to https://magento.test/ on Chrome or Edge

Expected Result Display of Magento website

Actual Result Display of DNS_PROBE_FINISHED_NXDOMAIN

prodigitalsschulze93 commented 1 month ago

got the same issue here. Is there a Solution for this ? I´ve also tried to do the step by step which causes the same error. I´ve done the exact same thing on my mac (one-liner and step by step) and it´s working. But we need that for our Windows Laptops to get work.

dvzanden commented 1 month ago

Same problem here, running from a windows laptop with WSL2.

aesamphp commented 2 weeks ago

same issue happend to me from a Windows laptop with WSL2 and Docker v4.31.0

MrBlaBlak commented 2 weeks ago

I had the same issue. Run these commands: sudo mkdir -p /etc/systemd/resolved.conf.d

echo -e "[Resolve]\nDNS=127.0.0.1\nDomains=~test\n" \ | sudo tee /etc/systemd/resolved.conf.d/warden.conf > /dev/null

sudo systemctl restart systemd-resolved and if you are supposed to open https://magento.test/ then you also should add 127.0.0.1 magento.test to C:\windows\system32\drivers\etc\hosts NOT magento2.test