News for hackers. Stuff that matters.
Re:Please do not put IP addresses into DNS MX records by DaiPlusPlus on Sunday February 21, 2021 @01:22PM (#26215727)
What if it's an AAAA record?
Re:Please do not put IP addresses into DNS MX records by jeffbee on Sunday February 21, 2021 @02:11PM (#26216181)
RFC 5321 is ambivalent of A vs. AAAA. When discussing the matter, 5321 says "A or AAAA RR". It later says about IPv6 that "The appropriate actions to be taken either will depend on local circumstances." When I re-wrote Gmail's DNS libraries about 6 years ago, I wrote it to start with AAAA and fall back to A. So if you have an MX and AAAA records for those names, you should notice all your inbound from Google comes via IPv6.
Re:Please do not put IP addresses into DNS MX records by gog on Sunday February 21, 2021 @06:07PM (#26218287)
I've noticed that!

I believe Postfix also delivers to IPv6 if possible.

Re:Please do not put IP addresses into DNS MX records by stonesweep on Sunday February 21, 2021 @01:30PM (#26215802)
In my travels there's a significant portion of the internet which is not IPv6 capable; for example the World Community Grid failed for me when trying to use pure IPv6, and they send emails about things. I'd currently not risk using an IPv6 record for my MX, I suspect a high failure rate delivering email from every service on the planet will follow.
Re:Please do not put IP addresses into DNS MX records by s800 on Sunday February 21, 2021 @01:53PM (#26216031)
> set qu=mx > gmail.com. Server: 10.1.1.1 Address: 10.1.1.1#53

Non-authoritative answer: gmail.com mail exchanger = 20 alt2.gmail-smtp-in.l.google.com. gmail.com mail exchanger = 5 gmail-smtp-in.l.google.com. gmail.com mail exchanger = 40 alt4.gmail-smtp-in.l.google.com. gmail.com mail exchanger = 10 alt1.gmail-smtp-in.l.google.com. gmail.com mail exchanger = 30 alt3.gmail-smtp-in.l.google.com.

Authoritative answers can be found from: > set qu=aaaa > gmail-smtp-in.l.google.com. Server: 10.1.1.1 Address: 10.1.1.1#53

Non-authoritative answer: gmail-smtp-in.l.google.com has AAAA address 2607:f8b0:4001:c05::1a

Re:Please do not put IP addresses into DNS MX records by mlyle on Sunday February 21, 2021 @02:05PM (#26216137)
Sure, but it has A records too.
Re:Please do not put IP addresses into DNS MX records by stonesweep on Monday February 22, 2021 @09:21AM (#26224830)
I wake up and see the HackerNews downvote train has hit myself and you, when what you said is 100% correct; gmail-smtp-in.l.google.com is both IPv4 and IPv6.

The network I'm on right now (VPN to work) cannot service IPv6 and I cannot connect to the IPv6 IP for that MX host, but I can easily connect to the IPv4 endpoint.