Skip to content

Instantly share code, notes, and snippets.

@ivan
Created June 21, 2019 18:22
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 ivan/c4d6ba9a9773c13e63e2563ce8c0f8e2 to your computer and use it in GitHub Desktop.
Save ivan/c4d6ba9a9773c13e63e2563ce8c0f8e2 to your computer and use it in GitHub Desktop.
DNS resolver settings for NixOS
networking = {
# Don't try to find our domain name or DNS servers because then
# resolvconf will insert them into /etc/resolv.conf
dhcpcd.extraConfig =
''
nooption domain_name_servers, domain_name, domain_search, host_name
nooption ntp_servers
'';
nameservers = [
"1.1.1.1"
"1.0.0.1"
"2606:4700:4700::1111"
"2606:4700:4700::1001"
];
hosts = {
# archive.is refuses to serve Cloudflare correct records
"51.38.113.224" = [ "archive.li" "archive.is" "archive.fo" "archive.today" ];
};
domain = null;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment