Um contêiner Docker parou de resolver o DNS corretamente

Um contêiner Docker parou de resolver o DNS corretamente

Estou com um problema estranho com minha instância do Mailcow. Um contêiner (Postfix) começou a resolver parcialmente o DNS. O problema é apenas com este contêiner específico que não entendo. Isso está fazendo com que os e-mails não sejam enviados devido a domain name not foundum erro.

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

mas com 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 domínio diferente:

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

Este é realmente estranho:

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 outro contêiner funciona bem:

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

Eu tentei até agora:

  • removendo e reinstalando resolvconfdo host
  • Adicionando 1.1.1.1/8.8.8.8 a /etc/resolvconf/resolv.conf.d/basee/etc/resolvconf/resolv.conf.d/head
  • Adicionando DNS a:/etc/docker/daemon.json
  • Adicionando DNS estático ao mailcow docker-compose
  • Desativando firewall

tudo sem sorte.

informação relacionada