I am a bit confused with regards to MX and wildcard-A-entries in a dns zone.
Imagine a zone foobar.com with these dns settings (NS set is there, leaving out)
foobar.com IN A 1.2.3.4
*.foobar.com IN A 1.2.3.4
foobar.com IN MX 10 mail.otherhost.com
When sending mail to [email protected] this goes to mail.otherhost.com. All right.
When sending mail to [email protected] this goes to 1.2.3.4.
As I understand this is correct with https://www.ietf.org/rfc/rfc1912.txt there "2.7 Wildcard records" and the example (its vice versa, but anyway).
My question now is: How do MTAs like Postfix "strip" the subdomain part from the host part when getting ("resolving") the MX host?
My problem of understanding is: If the top level domain is .com, this is simple. Host ist the part before .com. But there are many top level domains with sub-top-level, e.g. .co.at (Austria).
Any ideas?
