https://github.com/theHamdiz/it
A collection of helpful error handling, performance measuring, execution retrial, benchmarking & other useful patterns for golang under one package.
Because we kinda need this shit daily and we know it!
I don’t think anything i post here would do the project justice outside of just copying the read me.

Pihole can do this out of the box by going to the dns settings and adding a host. Alternatively, if your pihole is also your dhcp provider, you can set the hostname on each and pi hole should resolve it.
https://thiagowfx.github.io/2022/01/pihole-add-custom-dns-mappings/