[Dnsmasq-discuss] How does blocking domains work

joe barbish joeb_722 at yahoo.com
Sun Sep 3 18:56:51 BST 2017


Hello List.

I understand that adding this statement on a single line to the conf file will block it.
server=/facebook.com/

There are many sites that maintain lists of domain names of sites for blocking known ad, tracking and other malware domains. Combining these lists together results in a list containing 50,000+ single line records.

My question is how does dnsmasq internally handle a file of this size?

Is this file read one time at startup and kept in a binary searchable table for super fast lookup?
Are the server=/xxx/ records read sequentially every time for each dns request?

Thanks
Joe



More information about the Dnsmasq-discuss mailing list