-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cea9320
commit 2137445
Showing
6 changed files
with
23 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
import { getAllDnsRecords } from '../src/index.ts' | ||
|
||
const allDnsRecords = await getAllDnsRecords('wordpress.org') | ||
const domain = 'wordpress.org' | ||
|
||
console.log(allDnsRecords.length) | ||
const allDnsRecords = await getAllDnsRecords(domain) | ||
|
||
console.log(`${allDnsRecords.length} DNS Records found for ${domain}`) | ||
console.log(allDnsRecords) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
import { DnsRecord, getDnsRecords } from '../src/index.ts' | ||
import { getDnsRecordsDig } from '../src/resolver-node-dig.ts' | ||
|
||
const domain = 'amazon.com' | ||
|
||
const txtRecords = await getDnsRecordsDig(domain, 'TXT') | ||
const txtRecords: DnsRecord[] = await getDnsRecords(domain, 'TXT', 'node-dig') | ||
|
||
console.log(`TXT records for ${domain}`) | ||
console.log(txtRecords) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters