Created
January 20, 2021 10:22
-
-
Save mdtanrikulu/a3949b41eb160dc97fd911382e9607aa to your computer and use it in GitHub Desktop.
Resolve SRV Record
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import dns from "dns"; | |
dns.resolveSrv("_girepo._tcp.dev.golem.network", (err, result) => { | |
console.log(result); | |
}) | |
/* result | |
[ | |
{ | |
name: 'yacn.dev.golem.network', | |
port: 8000, | |
priority: 1, | |
weight: 1 | |
} | |
] | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment