Docker containers losing host DNS

Host is running a Debian 13 minimal install. Occasionally my containers will lose access to the internet, and I’ve noticed that when this happens resolv.conf in the containers will have a line changed:

Working:

# Generated by Docker Engine.
# This file can be edited; Docker Engine will not make further changes once it
# has been modified.

nameserver 127.0.0.11
search lan
options ndots:0

# Based on host file: '/etc/resolv.conf' (internal resolver)
# ExtServers: [host(192.168.2.11)]
# Overrides: []
# Option ndots from: internal

Not working:

# Generated by Docker Engine.
# This file can be edited; Docker Engine will not make further changes once it
# has been modified.

nameserver 127.0.0.11
options ndots:0

# Based on host file: '/etc/resolv.conf' (internal resolver)
# NO EXTERNAL NAMESERVERS DEFINED
# Overrides: []
# Option ndots from: internal

The search lan line is disappearing as well as the # ExtServers: [host(192.168.2.11)] comment. I don’t know what is causing this. The IP address in the comment is my PiHole which the host gets from through DHCP, which is also provided by the PiHole. The host still has working internet connectivity, just not my Docker containers.