MCPcopy Index your code
hub / github.com/containers/aardvark-dns

github.com/containers/aardvark-dns @v2.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.0.0 ↗ · + Follow
89 symbols 207 edges 17 files 37 documented · 42%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

aardvark-dns

Aardvark-dns is an authoritative dns server for A/AAAA container records. It can forward other requests to configured resolvers.

Read more about configuration in src/backend/mod.rs. It is mostly intended to be used with Netavark which will launch it automatically if both are installed.

aardvark-dns 0.1.0

USAGE:
    aardvark-dns [OPTIONS] <SUBCOMMAND>

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

OPTIONS:
    -c, --config <CONFIG>    Path to configuration directory
    -p, --port <PORT>        Host port for aardvark servers, defaults to 5533

SUBCOMMANDS:
    help    Print this message or the help of the given subcommand(s)
    run     Runs the aardvark dns server with the specified configuration directory

MSRV (Minimum Supported Rust Version)

v1.88

We test that Netavark can be build on this Rust version and on some newer versions. All newer versions should also build, and if they do not, the issue should be reported and will be fixed. Older versions are not guaranteed to build and issues will not be fixed.

Build

make

Run Example

RUST_LOG=trace ./bin/aardvark-dns --config src/test/config/podman/ --port 5533 run

Configuration file format

Contributing

Extension points exported contracts — how you extend this code

AardvarkWrap (Interface)
(no doc) [1 implementers]
src/error.rs

Core symbols most depended-on inside this repo

push
called by 20
src/error.rs
is_empty
called by 15
src/error.rs
lookup
called by 14
src/backend/mod.rs
parse_resolv_conf
called by 11
src/server/serve.rs
wrap
called by 6
src/error.rs
reply
called by 4
src/dns/coredns.rs
reverse_lookup
called by 3
src/backend/mod.rs
stop_threads
called by 3
src/server/serve.rs

Shape

Function 52
Method 23
Class 10
Enum 3
Interface 1

Languages

Rust100%

Modules by API surface

src/test/test.rs23 symbols
src/server/serve.rs20 symbols
src/dns/coredns.rs13 symbols
src/error.rs11 symbols
src/backend/mod.rs6 symbols
src/config/mod.rs4 symbols
src/commands/version.rs4 symbols
src/commands/run.rs4 symbols
src/main.rs3 symbols
build.rs1 symbols

For agents

$ claude mcp add aardvark-dns \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact