npm install srv-lookup
Get server url from srv record, that can later be used as the domain name in for example an axios call.
const srvLookup = require('srv-lookup');
const serverUrl = await srvLookup('myserver.mydomain'); //this will return something like serverurl:serverport
👤 Emil Rowland
- Github: @emilrowland
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Copyright © 2020 Emil Rowland.
This project is MIT licensed.