Task #1138
closed
remove CNAMEs from DNS when mail is involved
Added by Florian Effenberger about 9 years ago.
Updated about 9 years ago.
Description
When mail is involved, there should ideally be no CNAMEs in DNS, but rather IN A/AAAA/MX/TXT records, as some MTAs seem to be confused otherwise
script to undo CNAME mapping. if line maches CNAME www.libreoffice.org, then print A, AAA, MX and corresponding TXT records and skip to next line , otherwise just print the line as-is.
awk '/CNAME *www.libreoffice.org/{ printf "%-25sIN A 89.238.68.168\n%-25sIN AAAA 2a00:1828:a012:168::1\n%-25sIN MX 10 bilbo2.documentfoundation.org.\n%-25sIN TXT \"v=spf1 a:bilbo2.documentfoundation.org ?all\"\n", $1, $1, $1, $1; next } {print }' < cname_dnsrecords.lst > dnsrecords_fixed.lst
- Status changed from New to Closed
Also available in: Atom
PDF