Socket
Book a DemoInstallSign in
Socket

@nativescript-community/dns-lookup

Package Overview
Dependencies
Maintainers
19
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nativescript-community/dns-lookup

A lightweight NativeScript plugin for DNS hostname resolution, returning IPv4 and IPv6 addresses using native iOS and Android APIs.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
19
Created
Source

@nativescript-community/dns-lookup

A lightweight NativeScript plugin that performs DNS lookups on both iOS and Android.
It resolves hostnames to IPv4 and IPv6 addresses using the corresponding platform native APIs (getaddrinfo on iOS and InetAddress on Android).

npm install @nativescript-community/dns-lookup

Usage

try {
  const addresses = await lookupDNS('my.hostname.is'); // Returns an array of ip addresses
} catch (e) {
  console.error(e);
}

License

Apache License Version 2.0

Keywords

NativeScript

FAQs

Package last updated on 18 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts