joemiller/dns_compare

Feature request: cname-flag

Opened this issue · 0 comments

As some webhost put there alias as A-records, and some put them as CNAME, it would be nice with a flag that can handle that.

Exemple, at one DNS-server I have:

exemple.com. A 1.2.3.4
www.exemple.com. A 1.2.3.4

At the other I have

exemple.com. A 1.2.3.4
www.exemple.com CNAME exemple.com.

In normal mode, it should say its a missmatch:

(MIS-MATCH) query: www.exemple.com.
 Expected:  7200 IN CNAME exemple.com.
 Received:  None

Results:
Matches:      1
Mis-matches:  1

But with the cname-flag, it reports:

(CNAME-MATCH) query: www.exemple.com.
 Expected:  7200 IN CNAME exemple.com. (A 1.2.3.4)
 Received:  7200 IN A 1.2.3.4

Results:
Matches:      1
Cname-matches:  1
Mis-matches:  0