dns

module
v0.0.0-...-49a0fbc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2023 License: MIT

README

dns.akash.page is a DNS server that takes creative liberties with the DNS protocol to offer handy utilities and services that are easily accessible via the command line.

For docs, visit www.dns.akash.page

Sample commands

dig help @dns.akash.page

dig mumbai.time @dns.akash.page

dig 2023-05-28T14:00-bengaluru-berlin/de.time @dns.akash.page

dig newyork.weather @dns.akash.page

dig 42km-mi.unit @dns.akash.page

dig 100USD-INR.fx @dns.akash.page

dig ip @dns.akash.page

dig 987654321.words @dns.akash.page

dig pi @dns.akash.page

dig 100dec-hex.base @dns.akash.page

dig fun.dict @dns.akash.page

dig A12.9352,77.6245/12.9698,77.7500.aerial @dns.akash.page

Running locally

  • Clone the repo
  • Copy config.sample.toml to config.toml and edit the config
  • Make sure you have a copy of the cities15000.txt file at the root of this directory (instructions are in the config.sample.toml file)
  • Make sure to download the wordnet from Wordnet website.(more instructions are in the config.sample.toml file)
  • Extract the tarball and rename extracted the directory to wordnet
  • Run make build to build the binary and then run ./dnstoys.bin

Others

Directories

Path Synopsis
cmd
internal
geo
Package geo parses and returns a geonames.org geolocation data.
Package geo parses and returns a geonames.org geolocation data.
services/cidr
package cidr returns usable IP range for a given IP Address prefix.
package cidr returns usable IP range for a given IP Address prefix.
services/epoch
converts an epoch/unix timestamp to human readable form.
converts an epoch/unix timestamp to human readable form.
services/fx
fx does Foreign Exchange / currency conversions.
fx does Foreign Exchange / currency conversions.
services/num2words
Package num2words implements numbers to words converter.
Package num2words implements numbers to words converter.
services/timezones
package timezones returns times for various geographic locatons.
package timezones returns times for various geographic locatons.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL