Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Whoiser change log

- Added - .tr ccLTDs added.
- Added - dev.js file added for Development process.
- Updated - result > "Domain Name" line added.

#### 1.17.0 - 21 April 2023

- Fixed - Code syntax to allow strict [#99](https://github.com/LayeredStudio/whoiser/pull/99)
Expand Down
12 changes: 12 additions & 0 deletions dev.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const whoiser = require('./index.js');

(async () => {

// WHOIS info from Registry (Verisign) AND Registrar (MarkMonitor) whois servers
let domainInfo = await whoiser('google.com')

// OR with options for whois server and how many WHOIS servers to query
let domainInfo2 = await whoiser.domain('blog.google', {host: 'whois.nic.google', follow: 1})

console.log(domainInfo, domainInfo2)
})();
1 change: 1 addition & 0 deletions src/parsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ const parseDomainWhois = (domain, whois, ignorePrivacy) => {
let colon = ': '
let text = []
let data = {
'Domain Name': domain,
'Domain Status': [],
'Name Server': [],
}
Expand Down
1 change: 1 addition & 0 deletions src/whoiser.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ let cacheTldWhoisServer = {
ro: 'whois.rotld.ro',
rs: 'whois.rnids.rs',
so: 'whois.nic.so',
tr: 'whois.trabis.gov.tr',
us: 'whois.nic.us',
ws: 'whois.website.ws',

Expand Down