Lookup and set the wildcard option according to the configuration settings. The default is on as per bin/named/config.c.
(cherry picked from commit dfc5c1e0)
See #1905