LuckyTurtleDev / crab-hole

🦀 Pi-Hole clone written in rust using hickory-dns/trust-dns
GNU Affero General Public License v3.0
35 stars 4 forks source link

Custom DNS #28

Open Empty2k12 opened 8 months ago

Empty2k12 commented 8 months ago

Pihole has the option of adding custom DNS entries. I would like to add internal DNS names to my private crab-hole.

image Image per https://discourse.pi-hole.net/t/howto-using-pi-hole-as-lan-dns-server/533

msrd0 commented 8 months ago

Should be fairly easy to implement, one would just need to insert the local entries into the catalog here: https://github.com/LuckyTurtleDev/crab-hole/blob/main/src/main.rs#L144

Empty2k12 commented 8 months ago

Precisely. It would probably be best served as a separate config file with DNS name <=> IP mappings.