Stream and download logs from your NextDNS account. This project is experimental and may contain bugs.
In current form, it's useful for simple debugging and logging of DNS activity on your local network. You could run the stream command during debugging, or use the download command to download logs locally.
Follow these steps to get started:
- Copy
example.envto.envand fill in your NextDNS profile and API key. You can retrieve these from the NextDNS portal. - Make sure you have
golanginstalled locally. On Mac, you can install it usingbrew install golang. - Run
go buildto build the executable locally. - Finally, test using
./nextdns streamto stream all logs.
The stream and download logs are stored in your local directory. You can monitor these in realtime running tail -f <logfile.log>.
./nextdns stream
./nextdns stream coldstart.dev
./nextdns download -6h now
./nextdns download 2022-09-01 2022-09-05