大网数据广告活动
服务器运维问答

DNS: mx record with only AAAA, no A record

· 52CE 我爱测

My mx record for example.com points to mail.example.com I have only set an AAAA record for mail.example.com, but no A record. I don't want to expose my IPv4, only the IPv6. I can receive e-mail from a Gmail account, but when I ru…

问题原文

原帖链接 · Kris · CC BY-SA 4.0

My mx record for example.com points to mail.example.com I have only set an AAAA record for mail.example.com, but no A record. I don't want to expose my IPv4, only the IPv6.

I can receive e-mail from a Gmail account, but when I run tests with online "send anonymous email" tools, the mails don't show up (but the same tools do work with my Gmail account).

When I use mxtoolbox, I see the correct IPv6 as well as a {No A Record} message.

Is it recommended to have an A-record set up, or should having only an AAAA-record work fine as well? What else could be the problem?

已采纳解答

原帖链接 · Esa Jokinen · CC BY-SA 4.0

With only an AAAA record your server is only available via IPv6. I couldn't find much statistics on email server IPv6 connectivity, but for example, as of March 2020, below 30% of Google users were IPv6 capable. Majority of the Internet still runs on IPv4, and you can't just drop support for it without consequences.

Moreover, your server's IPv4 address is not a secret information you should protect. Certainly it's not any special compared to exposing your IPv6 address: if someone has malicious intentions, that's not an obstacle. And as SMTP probably advertises the same mailname in SMTP banner on every interface anyway, it's bad at keeping such secrets.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2020-03-27)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。