lazydns

Datasets & Formats

This page summarizes common dataset types supported by lazydns, example file formats, and tips for creating and maintaining dataset files. For detailed rule syntax and matching priority, see DOMAIN_MATCHING_RULES.md.

Domain sets

# comments and blank lines are ignored
full:example.com           # exact match only
domain:example.com         # match example.com and all subdomains
keyword:google             # substring/keyword match
regexp:^.+\.google\.com$ # regex pattern (Rust regex syntax)
example.org                # no prefix → uses the dataset's default match type (usually `domain`)

Examples and recommendations:

IP sets

# single IP
192.0.2.5
# CIDR range
198.51.100.0/24
::1/128

Geosite / GeoIP datasets

Creating custom datasets

Examples and locations