Rust reimplementation of https://github.com/sniner/adnix for educational purposes
Go to file
GitHub Actions 63d24b780e flake.lock: Update
Flake lock file updates:

• Updated input 'advisory-db':
    'github:rustsec/advisory-db/0631800c0a23c1e543842a70ccb698d0690f8cc3?narHash=sha256-%2BeWE3wGpGTBy90vdqYhHM4uGScHHn5Y8MugnMXWy3g8%3D' (2024-04-13)
  → 'github:rustsec/advisory-db/6ab370c779c140c9cb2e7ff1367dd1b66c415409?narHash=sha256-JXiXi2Egq7gHfIvigBXFSdzNsxIjk1s9fcq1ibfoD/U%3D' (2024-04-20)
• Updated input 'crane':
    'github:ipetkov/crane/220387ac8e99cbee0ca4c95b621c4bc782b6a235?narHash=sha256-bMDXn4AkTXLCpoZbII6pDGoSeSe9gI87jxPsHRXgu/E%3D' (2024-04-09)
  → 'github:ipetkov/crane/45ea0059fb325132fdc3c39faffb0941d25d08d3?narHash=sha256-LjQ11ASxnv/FXfb8QnrIyMkyqSqcBPX%2BlFK8gu0jSQE%3D' (2024-04-18)
• Updated input 'devshell':
    'github:numtide/devshell/2d45b54ca4a183f2fdcf4b19c895b64fbf620ee8?narHash=sha256-HzpgM/wc3aqpnHJJ2oDqPBkNsqWbW0WfWUO8lKu8nGk%3D' (2024-03-22)
  → 'github:numtide/devshell/12e914740a25ea1891ec619bb53cf5e6ca922e40?narHash=sha256-wtBhsdMJA3Wa32Wtm1eeo84GejtI43pMrFrmwLXrsEc%3D' (2024-04-19)
• Updated input 'fenix':
    'github:nix-community/fenix/c739f83545e625227f4d0af7fe2a71e69931fa4c?narHash=sha256-KcvsEm0h1mIwBHFAzWFBjGihnbf2fxpAaXOdVbUfAI4%3D' (2024-04-12)
  → 'github:nix-community/fenix/3247290e1bba55878a2c62d43894d0309d29c918?narHash=sha256-lYWehi0cqBdsL1W4xeUnUcXw4U4aBKKCmmQrR01yqE0%3D' (2024-04-20)
• Updated input 'fenix/rust-analyzer-src':
    'github:rust-lang/rust-analyzer/657b33b0cb9bd49085202e91ad5b4676532c9140?narHash=sha256-VDxsvgj/bNypHq48tQWtc3VRbWvzlFjzKf9ZZIVO10Y%3D' (2024-04-11)
  → 'github:rust-lang/rust-analyzer/c83d8cf5844fff3d6e243ab408669222059af1c6?narHash=sha256-HsVa%2BQM2vMra80OjnjH7JhdvLeJuMdR4sxBNHJveMe4%3D' (2024-04-19)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/a0c9e3aee1000ac2bfb0e5b98c94c946a5d180a9?narHash=sha256-icE1IJE9fHcbDfJ0%2BqWoDdcBXUoZCcIJxME4lMHwvSM%3D' (2024-04-12)
  → 'github:NixOS/nixpkgs/fd16bb6d3bcca96039b11aa52038fafeb6e4f4be?narHash=sha256-LJbHQQ5aX1LVth2ST%2BKkse/DRzgxlVhTL1rxthvyhZc%3D' (2024-04-20)
2024-04-21 00:16:38 +00:00
.github chore: update oranda setup 2024-04-16 22:54:12 +05:30
.idea Add IntelliJ stuff 2020-03-31 00:14:07 +05:30
src fix: upgrade to Rust 1.77.0 2024-03-29 12:12:39 +05:30
test_data adnix: rudimentary tests for config parser 2020-04-29 02:46:06 +05:30
wix chore: refresh cargo-dist setup 2024-04-10 23:08:09 +05:30
.git-blame-ignore-revs chore(git): add Alejandra reformat to blame ignore revs 2023-02-22 18:29:18 +00:00
.gitignore refactor(docs): automatically publish docs from CI 2023-11-03 02:04:36 +05:30
Cargo.lock chore(deps): lock file maintenance 2024-04-20 02:14:40 +00:00
Cargo.toml chore: Release adnix version 0.4.10 2024-04-10 23:53:18 +05:30
LICENSE-APACHE fix: dual-license under MIT and Apache 2.0 2023-10-17 14:03:35 +05:30
LICENSE-MIT fix: dual-license under MIT and Apache 2.0 2023-10-17 14:03:35 +05:30
README.md refactor(docs): automatically publish docs from CI 2023-11-03 02:04:36 +05:30
default.nix fix(flakes): adjust flake-compat URL 2023-06-25 12:27:53 +05:30
flake.lock flake.lock: Update 2024-04-21 00:16:38 +00:00
flake.nix Revert "flake: disable cargo-audit" 2024-04-10 22:45:39 +05:30
oranda.json chore: update oranda setup 2024-04-16 22:54:12 +05:30
rust-toolchain.toml fix: upgrade to Rust 1.77.2 2024-04-10 22:04:15 +05:30
shell.nix fix(flakes): adjust flake-compat URL 2023-06-25 12:27:53 +05:30

README.md

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