Add a check for A or AAAA record

Add a check for A or AAAA record, they could have the same hostname