dnsclient

Simple DNS Client & Library

Pure Nim score 30/100 · tests present · docs generated

Summary

Latest Version Unknown
License MIT
CI Status Passing
Downloads 0
Last Indexed 2026-07-21 05:24

Tags

Installation

nimble install dnsclient
choosenim install dnsclient
git clone https://github.com/ba0f3/dnsclient.nim

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
dnsclient - - - - - - -

Source

Repository https://github.com/ba0f3/dnsclient.nim
Homepage https://github.com/ba0f3/dnsclient.nim
Documentation View Documentation
Registry Source nimble_official

README

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"