You are not logged in.
Hello everyone! I'm trying to set up a DNS server for the Wireguard VPN network. I created a container with dnsmasq in Docker and in the settings in the address parameter I specified the domain name for the ip. But checking with dig showed that the record is not resolved. But if I specify records in /etc/hosts, then dig can get the ip for the specified domain. Can you tell me why the domain specified in the dnsmasq settings does not work?
#dnsmasq.conf
port=53
domain-needed
bogus-priv
expand-hosts
no-resolv
server=8.8.4.4
server=8.8.8.8
address=/sparkle-server-internal.ru/10.9.0.2
address=/.sparkle-server-internal.ru/10.9.0.2
# container-entrypoint.sh
#!/bin/bash
wg-quick up wg0
dnsmasq --no-daemon -C /etc/dnsmasq.conf --log-queries --log-facility=-
Offline
You're specifying "--bogus-priv", which may lead to the 10.9.* of the addresses not being resolved. Nothing wrong with specifying them in the /etc/hosts file though, because you usually want to filter the rest of private address ranges (like 192.168.*, 10.*).
Offline