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: 2 months 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 (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-12T16:24:55.000Z (over 8 years ago)
- Last Synced: 2025-04-28T11:14:04.772Z (2 months ago)
- Language: CoffeeScript
- Size: 30.3 KB
- Stars: 1
- Watchers: 12
- 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'
}
```[](https://travis-ci.org/octoblu/http-dns)
[](https://codecov.io/gh/octoblu/http-dns)
[](https://david-dm.org/octoblu/http-dns)
[](https://david-dm.org/octoblu/http-dns#info=devDependencies)
[](http://community-slack.octoblu.com)[](https://npmjs.org/package/http-dns)