Skip to content

Instantly share code, notes, and snippets.

@robwent
Created April 5, 2026 18:20
Show Gist options
  • Select an option

  • Save robwent/3c507fba50c279b1657f23a19d470a25 to your computer and use it in GitHub Desktop.

Select an option

Save robwent/3c507fba50c279b1657f23a19d470a25 to your computer and use it in GitHub Desktop.
AWS bind config to prevent DNS lookup errors. /etc/bind/named.conf.options Unbuntu
options {
directory "/var/cache/bind";
forwarders {
169.254.169.253; // AWS VPC resolver (primary)
1.1.1.1; // Cloudflare fallback
8.8.8.8; // Google fallback
};
forward only;
dnssec-validation no;
listen-on-v6 { any; };
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment