Creating Wildcard Records in DNS Forwarder/Resolver

A wildcard DNS record resolves <anything> to a single IP address, which can be useful in certain cases.

DNS Resolver (Unbound)

To create a wildcard entry the DNS Resolver (Unbound), use the following directives in the custom options box:

local-zone: "" redirect
local-data: " 86400 IN A"

That makes any host under resolve to For example,,,, and so on.

DNS Forwarder (dnsmasq)

To create a wildcard entry in the DNS Forwarder, use the following directives in the advanced options:


If a specific host override is set for example:

Then those would be returned when doing a query for those hosts, only when no specific host has been specified in the host overrides would the advanced wildcard entry be used.

To resolve the domain to an IP address:

Leave the host field blank in the host overrides. So if the query is now for the forwarder will return If a client requests then would be returned instead.

If a blank hostname host override entry has not been created, then a query for would return the wildcard IP address set in the advanced option.

If a client queries for then since no specific host record for madeupname exists in the host overrides. The forwarder will return the wildcard entry of