I run Devilbox using Docker Desktop on Windows 10 Pro with the containers running on WSL-2. My laptop has both plug-in ethernet + wifi as well as connecting to the internet using VPN (both Cisco AnyConnect and NordVPN). My connections are shown below.
I’m unclear which of these I need to change in order to setup a custom DNS server, any pointers would be most appreciated
Despite these warnings the links to the vhosts do work, how is PHP doing this check, what does it mean exactly since inside the PHP container I am able to ping the vhosts e.g.
devilbox@php-7.4.12 in /shared/httpd $ ping rtest.loc
PING rtest.loc (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.133 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.048 ms
64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.040 ms
64 bytes from localhost (127.0.0.1): icmp_seq=4 ttl=64 time=0.046 ms
I had somewhat of a similar problem and the way I fixed it was to update the WSL Hyper-V virtual adapter to use 127.0.0.1. I would suggest that the documentation be updated to show this; currently it only shows for the main adapter, but that doesn’t work when using WSL and Docker for Windows. It probably works with Docker for Windows directly. Let me know if this works.