Modules@robinpath/dns

@robinpath/dns

0.1.0Public

DNS lookups: resolve, reverse, MX, TXT, NS, SRV, SOA, CNAME records

@robinpath/dns

DNS lookups: resolve, reverse, MX, TXT, NS, SRV, SOA, CNAME records

Category Functions Auth License

Why use this module?

The dns module lets you:

  • Resolve hostname to records by type
  • Resolve hostname to IPv4 addresses
  • Resolve hostname to IPv6 addresses
  • Reverse DNS lookup
  • OS-level DNS lookup

All functions are callable directly from RobinPath scripts with a simple, consistent API.

Installation

npm install @robinpath/dns

Quick Start

No credentials needed — start using it right away:

dns.resolve4 "example.com"

Available Functions

FunctionDescription
dns.resolveResolve hostname to records by type
dns.resolve4Resolve hostname to IPv4 addresses
dns.resolve6Resolve hostname to IPv6 addresses
dns.reverseReverse DNS lookup
dns.lookupOS-level DNS lookup
dns.mxGet MX records sorted by priority
dns.txtGet TXT records
dns.nsGet nameserver records
dns.srvGet SRV records
dns.soaGet SOA record
dns.cnameGet CNAME records
dns.isResolvableCheck if hostname resolves

Examples

Resolve hostname to IPv4 addresses

dns.resolve4 "example.com"

Resolve hostname to IPv6 addresses

dns.resolve6 "example.com"

Reverse DNS lookup

dns.reverse "8.8.8.8"

Integration with RobinPath

import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/dns";

const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);

const result = await rp.executeScript(`
  dns.resolve4 "example.com"
`);

Full API Reference

See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.

Related Modules

License

MIT

Versions (1)

VersionTagPublished
0.1.0latestyesterday
Install
$ robinpath install @robinpath/dns
Version0.1.0
LicenseMIT
Unpacked Size3.8 KB
Versions1
Weekly Downloads0
Total Downloads0
Stars0
Last Publishyesterday
Createdyesterday

Category

utilities