当从 PHP 和我的服务器的域发送外发邮件时,Exim 会错误地解析通过 smtp 进行身份验证的主机吗?

当从 PHP 和我的服务器的域发送外发邮件时,Exim 会错误地解析通过 smtp 进行身份验证的主机吗?

我在加拿大 OVH 有一台带有 WHM 和 Cpanel 的服务器,有一个主 ip +4 个附加 ipv4,其中 2 个分配给了其相应的域,2 个未使用:假设这些 ip 为:

144.217.55.5 (main)

167.114.80.108 (empty)
167.114.80.109 (domain1.com)
167.114.80.110 (domain2.com)   <-----
167.114.80.111 (empty)

当我使用 PHP 发送电子邮件时,我使用以下配置通过 SMTP 进行连接

host: mail.domain2.com   <----
port: 465
encryption: SSL
username: xxxxxx
pass: xxxxxx

当我看到 exim 日志时,问题出现了:

2020-09-04 11:09:26 1kECP8-0002Ze-4L <= [email protected] H=(www.dominio2.com) [167.114.80.109]:43018 P=esmtpsa X=TLS1:ECDHE-RSA-AES128-SHA:128 CV=no A=dovecot_login:[email protected] S=130398 [email protected] T="Example email" for [email protected]
2020-09-04 11:09:26 1kECP8-0002Ze-4L Sender identification U=linux_username D=dominio2.com [email protected]
2020-09-04 11:09:26 1kECP8-0002Ze-4L SMTP connection outbound 1599228566 1kECP8-0002Ze-4L dominio2.com [email protected]
2020-09-04 11:09:28 1kECP8-0002Ze-4L => [email protected] R=dkim_lookuphost T=dkim_remote_smtp H=hotmail-com.olc.protection.outlook.com [104.47.18.97] X=TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256 CV=yes C="250 2.6.0 <[email protected]> [InternalId=34888019366026, Hostname=AM6EUR05HT076.eop-eur05.prod.protection.outlook.com] 141834 bytes in 0.308, 449.544 KB/sec Queued mail for delivery -> 250 2.1.5"
2020-09-04 11:09:28 1kECP8-0002Ze-4L Completed

正如您在日志中看到的那样,“domain2.com”没有解析到正确的IP(.110)但是......而是解析到了错误的IP(.109),这导致在Outlook中收到如下标头:

-----------------------------------
Recibed E-Mail in Outlook (Headers)
-----------------------------------

Received: from AM7EUR06HT132.eop-eur06.prod.protection.outlook.com
(2603:10b6:208:23c::30) by MN2PR10MB4317.namprd10.prod.outlook.com with HTTPS
via MN2PR18CA0025.NAMPRD18.PROD.OUTLOOK.COM; Fri, 4 Sep 2020 16:01:34 +0000
Received: from AM7EUR06FT032.eop-eur06.prod.protection.outlook.com
(2a01:111:e400:fc36::46) by
AM7EUR06HT132.eop-eur06.prod.protection.outlook.com (2a01:111:e400:fc36::155)
with Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3348.16; Fri, 4 Sep
2020 16:01:34 +0000
Authentication-Results: spf=pass (sender IP is 167.114.80.110)
smtp.mailfrom=dominio2.com; hotmail.com; dkim=pass (signature was verified)
header.d=dominio2.com;hotmail.com; dmarc=pass action=none
header.from=dominio2.com;compauth=pass reason=100
Received-SPF: Pass (protection.outlook.com: domain of dominio2.com
designates 167.114.80.110 as permitted sender)
receiver=protection.outlook.com; client-ip=167.114.80.110;
helo=dominio2.com;
Received: from dominio2.com (167.114.80.110) by
AM7EUR06FT032.mail.protection.outlook.com (10.233.255.87) with Microsoft SMTP
Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
15.20.3348.16 via Frontend Transport; Fri, 4 Sep 2020 16:01:33 +0000
X-IncomingTopHeaderMarker:
OriginalChecksum:31ABEA364637255ED65C68929672F5F172ABBF7E27E44C1C7A5ACCD2A2B9CA55;UpperCasedChecksum:0D6163CB071A5666BD244BDF2B638F4D148911D1AAE91E91B8C288BE8DC77B71;SizeAsReceived:1958;Count:19
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
d=dominio2.com; s=default; h=Content-Type:MIME-Version:To:From:Subject:Date
:Message-ID:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:
Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
:Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:
List-Subscribe:List-Post:List-Owner:List-Archive;
bh=opwt3wnDE58VuNQ/uDJaZEwEYa6UoNjUOntsZNqxkX8=; b=kdpDW7TQQW/dH1DndZWOsyQqxU
iDhzG5VA+Xm2qahk36UfJNIRxp2FY+0gP7ArUAiBssVATccuuJzRkNHz4+8zJ/xELhprnDUg6sQZx
Ymb7QvBSSY5THoVAncADnwEuGF+AhFwti0+7F3ZOrpW57/pqF46AEIZSag8keGiH8fbCuMnoUzdFk
FWYgXYAsHdG5Pe31heksKHca7cJCf/DX1tdDu7pfE35F6vQTDJfBVoZk8ZF/u1TtVpya0BKDuo+hx
2OgGFvm9gyf+Dr9czpgL3qiUK9c5oM1X2HnRNca3/vcaKFgVVQx3tpULmwCM3MIyiTxwCYl1Rv+hJ
T0I3z3qQ==;
Received: from [167.114.80.109] (port=53560 helo=www.dominio2.com)
by server.myprimaryserver.com with esmtpa (Exim 4.93)
(envelope-from <[email protected]>)
id 1kEE9c-0004Dx-Kb
for [email protected]; Fri, 04 Sep 2020 13:01:32 -0300
Message-ID: <[email protected]>
Date: Fri, 04 Sep 2020 13:01:32 -0300
Subject: [MyWebSite] Recuperar su =?utf-8?Q?contrase=C3=B1a?=
From: MyWebMail - domain2.com <[email protected]>
To: [email protected]
Content-Type: multipart/alternative;
boundary="_=_swift_v4_1599235292_7fddbc54cfbf1e9b40d7f7974bdfb7a8_=_"
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - server.myprimaryserver.com
X-AntiAbuse: Original Domain - hotmail.com
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - dominio2.com
X-Get-Message-Sender-Via: server.myprimaryserver.com: authenticated_id: [email protected]
X-Authenticated-Sender: server.myprimaryserver.com: [email protected]
X-Source:
X-Source-Args:
X-Source-Dir:
X-IncomingHeaderCount: 19
Return-Path: [email protected]
X-MS-Exchange-Organization-ExpirationStartTime: 04 Sep 2020 16:01:33.6996
(UTC)
X-MS-Exchange-Organization-ExpirationStartTimeReason: OriginalSubmit
X-MS-Exchange-Organization-ExpirationInterval: 1:00:00:00.0000000
X-MS-Exchange-Organization-ExpirationIntervalReason: OriginalSubmit
X-MS-Exchange-Organization-Network-Message-Id:
efc4d144-0da7-407b-2f5a-08d850ebcba4
X-EOPAttributedMessage: 0
X-EOPTenantAttributedMessage: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa:0
X-MS-Exchange-Organization-MessageDirectionality: Incoming
X-MS-PublicTrafficType: Email
X-MS-Exchange-Organization-AuthSource:
AM7EUR06FT032.eop-eur06.prod.protection.outlook.com
X-MS-Exchange-Organization-AuthAs: Anonymous
X-MS-UserLastLogonTime: 9/4/2020 3:58:04 PM
X-MS-Office365-Filtering-Correlation-Id: efc4d144-0da7-407b-2f5a-08d850ebcba4
X-MS-TrafficTypeDiagnostic: AM7EUR06HT132:
X-MS-Exchange-EOPDirect: true
X-Sender-IP: 167.114.80.110
X-SID-PRA: [email protected]
X-SID-Result: PASS
X-MS-Exchange-Organization-PCL: 2
X-MS-Exchange-Organization-SCL: 0
X-Microsoft-Antispam: BCL:0;
X-OriginatorOrg: outlook.com
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Sep 2020 16:01:33.5947
(UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id: efc4d144-0da7-407b-2f5a-08d850ebcba4
X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-CrossTenant-AuthSource:
AM7EUR06FT032.eop-eur06.prod.protection.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Anonymous
X-MS-Exchange-CrossTenant-FromEntityHeader: Internet
X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg:
00000000-0000-0000-0000-000000000000
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7EUR06HT132
X-MS-Exchange-Transport-EndToEndLatency: 00:00:01.2929062
X-MS-Exchange-Processed-By-BccFoldering: 15.20.3348.016
X-Microsoft-Antispam-Mailbox-Delivery:
abwl:1;rwl:0;ucf:0;jmr:0;ex:0;auth:1;dest:I;OFR:SenderInAddressBook;ENG:(5062000282)(90000117)(90011020)(91015020)(91040095)(9000001)(9005001)(9020002)(9050020)(9060021)(9100082)(5061607266)(5061608174)(4900115)(2008001094)(2008000094)(4920090)(6400023)(4950131)(560107);
X-Message-Info:
ikU7DQaERA5q4jCCF/ZwqeSEZ9VGkJDl0GWtPIijDWAFCIyIG8Uo70QBHFDDqbHy0F9NQVZQE2/4qEVhvCQ3mkg0I/ZWkgmSVFgGjpbZLEQX5zwBrYcwvHIlUSoWBErWim40CqFUGADVZG/cU9fUHBMnqkOwvKOYIsGRaUdLCG8K10rGFTlibv5SgI7+CY4a2VPDO727vgqOTanpuGjLRDHXWhbTJbFI8GO+zrbfvnu8VXQfmlLO5lUc0NempIteIlVG8Xr5mrySzqu1Mb5w3ewTt3VWxJ5CeBu0cuTVpi8LS4cKvKLAIBA7BVjWTMvC/mnEgZ5q9gpEfveHdYns7z3yfEu7fy+r3yMxozgs8YLSePRF7PLtHJezC2ebZwwIi17C4LtMeyQ57XsoJaS+PmdWnI7lUFxX0/qmvGVYTzuQ2szUguLkpYNGaea2FzXA
X-Message-Delivery: Vj0xLjE7dXM9MDtsPTA7YT0xO0Q9MTtHRD0xO1NDTD0tMQ==
X-Microsoft-Antispam-Message-Info:
=?utf-8?B?QlJ3bFRkVWhoeXJ4bkhkdXhVdFliV1Fkbkk0NkVQVFYzbG9ZZVhrZUhpVjNp?=
=?utf-8?B?SGVpYVVxb0k0NU56RXZNNEZyWmU0anNKVlkyZ3pKMmtsWENjR3hlZUt4OG1L?=
=?utf-8?B?NytFQlF5eHhIcmQyRnpHeHkySWkwMENFTUp5ajZ4M1E1bm9DM0g0S0p5ZnVX?=
=?utf-8?B?WFlSNXoxN1FvcEpXMXF0bVAwdWY4a2c5U2RYa0tkSS9KcmRGczQ3UXhaTEND?=
=?utf-8?B?Zld0eXh1blZGb21rdDVSTVVQbU1RTk5oc0o4Y1BVU3V5NzlLQmJUL3FJZDNJ?=
=?utf-8?B?bFNKbXpNYmF4VW94L0hoYThsbHA2blpITGVSRHc5YzhXV2lzOUFzM3JtRUM0?=
=?utf-8?B?dXp0THVNUUdjbjJFK1UrZVFXQWM1YUNmaUNsbFpIeldTRDcxbkNPSFMxZ25H?=
=?utf-8?B?MGtCYnR5NTZ6dXA3MC9hbGhKUnN1OThqZy9FaXNoK1NpQ3ljUzBnQk5YTWNY?=
=?utf-8?B?dmRCWXpUZkY3NXY4NzloZkgvd2YxT0I3ZHlBejZ1S3NHMEUvTHd1RFptY3NU?=
=?utf-8?B?bm1qZ0g0OTJpSVJNamJ2dE5BMTIrTWJGRVlORzJxN0NjUnp2enZjWGhDV0Ir?=
=?utf-8?B?YmxUY3FHVjJ4VUVEYVpORmh6alFXSXViSllRL2VjYlJsMDh6TCtlYjkxR1Rj?=
=?utf-8?B?NGxXRUVUS1NQTWo4eTdRK0JlT29hQnJVTUN1MkhzVTR5YXZNY3ZPcjJtSDZZ?=
=?utf-8?B?QUdKbFV5bEQwb0xBSGRFaGJ2NnVhTnJMai9GQytXRXhWeThMbUFLMHV2L3By?=
=?utf-8?B?LzVQOFMra2dtNHJubkVLcEozN0ZWTU9UeENmbGY0UjdnZHQrZ2R6V0FiZXRJ?=
=?utf-8?B?OXFTYjB6TWNyQzhQYnh4SjdBWVA2dWxTTE4yTldHWFZtblA5UktnMkFTREtR?=
=?utf-8?B?Q0s2NE9jaDRqeHFBNitSVlBRWHlyQ1gwRjVMTkNlZG9MWG1zaGtGbGRqZ29R?=
=?utf-8?B?bTV1VlpPN1JUMjJWUUtuOStsYnBYdFplWUx1bjFHSzVUbFVuZWFNQjhuSTdN?=
=?utf-8?B?NS9YMW9TS0UramxvUEZTMThXL3JHMVArRGxzSnZoZDlmWCtsT3p6SVBESEV6?=
=?utf-8?B?djJzdFFVRTdiZzJ5eVh0eFE5QlhMWjJaczZCUHRKaEJQY0hLRy9pK0pCSWx5?=
=?utf-8?B?bjA0cjRwOVZqWnZTWGVMOHgzWUhxNWFQeFlpb1I5U1NwdFd4N2xEamRzT2Vz?=
=?utf-8?B?eFpqdmdIamFGVXFybmsyNFREcUVXV0x4UFNDUXNybGtqU090SGNkc25NTDVl?=
=?utf-8?B?a1JMcm5ZdU16TEE5WGkremIzZHNDZ3RtN05oTnlsK1k4TW0vYjVhVUpBZ2pN?=
=?utf-8?B?S3puYWNaZUpLWEJCRlhBUlZERlRFZkxPQ1ZoenFReTFHZjBVLzZBSUJmZm5x?=
=?utf-8?B?ZmZCS3FPTy9IZmFtbnh5NWlsTUNSSzRNZ1ZrL2RPdnpERmpjUzVucm9YV0hZ?=
=?utf-8?B?N1dHa3NteGhpUGFFZFFvdVpqY0tia3lFUGFYZUkrNjRGQkpnczNVb0RsdFRq?=
=?utf-8?B?V3BVV0dWR1R0c0lFam5hNDh6eWpTOWlhVGg1SXNYQ1J0ZHBqeFhvZGNCb0k5?=
=?utf-8?B?NGF4TGZ1cHQ0SThrb0p4anJaRzloTWFlWi96YUU1V3BZbkQ2eDg4bFpONkpy?=
=?utf-8?B?N09OcWtxMEZWNldFY29sZXhoUHpHcmJOR1NsaklaeXB0KzYrVmRPSUVaSytY?=
=?utf-8?Q?Qj2h4+ncBxAu+GEVJa/8?=
MIME-Version: 1.0

--_=_swift_v4_1599235292_7fddbc54cfbf1e9b40d7f7974bdfb7a8_=_
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hola Leonardo Ud quiere recuperar su contrase&ntilde;a, podr&aacu......


-----------------------------------
/END Recibed E-Mail in Outlook (Headers)
-----------------------------------

我通过 WHM 配置了 exim,并且手动处理 /etc/mailsips 和 /etc/mailhelo 文件:

/etc/mailip

*: 144.217.55.5
update.dominio1.com: 167.114.80.109
web.dominio1.com: 167.114.80.109
dominio1.com: 167.114.80.109
dev.dominio2.com: 167.114.80.110
dominio2.com: 167.114.80.110          <------

/etc/mailhelo

*: server.myprimaryserver.com
dominio1.com: dominio1.com
web.dominio1.com: dominio1.com
update.dominio1.com: dominio1.com.ar
dominio2.com: dominio2.com             <-----
dev.dominio2.com: dominio2.com

所以...我不明白为什么 exim 将地址 mail.domain2.com 解析为 ip .109 而不是 .110...

我正在研究一些 exim 配置选项...然后我发现了这个:

对于来自其他主持人的消息,H 和 U 字段标识遥控器 主持人并记录发送消息的用户的 RFC 1413 身份(如果已收到)。方括号中给出的数字是发送主机的 IP 地址。如果 H 字段中有一个未加括号的主机名(如上所示),则已验证它与 IP 地址相对应(请参阅 host_lookup 选项)。 如果名称在括号中,它是远程主机在 SMTP HELO 或 EHLO 命令中引用的名称,尚未验证。如果验证结果与 HELO 或 EHLO 给出的名称不同,则首先显示已验证的名称,然后是括号中的 HELO 或 EHLO 名称。

配置错误的主机(和邮件伪造者)有时会在 HELO 或 EHLO 命令中放置带或不带括号的 IP 地址,导致日志中的条目包含如下示例的文本:

H=(10.21.32.43) [192.168.8.34] H=([10.21.32.43]) [192.168.8.34] 这可能会造成混淆。只有方括号中的最终地址才可靠。

对于本地生成的消息(即不是通过 TCP/IP 接收的消息),将省略 H 字段,而 U 字段包含 Exim 调用者的登录名。

对于所有邮件,P 字段指定用于接收邮件的协议。这是存储在 $received_protocol 中的值。对于传入的 SMTP 邮件,该值表示是否使用了任何 SMTP 扩展 (ESMTP)、加密或身份验证。如果 SMTP 会话已加密,则还有一个额外的 X 字段来记录所使用的密码套件。

对于从使用 SMTP AUTH 命令进行身份验证的主机收到的消息,协议设置为“esmtpsa”或“esmtpa”。当 SMTP 连接已加密(“安全”)时,将使用第一个值。在这种情况下,有一个附加项 A=,后跟所使用的身份验证器的名称。如果身份验证器的 server_set_id 选项设置了身份验证标识,也会记录此标识,并用冒号与身份验证器名称分隔。

id 字段记录现有消息 id(如果存在)。收到的消息的大小由 S 字段给出。在传递消息时,可能会删除或添加标头,因此传递的消息副本的大小可能与此值不符(实际上可能彼此不同)。

log_selector 选项可用于在收到消息时请求记录其他数据。请参阅下面的第 53.15 节。

来源:https://www.exim.org/exim-html-current/doc/html/spec_html/ch-log_files.html#SECID251

附言:如果您想了解任何其他具体配置,请询问,我会向您发送更多信息。

编辑1:

应匿名用户的请求,我编辑了问题,添加了使用 nslookup 和 dig 命令的 DNS 解析。从我的服务器添加 dig 命令结果,在该服务器上我遇到了 exim 问题,并尝试查询另一个 dns 服务器 (8.8.8.8) 以便进行比较,我还添加了反向 DNS 解析。我正在更改 ips,如果他们进行测试,结果不会相同,这是隐私问题,如果有人想承诺进行更多调查,他们可以通过私人消息发送真实数据。

NS 查找:

[root@server ~]# nslookup dominio2.com
Server:         127.0.0.1
Address:        127.0.0.1#53

Non-authoritative answer:
Name:   dominio2.com
Address: 167.114.80.110

[root@server ~]# nslookup dominio1.com
Server:         127.0.0.1
Address:        127.0.0.1#53

Non-authoritative answer:
Name:   dominio1.com
Address: 167.114.80.109

[root@server ~]# nslookup www.dominio2.com
Server:         127.0.0.1
Address:        127.0.0.1#53

Non-authoritative answer:
www.dominio2.com      canonical name = dominio2.com.
Name:   dominio2.com
Address: 167.114.80.110

[root@server ~]# nslookup www.dominio1.com
Server:         127.0.0.1
Address:        127.0.0.1#53

Non-authoritative answer:
www.dominio1.com canonical name = dominio1.com.
Name:   dominio1.com
Address: 167.114.80.109

[root@server ~]# nslookup 167.114.80.110
110.80.114.167.in-addr.arpa     name = dominio2.com.

Authoritative answers can be found from:
114.167.in-addr.arpa    nameserver = dns10.ovh.ca.
114.167.in-addr.arpa    nameserver = ns10.ovh.ca.

[root@server ~]# nslookup 167.114.80.109
129.84.114.167.in-addr.arpa     name = dominio1.com.

Authoritative answers can be found from:
114.167.in-addr.arpa    nameserver = ns10.ovh.ca.
114.167.in-addr.arpa    nameserver = dns10.ovh.ca.

挖:

[root@server ~]# dig dominio2.com

; <<>> DiG 9.11.4-P2-RedHat-9.11.4-9.P2.el7 <<>> dominio2.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 22969
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 4, ADDITIONAL: 9

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;dominio2.com.                        IN      A

;; ANSWER SECTION:
dominio2.com.         8297    IN      A       167.114.80.110

;; AUTHORITY SECTION:
com.ar.                 12333   IN      NS      a.dns.ar.
com.ar.                 12333   IN      NS      c.dns.ar.
com.ar.                 12333   IN      NS      e.dns.ar.
com.ar.                 12333   IN      NS      b.dns.ar.

;; ADDITIONAL SECTION:
a.dns.ar.               85847   IN      A       200.108.145.50
b.dns.ar.               85847   IN      A       200.108.147.50
c.dns.ar.               85847   IN      A       200.108.148.50
e.dns.ar.               85847   IN      A       170.238.66.50
a.dns.ar.               12333   IN      AAAA    2801:140::10
b.dns.ar.               127182  IN      AAAA    2801:140:11::50
c.dns.ar.               10170   IN      AAAA    2801:140:10::10
e.dns.ar.               10170   IN      AAAA    2801:140:eeee::50

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon Sep 07 08:45:34 -03 2020
;; MSG SIZE  rcvd: 303




[root@server ~]# dig www.dominio2.com

; <<>> DiG 9.11.4-P2-RedHat-9.11.4-9.P2.el7 <<>> www.dominio2.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37005
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 4, ADDITIONAL: 9

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;www.dominio2.com.            IN      A

;; ANSWER SECTION:
www.dominio2.com.     11245   IN      CNAME   dominio2.com.
dominio2.com.         8233    IN      A       167.114.80.110

;; AUTHORITY SECTION:
com.ar.                 12269   IN      NS      b.dns.ar.
com.ar.                 12269   IN      NS      a.dns.ar.
com.ar.                 12269   IN      NS      c.dns.ar.
com.ar.                 12269   IN      NS      e.dns.ar.

;; ADDITIONAL SECTION:
a.dns.ar.               85783   IN      A       200.108.145.50
b.dns.ar.               85783   IN      A       200.108.147.50
c.dns.ar.               85783   IN      A       200.108.148.50
e.dns.ar.               85783   IN      A       170.238.66.50
a.dns.ar.               12269   IN      AAAA    2801:140::10
b.dns.ar.               127118  IN      AAAA    2801:140:11::50
c.dns.ar.               10106   IN      AAAA    2801:140:10::10
e.dns.ar.               10106   IN      AAAA    2801:140:eeee::50

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon Sep 07 08:46:38 -03 2020
;; MSG SIZE  rcvd: 321




[root@server ~]# dig @8.8.8.8 dominio2.com

; <<>> DiG 9.11.4-P2-RedHat-9.11.4-9.P2.el7 <<>> @8.8.8.8 dominio2.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 29665
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;dominio2.com.                        IN      A

;; ANSWER SECTION:
dominio2.com.         14399   IN      A       167.114.80.110

;; Query time: 24 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Mon Sep 07 08:47:42 -03 2020
;; MSG SIZE  rcvd: 59





[root@server ~]# dig @8.8.8.8 www.dominio2.com

; <<>> DiG 9.11.4-P2-RedHat-9.11.4-9.P2.el7 <<>> @8.8.8.8 www.dominio2.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 60583
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;www.dominio2.com.            IN      A

;; ANSWER SECTION:
www.dominio2.com.     14399   IN      CNAME   dominio2.com.
dominio2.com.         14399   IN      A       167.114.80.110

;; Query time: 50 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Mon Sep 07 08:48:21 -03 2020
;; MSG SIZE  rcvd: 77





[root@server ~]# dig 167.114.80.110

; <<>> DiG 9.11.4-P2-RedHat-9.11.4-9.P2.el7 <<>> 167.114.80.110
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 20428
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;167.114.80.110.                        IN      A

;; AUTHORITY SECTION:
.                       10800   IN      SOA     a.root-servers.net. nstld.verisign-grs.com. 2020090700 1800 900 604800 86400

;; Query time: 8 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon Sep 07 08:49:46 -03 2020
;; MSG SIZE  rcvd: 118




[root@server ~]# dig @8.8.8.8 167.114.80.110

; <<>> DiG 9.11.4-P2-RedHat-9.11.4-9.P2.el7 <<>> @8.8.8.8 167.114.80.110
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 27434
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;167.114.80.110.                        IN      A

;; AUTHORITY SECTION:
.                       86376   IN      SOA     a.root-servers.net. nstld.verisign-grs.com. 2020090700 1800 900 604800 86400

;; Query time: 1 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Mon Sep 07 08:50:15 -03 2020
;; MSG SIZE  rcvd: 118




[root@server ~]# dig +answer -x 167.114.80.110

; <<>> DiG 9.11.4-P2-RedHat-9.11.4-9.P2.el7 <<>> +answer -x 167.114.80.110
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25781
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;130.84.114.167.in-addr.arpa.   IN      PTR

;; ANSWER SECTION:
130.84.114.167.in-addr.arpa. 78762 IN   PTR     dominio2.com.

;; AUTHORITY SECTION:
114.167.in-addr.arpa.   78762   IN      NS      dns10.ovh.ca.
114.167.in-addr.arpa.   78762   IN      NS      ns10.ovh.ca.

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon Sep 07 08:58:36 -03 2020
;; MSG SIZE  rcvd: 129

编辑2:

为 .129 (dominio1.com) 添加了 PTR

[root@server ~]# dig -x 167.114.80.109

; <<>> DiG 9.11.4-P2-RedHat-9.11.4-9.P2.el7 <<>> -x 167.114.80.109
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 56187
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 3

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;109.80.114.167.in-addr.arpa.   IN      PTR

;; ANSWER SECTION:
109.80.114.167.in-addr.arpa. 2897 IN    PTR     dominio1.com.

;; AUTHORITY SECTION:
114.167.in-addr.arpa.   77211   IN      NS      dns10.ovh.ca.
114.167.in-addr.arpa.   77211   IN      NS      ns10.ovh.ca.

;; ADDITIONAL SECTION:
dns10.ovh.ca.           2258    IN      A       192.99.60.247
ns10.ovh.ca.            2258    IN      A       167.114.154.30

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Sep 09 09:28:15 -03 2020
;; MSG SIZE  rcvd: 166

相关内容