#configuration #host #unix #unbound #generate #educational #dnsmasq

app adnix

Rust binary to generate DNSMasq and Unbound configurations from UNIX host files

15 releases

0.4.10 Apr 10, 2024
0.4.9 Oct 17, 2023
0.4.7 Aug 24, 2023
0.4.6 Jul 24, 2023
0.2.0 Nov 6, 2019

#55 in Configuration

MIT/Apache

13KB
226 lines

adnix-rs Version info No Maintenance Intended Built with Garnix

Rust reimplementation of sniner/adnix for educational purposes.

Installation

adnix is available on crates.io and you can install it through cargo.

cargo install adnix

Usage

USAGE:
    adnix [OPTIONS]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -f, --formatter <STRING>       Formatter [default: dnsmasq]  [possible values: dnsmasq, dnsmasq-server, unbound]
        --address <ADDRESS>        IPv4 address [default: 127.0.0.1]
        --v6address <ADDRESS>      IPv6 address [default: ::1]
    -o, --output <OUTPUT>          Output file
    -s, --sources_file <STRING>    File to read "name|source url" mappings from

Sample sources file for use with adnix.

Yoyo|http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=0&mimetype=plaintext
Malware Domain List|http://www.malwaredomainlist.com/hostslist/hosts.txt

Dependencies

~9–16MB
~210K SLoC