# http-dns

> Node DNS library that uses Google's HTTPS DNS API for doing queries in the browser

Latest version **3.0.1** (published 2017-01-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install http-dns
pnpm add http-dns
yarn add http-dns
bun add http-dns
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.1 |
| Published | 2017-01-12 |
| First published | 2016-12-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Octoblu, Inc. |
| Maintainers | octoblu |
| Keywords | dns, http |

## Links

- npm: https://www.npmjs.com/package/http-dns
- Repository: https://github.com/octoblu/http-dns
- Homepage: https://github.com/octoblu/http-dns#readme
- Issues: https://github.com/octoblu/http-dns/issues
- npm.io page: https://npm.io/package/http-dns

## Dependencies (3)

- [url](https://npm.io/package/url.md) ^0.11.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.2
- [superagent](https://npm.io/package/superagent.md) ^3.1.0

## Recent versions

- 3.0.1 (latest) — 2017-01-12
- 3.0.0 — 2017-01-12
- 2.0.6 — 2017-01-04
- 2.0.5 — 2016-12-09
- 2.0.4 — 2016-12-09
- 2.0.3 — 2016-12-09
- 2.0.2 — 2016-12-09
- 2.0.1 — 2016-12-09
- 1.0.4 — 2016-12-09
- 1.0.1 — 2016-12-08

## README

# http-dns
Node DNS library that uses Google's HTTPS DNS API for doing queries in the browser

# NOTE: only resolveSrv is supported at this time

## dns.resolveSrv(hostname, callback)

Uses the DNS protocol to resolve service records (SRV records) for the hostname. The addresses argument passed to the callback function will be an array of objects with the following properties:

* priority
* weight
* port
* name

```javascript
{
  priority: 10,
  weight: 5,
  port: 21223,
  name: 'service.example.com'
}
```

[![Build Status](https://travis-ci.org/octoblu/http-dns.svg?branch=master)](https://travis-ci.org/octoblu/http-dns)
[![Test Coverage](https://codecov.io/gh/octoblu/http-dns/branch/master/graph/badge.svg)](https://codecov.io/gh/octoblu/http-dns)
[![Dependency status](http://img.shields.io/david/octoblu/http-dns.svg?style=flat)](https://david-dm.org/octoblu/http-dns)
[![devDependency Status](http://img.shields.io/david/dev/octoblu/http-dns.svg?style=flat)](https://david-dm.org/octoblu/http-dns#info=devDependencies)
[![Slack Status](http://community-slack.octoblu.com/badge.svg)](http://community-slack.octoblu.com)

[![NPM](https://nodei.co/npm/http-dns.svg?style=flat)](https://npmjs.org/package/http-dns)

---
_Source: https://npm.io/package/http-dns · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
