How to add a wildcard host entry to Mac OS X Server's DNS
You can add the wild card domain much easier than that!


create the primary zone  "test.dev"
create machine record "test.dev"
add ip


http://www.howdididothat.info/2012/11/15/wildcard-dns-on-mac-osx-server-10-8/