Network

Names, addresses and ports.

/dns

A name's records.

Parameters

hoststring · required
The name; an IP address for PTR
typeinteger, 0 to 7 · default 0
0 A and AAAA, 1 PTR, 2 NS, 3 CNAME, 4 MX, 5 SRV over TCP, 6 SRV over UDP, 7 TXT
servicestring
SRV's service, which 5 and 6 require

Answer

result is string[] or dns.MXRecord[] or dns.SRVRecords.

dns.MXRecord

hoststring
preferenceinteger

dns.SRVRecords

cnamestring
addressesdns.SRVRecord[]

dns.SRVRecord

targetstring
portinteger
priorityinteger
weightinteger

/ping

ICMP echoes to an address, each one's round trip.

Parameters

hoststring · required
An IPv4 address
countinteger, 1 to 10 · default 4
Echoes
ttlinteger, 5 to 255 · default 64
Time to live
timeoutnumber, 0.8 to 8 · default 2
Seconds

Answer

result is ping.Response.

ping.Response

maxnumber
Milliseconds
avgnumber
Milliseconds
minnumber
Milliseconds
lossnumber · optional
The share of echoes unanswered, 0 to 1
sequencesping.Sequence[] · optional
Each reply, in order

ping.Sequence

hoststring
The address that replied
latencynumber
Milliseconds

/port

Which of an address's TCP ports are open, by port. A port that never answered is left out.

Parameters

hoststring · required
An IPv4 address
portsup to 50 integers, 1 to 65535, comma-separated · required
The ports
timeoutnumber, 0.8 to 8 · default 1.5
Seconds
stealthboolean · default false
True: a SYN scan, no connection completed

Answer

result is object of port.Response.

port.Response

openboolean
filteredboolean · optional
An ICMP unreachable (a firewall's reject, or a router that can't reach the host) answered instead of the host
serviceportinfo.Description
The port's usual service, if well known
tookinteger · optional
Milliseconds to answer

portinfo.Description

Namestring
Descriptionstring

/whois

A domain's registration, by RDAP or whois.

Parameters

querystring · required
The domain; a subdomain reads as its registered name

Answer

result is whois.Result.

whois.Result

namestring
unicode_namestring · optional
handlestring · optional
statusstring[] · optional
createddate-time · optional
UTC, to the second: RFC 3339 with no fraction, as updated, expires and transferred
updateddate-time · optional
expiresdate-time · optional
transferreddate-time · optional
nameserverswhois.Nameserver[] · optional
dnssecwhois.DNSSEC · optional
registrarwhois.Registrar · optional
resellerwhois.Contact · optional
registrantwhois.Contact · optional
administrativewhois.Contact · optional
technicalwhois.Contact · optional
billingwhois.Contact · optional
redactedstring[] · optional
Each field the registry withheld, by its key here ("registrant.email"), sorted
whois_serverstring · optional
sourcestring

whois.Nameserver

namestring
addressesstring[] · optional

whois.DNSSEC

signedboolean
dswhois.DS[] · optional
keyswhois.Key[] · optional

whois.DS

key_taginteger
algorithmstring
digest_typestring
digeststring

whois.Key

flagsinteger
algorithmstring
public_keystring

whois.Registrar

handlestring · optional
namestring · optional
organizationstring · optional
addresswhois.Address · optional
emailstring · optional
phonestring · optional
phone_extensionstring · optional
faxstring · optional
fax_extensionstring · optional
urlstring · optional
contact_formstring · optional
iana_idinteger · optional
abusewhois.Contact · optional

whois.Address

streetstring · optional
citystring · optional
regionstring · optional
postal_codestring · optional
countrystring · optional

whois.Contact

handlestring · optional
namestring · optional
organizationstring · optional
addresswhois.Address · optional
emailstring · optional
phonestring · optional
phone_extensionstring · optional
faxstring · optional
fax_extensionstring · optional
urlstring · optional
contact_formstring · optional

/macaddress

Who made a network card.

Parameters

macstring · required
The MAC address

Answer

result is macaddress.Vendor.

macaddress.Vendor

vendorstring
privateboolean · optional
Registered privately
blockinteger
IEEE's block, as a character code: l MA-L, m MA-M, s MA-S, c CID, u unknown
updatedstring · optional
When the registration last changed, YYYY/MM/DD