dnsmasq – Whitelist All Subdomains with Rebind-Domain-OK

dnsmasqdomain-name-system

Is it possible to whitelist a wildcard domain in dnsmasq with rebind-domain-ok?

I tried the following, but it did not work

rebind-domain-ok=/.example.com/

Best Answer

I forgot to restart dnsmasq service after updating the config file. The following configuration is working as intended.

rebind-domain-ok=/.example.com/