Skip to content

piyush-1337/locus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Locus

A zero-allocation, fully iterative DNS resolver built from scratch.

Features

  • Zero-Allocation Parsing: Avoids heap allocations and object slicing. Protocol parsing relies entirely on strict byte offset tracking, pointer math, and borrowing.
  • Custom Binary Protocol: No external DNS libraries. Implements the raw RFC 1035 UDP packet specifications.

Build

Requirements:

  • CMake
  • Ninja (or gnumake)

Nix users:

$ nix develop

Build

mkdir build
cd build

cmake -G Ninja ..
ninja

Usage

Locus takes a single domain target and prints the every hops across servers

$ ./locus --domain wikipedia.org

About

A zero allocation DNS resolver

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors