Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/octoblu/http-dns
Node DNS library that uses Google's HTTPS DNS API for doing queries in the browser
https://github.com/octoblu/http-dns
Last synced: 10 days ago
JSON representation
Node DNS library that uses Google's HTTPS DNS API for doing queries in the browser
- Host: GitHub
- URL: https://github.com/octoblu/http-dns
- Owner: octoblu
- License: mit
- Created: 2016-12-08T23:10:50.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-12T16:24:55.000Z (almost 8 years ago)
- Last Synced: 2024-11-29T23:48:07.273Z (about 1 month ago)
- Language: CoffeeScript
- Size: 30.3 KB
- Stars: 1
- Watchers: 13
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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)