Un contenedor Docker dejó de resolver DNS correctamente

Un contenedor Docker dejó de resolver DNS correctamente

Tengo un problema extraño con mi instancia de Mailcow. Un contenedor (Postfix) ha comenzado a resolver DNS parcialmente. El problema es sólo con este contenedor en particular que no entiendo. Está provocando que no se envíen correos electrónicos debido a domain name not foundun error.

root@6c751ea397ad:/# host wp.pl
Host wp.pl not found: 2(SERVFAIL)
root@6c751ea397ad:/# host mx.wp.pl
Host mx.wp.pl not found: 2(SERVFAIL)
root@6c751ea397ad:/# cat /etc/resolv.conf 
search domain.com
nameserver 127.0.0.11
options ndots:0

pero con DNS externo:

root@6c751ea397ad:/# host wp.pl 1.1.1.1
Using domain server:
Name: 1.1.1.1
Address: 1.1.1.1#53
Aliases: 

wp.pl has address 212.77.98.9
wp.pl mail is handled by 0 mx.wp.pl.
wp.pl mail is handled by 5 mx5.wp.pl.

para diferentes dominios:

root@6c751ea397ad:/# host -t any o2.pl             
o2.pl has address 212.77.98.29
o2.pl descriptive text "facebook-domain-verification=0omejgqroqocgh4efgrbu8bovlazni"
o2.pl descriptive text "v=spf1 include:wp.pl -all"
o2.pl mail is handled by 10 mx.tlen.pl.
o2.pl has SOA record ns1.go2.pl. root.go2.pl. 2020111002 3600 1080 1209600 7200
o2.pl name server ns1.go2.pl.
o2.pl name server ns2.go2.pl.
root@6c751ea397ad:/# host -t any mx.tlen.pl
mx.tlen.pl has address 193.222.135.150

Éste es realmente extraño:

root@6c751ea397ad:/# host -t any company.mail.protection.outlook.com 
Host company.mail.protection.outlook.com not found: 2(SERVFAIL)
root@6c751ea397ad:/# host -t any outlook.com 
outlook.com has SOA record bn7mgt0101dc013.prdmgt01.prod.exchangelabs.com. msnhst.microsoft.com. 2014796278 300 900 2419200 60
outlook.com has address 40.97.148.226
outlook.com has address 40.97.153.146
outlook.com has address 40.97.161.50
...

Cada uno de los demás contenedores funciona bien:

root@c228923398e8:/# host wp.pl
wp.pl has address 212.77.98.9
wp.pl mail is handled by 5 mx5.wp.pl.
wp.pl mail is handled by 0 mx.wp.pl.
root@c228923398e8:/# host mx.wp.pl
mx.wp.pl has address 212.77.101.4
root@c228923398e8:/# cat /etc/resolv.conf 
search domain.com
nameserver 127.0.0.11
options ndots:0

Lo he intentado hasta ahora:

  • eliminar y reinstalar resolvconfdesde el host
  • Agregar 1.1.1.1/8.8.8.8 a /etc/resolvconf/resolv.conf.d/basey/etc/resolvconf/resolv.conf.d/head
  • Agregar DNS a:/etc/docker/daemon.json
  • Agregar DNS estático a docker-compose de mailcow
  • Deshabilitar el firewall

todo sin suerte.

información relacionada