You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25-25Lines changed: 25 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -198,37 +198,37 @@ If you **like/use** this project, please consider ⭐️ **starring** it. Thanks
198
198
199
199
10. **Add custom DNS resolver to your system:**
200
200
201
-
This allows macOS to understand that `*.docker` domains should be resolved by a custom resolver via `127.0.0.1`, where our DNSMasq, which runs inside Docker, will handle all DNS requests.
201
+
This allows macOS to understand that `*.docker` domains should be resolved by a custom resolver via `127.0.0.1`, where our DNSMasq, which runs inside Docker, will handle all DNS requests.
202
202
203
-
```bash
204
-
sudo sh -c 'echo "nameserver 127.0.0.1" > /etc/resolver/docker'
205
-
sudo dscacheutil -flushcache
206
-
sudo killall -HUP mDNSResponder
207
-
```
203
+
```bash
204
+
sudo sh -c 'echo "nameserver 127.0.0.1" > /etc/resolver/docker'
> Instead of creating the `/etc/resolver/docker` file, you can add `127.0.0.1` to your macOS DNS Servers in your Ethernet or Wi-Fi settings.
228
-
>
229
-
> Go to **System Preferences → Network → Wi-Fi → Details → DNS** and add `127.0.0.1` as the first DNS server.
230
-
>
231
-
> This allows you to do it one time, and if you need to create a new local domain, forexample `*.mac`,in the future, it will be automatically resolved without creating a separate `/etc/resolver/mac` file.
225
+
> [!Note]
226
+
>
227
+
> Instead of creating the `/etc/resolver/docker` file, you can add `127.0.0.1` to your macOS DNS Servers in your Ethernet or Wi-Fi settings.
228
+
>
229
+
> Go to **System Preferences → Network → Wi-Fi → Details → DNS** and add `127.0.0.1` as the first DNS server.
230
+
>
231
+
> This allows you to do it one time, and if you need to create a new local domain, forexample `*.mac`,in the future, it will be automatically resolved without creating a separate `/etc/resolver/mac` file.
232
232
233
233
11. **Ping `router.docker` to check if DNS is working:**
0 commit comments