하나의 Docker 컨테이너가 DNS를 제대로 확인하지 못했습니다.

하나의 Docker 컨테이너가 DNS를 제대로 확인하지 못했습니다.

Mailcow 인스턴스에 이상한 문제가 있습니다. 한 컨테이너(Postfix)가 부분적으로 DNS 확인을 시작했습니다. 문제는 내가 이해하지 못하는 이 특정 컨테이너에만 있습니다. 오류 로 인해 이메일이 전송되지 않는 원인이 됩니다 domain name not found.

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

하지만 외부 DNS의 경우:

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.

다른 도메인의 경우:

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

이건 정말 이상해요:

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
...

서로 다른 컨테이너는 잘 작동합니다.

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

나는 지금까지 시도했습니다 :

  • resolvconf호스트에서 제거 및 재설치
  • /etc/resolvconf/resolv.conf.d/base1.1.1.1/8.8.8.8을 및 에 추가/etc/resolvconf/resolv.conf.d/head
  • 다음에 DNS 추가:/etc/docker/daemon.json
  • mailcow docker-compose에 정적 DNS 추가
  • 방화벽 비활성화

모두 운 없이.

관련 정보