dns-comparer
Checks that two domains point to the same ip.
Problem
If you need to check if two domain names points to the same ip, this module is for that.
Usage
var compare = compare; // can check two domains; // can check also ips;
Find more usage examples here
Callback
Callback returns error
as a first param with if something went wrong (ex. no DNS record for domain found).
Callback returns result
object as a second param if comparing was done:
intersected: Boolean // indicates if domains points to common ips exact: Boolean // if domains point to exactly the same ip or ips domain1: String // first domain name to check domain2: String // second domain name to check ips1: Array // ips for first domain ips2: Array // ips for second domain intersection: Array // common ips for first and second domains