#chat

bin+lib dominion-chat

DNS chat server for fun and profit

4 releases (2 breaking)

0.3.0 Feb 3, 2023
0.2.0 Aug 5, 2022
0.1.1 Jul 25, 2022
0.1.0 Jul 25, 2022

#151 in #chat

MPL-2.0 license

23KB
483 lines

Dominion Chat

DNS chat server for fun and profit

Messages can be sent in clear text or xor encrypted:

$ dig @127.0.0.1 -p 5533 hello-world.example.com
$ dig @127.0.0.1 -p 5533 xor.6b666f6f6c23706660716677.example.com

Giving:

dominion-chat

A file can also be requested, getting its encrypted contents:

dominion-chat

Usage

Usage: dchat [-t <threads>] [-p <port>] [-i <ip>] [-d <domain>]

Receive DNS messages from the world

Options:
  -t, --threads     number of threads in the thread pool
  -p, --port        UDP port to listen to
  -i, --ip          ip to listen to
  -d, --domain      domain name to use as a filter
  --help            display usage information

Configuration file

If a file called configuration.toml exists in the current directory it will be read to configure dominion-chat.

Example:

ip = "0.0.0.0"
port = 5353
domain = "example.com"
threads = 1

[xor]
key = 3
signal = "test"

[files]
this = "test1.txt"
is = "test2.txt"
an = "test3.txt"
example = "test4.txt"

Dependencies

~0.9–1.6MB
~33K SLoC