Skip to content

violetbuse/nessie_2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nessie_2

Package Version Hex Docs

A fork of ckreiling/nessie, a basic dns client for gleam on the erlang target.

gleam add nessie_2
import nessie_2
import gleam/io

pub fn main() {
  let ipv4_addrs = nessie_2.lookup_ipv4("gleam.run", nessie_2.In, [])
  io.debug(ipv4_addrs)
}

Further documentation can be found at https://hexdocs.pm/nessie_2.

Supported DNS Records

The following is a list of supported DNS record types. If nessie doesn't currently support a DNS record type you want, feel free to contribute to this project!

  • A
  • AAAA
  • TXT
  • CNAME
  • MX
  • SOA
  • NS
  • PTR
  • SRV
  • CERT
  • DCHID
  • DNAME
  • DNSKEY
  • DS

What about JavaScript support?

Due to Erlang and JavaScript's fundamentally different approaches to asynchronous programming (processes & event loops, respectively), it's not currently possible in Gleam to write a DNS client supporting both targets.

For more information, see this Discord thread.

Development

gleam test  # Run the tests
gleam shell # Run an Erlang shell

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors