getRecordDataForDomains

cddnss.getRecordDataForDomains

Returns the DNS record data for the given domains.

Parameters:

  • domains The domains for which the DNS record data is needed. [Array<string>]

Returns:

  • The DomainRecordList for the records for all given domains [Promise<DomainRecordList>]

cddnss.getRecordDataForDomains(['example.com', 'example.net'])
  .then((domainRecordList: DomainRecordList) => {
    for (const domain in domainRecordList) {
      const recordData: Array<RecordData> = domainRecordList[domain];
      console.log(recordData);
    }
  });

Last updated