You are not logged in.

#1 2024-11-04 13:23:05

Afmer
Member
Registered: 2023-09-21
Posts: 16

Dnsmasq. Resolving the DNS record specified in address does not work

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

#2 2024-11-04 20:44:50

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,486

Re: Dnsmasq. Resolving the DNS record specified in address does not work

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

Board footer

Powered by FluxBB