1.0.6 • Published 2 years ago

react-native-dns-lookup v1.0.6

Weekly downloads
555
License
MIT
Repository
github
Last release
2 years ago

react-native-dns-lookup

Community Supported

A React Native module that leverages iOS and Android native networking libraries to lookup all of the IP addresses associated with a hostname

Usage

import { getIpAddressesForHostname } from 'react-native-dns-lookup';

// For a given hostname, returns a promise that resolves with an array of strings
// containing all of the ip addresses associated with the hostname.
getIpAddressesForHostname("github.com").then(ipAddresses => console.log(ipAddresses));

// Output: ["192.30.255.112", "192.30.255.113"]

Installation

$ npm install react-native-dns-lookup --save

or

$ yarn add react-native-dns-lookup --save

Contributions

Code contributions and improvements by the community are welcomed! See the LICENSE file for current open-source licensing and use information.

Before we can accept pull requests from contributors, we require a signed Contributor License Agreement (CLA),

1.0.6

2 years ago

1.0.5

2 years ago

1.0.3

4 years ago

1.0.4

4 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago