Project

General

Profile

Actions

Task #1138

closed

remove CNAMEs from DNS when mail is involved

Added by Florian Effenberger over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
High
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Tags:

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

Actions #1

Updated by Christian Lohmaier over 10 years ago

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
Actions #2

Updated by Florian Effenberger over 10 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF