Skip to content

Instantly share code, notes, and snippets.

@miekg
Created February 7, 2017 22:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miekg/2613c56fab8f918230c2179e5be4249a to your computer and use it in GitHub Desktop.
Save miekg/2613c56fab8f918230c2179e5be4249a to your computer and use it in GitHub Desktop.

CoreDNS Proxy

This Corefile allows most names to be proxied to Google using https/json, but some local names used in my network are forwarded to my router. Yes, for some reason my local DNS does not use a proper domain, but default to root. I've also haven't found a way to change this...

. {
	proxy . 8.8.8.8:53 {
    except raspberrypi higgs libreelec gluon brik flo
		protocol https_google
	}
  cache
	prometheus
	log stdout
	errors stdout
}

raspberrypi higgs libreelec gluon brik flo {
  proxy . 192.168.1.1:53
  cache
	prometheus
	log stdout
	errors stdout
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment