• ATTENTION! As of November 1, 2020, you are not able to reply to threads 6 months after the thread is opened if there are more than 500 posts in the thread.
    Threads will not be locked, so posts may still be edited by their authors.
    Just start a new thread on the topic to post if you get an error message when trying to reply to a thread.


Occasional Visitor
Hello and just learning about dnsmasq.

I've modified /etc/host files in various Linux distros for years, but never implemented dnsmasq capabilities.

I have followed the instructions found in the article "Custom domains with dnsmasq," and added "address=..." configs to various local domain IPs, but am not directed to the target IPs when trying the domains.

At this point, I'm assuming dnsmasq and associated config is similar to adding the host configs at each host /etc/host file, but with dnsmasq centralized. Is this a correct way to think about dnsmasq?


Part of the Furniture
The definitive explanation of all things dnsmasq:

With the "address=" option you are defining domains whereas the traditional hosts file deals with host names.

After you have made your custom changes to dnsmasq and restarted the service (or rebooted) check they have been applied successfully by looking at /etc/dnsmasq.conf.


Very Senior Member
Remember, this assumes your clients are actually using DNSMasq! These days, that's not such a sure thing anymore. Many browsers now implement their own DNS queries using DoH/DoT, and by default, thereby bypassing DNSMasq!

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!