Last active
November 16, 2017 21:18
-
-
Save jrschumacher/2365183 to your computer and use it in GitHub Desktop.
OSX BIND *.dev, go.dev and *.go.dev (http://clintberry.com/2011/wildcard-sub-domains-on-osx-web-development-on-localhost/)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// append to named.conf | |
// dev.zone | |
zone "dev" IN { | |
type master; | |
file "dev.zone"; | |
allow-update { none; }; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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!