On 29.09.25 15:01, Charles Curley wrote:
On Mon, 29 Sep 2025 06:55:17 -0400 Greg Wooledge <greg@wooledge.org> wrote:You've got bind9 running. If you want dnsmasq to run as your local DNS resolver, remove bind9.Or, if you want both (say, bind9 for the local network, dnsmasq for the virtual network), inhibit bind9 from using the virtual network. Edit /etc/bind/named.conf.options by adding: listen-on port 53 { 127.0.0.1; 192.168.100.6; # 192.168.122.1; }; and similarly for ipv6 if you use it.Hi Greg and Charles,
thanks for your replies.
1. How can I achieve that bind is not started? If I kill the process "/usr/sbin/named -f -u bind" with "kill -9 1227", it is immediately restarted with a different process ID.
2. Charles, in your proposal for adding to named.conf, what is the IP "192.168.100.6"? Shall I replace it with the static IP of my computer?
3. I never did any changes to the default startup- and network procedures in Debian. Why does the installation start both bind and dnsmasq?
Thanks for additional info,
Michael
Regarding question 3 I used my own static address. Now bind is no longer using port 53, only dnsmasq is.
Here the output of some commands (IPv6 is disabled via NetworkManager)
a) cat /etc/bind/named.conf.local
// Do any local configuration here
listen-on port 53 {
127.0.0.1;
192.168.178.9;
# 192.168.122.1;
};
b) ss -tunlp | grep "168.122"
root@lap22:~#
root@lap22:~# ss -tunlp | grep "53"
udp UNCONN 0 0 0.0.0.0:53 0.0.0.0:*
users:(("dnsmasq",pid=1259,fd=4))
udp UNCONN 0 0 0.0.0.0:5353 0.0.0.0:*
users:(("kdeconnectd",pid=2643,fd=20))
udp UNCONN 0 0 0.0.0.0:5353 0.0.0.0:*
users:(("avahi-daemon",pid=1087,fd=12))
udp UNCONN 0 0 [::]:53 [::]:*
users:(("dnsmasq",pid=1259,fd=6))
udp UNCONN 0 0 [::]:53026 [::]:*
users:(("avahi-daemon",pid=1087,fd=15))
udp UNCONN 0 0 [::]:5353 [::]:*
users:(("avahi-daemon",pid=1087,fd=13))
tcp LISTEN 0 32 0.0.0.0:53 0.0.0.0:*
users:(("dnsmasq",pid=1259,fd=5))
tcp LISTEN 0 32 [::]:53 [::]:*
users:(("dnsmasq",pid=1259,fd=7))
root@lap22:~#
c) virsh net-start default
error: Netzwerk default konnte nicht gestartet werden
error: Interner Fehler: Untergeordneter Prozess
(VIR_BRIDGE_NAME=virbr0 /usr/sbin/dnsmasq
--conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro
--dhcp-script=/usr/lib/libvirt/libvirt_leaseshelper) unerwartet
Ende Status 2:
dnsmasq: failed to create listening socket for 192.168.122.1:
Address already in use