Skip to content

Instantly share code, notes, and snippets.

@zxpetrel
Last active May 1, 2020 09:26
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 zxpetrel/cd3f78543a50d97388d5a324fb15534a to your computer and use it in GitHub Desktop.
Save zxpetrel/cd3f78543a50d97388d5a324fb15534a to your computer and use it in GitHub Desktop.
openwrt - additional hosts file to allow safe search dnsmasq CNAME entries
#Remember to add addnhosts file to config dnsmasq /etc/config/dhcp
#
# list addnhosts '/etc/safesearch.addnhosts'
#Add cnames below as follows
config cname
option cname 'www.bing.com'
option target 'strict.bing.com'
config cname
option cname 'duckduckgo.com'
option target 'safe.duckduckgo.com'
#duckduckgo sub-domains required (www. for IOS Safari, external-content for image search?)
config cname
option cname 'www.duckduckgo.com'
option target 'safe.duckduckgo.com'
config cname
option cname 'external-content.duckduckgo.com'
option target 'safe.duckduckgo.com'
#Also add local google sites eg. google.co.uk, google.ie
config cname
option cname 'www.google.com'
option target 'forcesafesearch.google.com'
#/etc/safesearch.addnhosts
#Duckduckgo do not resolve DNS to a single ip, check before use
54.241.17.246 safe.duckduckgo.com
54.229.105.151 safe.duckduckgo.com
79.125.105.136 safe.duckduckgo.com
#Unblock help
79.125.108.59 help.duckduckgo.com
52.213.95.108 help.duckduckgo.com
79.125.108.55 help.duckduckgo.com
204.79.197.220 strict.bing.com
216.239.38.120 forcesafesearch.google.com
#216.239.38.120 restrict.youtube.com
#216.239.38.119 restrictmoderate.youtube.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment