Skip to content

Instantly share code, notes, and snippets.

@jrschumacher
Last active November 16, 2017 21:18
Show Gist options
  • Save jrschumacher/2365183 to your computer and use it in GitHub Desktop.
Save jrschumacher/2365183 to your computer and use it in GitHub Desktop.
$TTL 60
$ORIGIN dev.
@ 1D IN SOA localhost. root.localhost. (45 3H 15M 1W 1D)
1D IN NS localhost.
1D IN A 127.0.0.1
*.dev. 60 IN A 127.0.0.1
go.dev. 60 IN A 127.0.0.1
*.go.dev. 60 IN A 127.0.0.1
// append to named.conf
// dev.zone
zone "dev" IN {
type master;
file "dev.zone";
allow-update { none; };
};
@askdesigners
Copy link

This is working for localhost.dev, but no subdomains.. :( do I need to do anything special to get that working? Thanks for this btw, such a life saver!

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