Skip to content

Instantly share code, notes, and snippets.

@JamesHagerman
Last active October 22, 2019 06:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JamesHagerman/2658da214ff5ab5c0bbd640ed91df1bf to your computer and use it in GitHub Desktop.
Save JamesHagerman/2658da214ff5ab5c0bbd640ed91df1bf to your computer and use it in GitHub Desktop.
Custom Pihole DNS mappings for some domain names

Custom Pihole DNS mappings for some domain names

vim /etc/pihole/my_custom_routes.list

Add something like ipaddress fqdn hostname, e.g.:

192.168.1.4 server2.vesync.com  server2

Then add that file to the list of additional host lists:

sudo vim /etc/dnsmasq.d/01-pihole.conf

addn-hosts=/etc/piholoe/my_custom_routes.list

Then restart dns: sudo pihole restartdns

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment