OS X Server Wildcard DNS
So many folks have asked me about this when they have been trying to setup a WordPress Network with an OS X server.
On 10.6.x you do the following:
- Setup your base level domain in Server Admin (usually www)
- Open Applications > Utilities > Terminal
- Type – cd /var/named/zones
- This get you to the folder with DNS configuration files
- Type – ls -al
- Find the db file that is similar to your domain (i.e. db.my.website.zone.apple)
- Open the file in a text editor by typing – nano db.my.website.zone.apple (use your file name)
- Ctrl-V (or scroll) to the bottom of the document
- Add wildcard entry by typing – * IN CNAME website.com.
- Close the document with Ctrl-x and then type – y to save.
- Go back to Server Admin and restart the DNS service.
- * should now appear.
