What ip address for Docker DNS

What IP address should I use for the DNS in the docker-compose.yaml? In my host file I have these 2 lines

Added by Docker Desktop

192.168.0.141 host.docker.internal

192.168.0.141 gateway.docker.internal

Should I use 192.168.0.141 as my DNS IP?

Litium version: [Version number]

run nslookup martin.localtest.me 127.0.0.1
The you will get ip to use for the apps dns setting

for me it was 254

PS C:\> nslookup martin.localtest.me 127.0.0.1
Server:  localhost
Address:  127.0.0.1

Non-authoritative answer:
Name:    host.docker.internal
Address:  192.168.65.254
Aliases:  martin.localtest.me

for the dnsresolver it you should use dns: 192.168.65.7 or dns: 192.168.65.5 depending on version of docker desktop.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.