No description
Find a file
2026-01-30 15:57:25 +00:00
utils initial 2026-01-27 15:07:54 +07:00
.gitignore initial 2026-01-27 15:07:54 +07:00
daned.service initial 2026-01-27 15:07:54 +07:00
go.mod initial 2026-01-27 15:07:54 +07:00
go.sum initial 2026-01-27 15:07:54 +07:00
image.png initial 2026-01-27 15:07:54 +07:00
main.go initial 2026-01-27 15:07:54 +07:00
Makefile initial 2026-01-27 15:07:54 +07:00
notify-agent-daned initial 2026-01-27 15:07:54 +07:00
notify-agent-daned.service initial 2026-01-27 15:07:54 +07:00
README.md Update README.md 2026-01-30 15:57:25 +00:00

daned

this is a linux daemon to check if website TLSA record are valid.

how it works

OS dns queries are being captured, passed to DANE verification func and then, if verification fails, program shows a warning using notify-send

why?

nothing supported DANE directly, and I wanted to create a toy to play with

installation & dependencies

install go 1.25.x, libpcap and socat, possibly notify-send; your DNS resolver must support DNSSEC

git clone https://git.chadpug.org/arthur/daned  
make && make install && make install-systemd # don't worry, make uninstall is avaliable; files are installed in /etc/systemd/system and /usr/local/bin

configuration

daned uses enviroment variables to get configuration values. avaliable ones:

mandatory:
USERNAME - user who will receive notifications
INTERFACE - interface on which program should intercept DNS requests

optional:
CACHETTL - cache "time to live"; default 15 mins

you can edit these values in daned.service, or pass directly to the program
example:

USERNAME=bob INTERFACE=eth0 CACHETTL=5 ./daned  

starting the program

systemctl enable --user --now notify-agent-daned # as regular user who will receive notifications  
systemctl enable --now daned # as root, through its possible to use CAP_NET_ADMIN  

and you're good to go :)

note: this probably creates new security vulnerabilities instead of fixing existing, so please don't consider using this seriously

credits: