No description
Find a file
2023-06-14 16:17:11 +07:00
.github Create FUNDING.yml 2019-07-24 21:52:18 +07:00
fuzz closes #13 2023-06-14 16:17:11 +07:00
src Fix client hanng when message is too large 2023-05-18 10:38:03 +07:00
tests fix(txt): TXT can contain multiple strings 2022-06-29 16:05:23 +02:00
.travis.yml first release 2019-06-25 10:45:34 +07:00
dnsclient.nimble closes #13 2023-06-14 16:17:11 +07:00
LICENSE add license file 2021-09-30 16:59:47 -04:00
README.md add readme 2019-06-25 14:11:32 +07:00

dnsclient

Simple DNS Client and library in pure Nim

Installation

$ nimble install dnsclient

Usage

This is a hybird repo, contains a command line DNS client and library for DNS query. For now, only some simple records are supported, but adding new records is very simple.

Feel free to make PR or raise an issue as your need!

CLI

$ dnsclient TXT txt.example.huy.im

Library

import dnsclient

let client = newDNSClient()
let resp = client.sendQuery("txt.example.huy.im", TXT)
assert resp.answers[0].kind == TXT
let rr = TXTRecord(resp.answers[0])
assert rr.data == "dnsclient.nim"