On Ubuntu 14.04 I'm using dnsmasq to resolve wildcard example.com domains to the local machine (desktop computer at home).
After much reading around I cannot for the life of me sort out the same on a clean install of 18.04.
All I want to achieve at the moment is:
- for
ping example.com
to ping 127.0.0.1 and not 93.184.216.34; - for
ping anysubdomain.example.com
to also ping 127.0.0.1; - and for
ping google.com
to ping the real google.com via the router/IP DNS.
Surely this must be simple, even trivial?
But I'm stumped. I can get the example.com's resolving but only at the expense of breaking everything else.
How can I do this?