[Dnsmasq-discuss] Wildcard lookups question?

richardvoigt at gmail.com richardvoigt at gmail.com
Sat Jun 30 23:48:36 BST 2007


On 6/30/07, Simon Kelley <simon at thekelleys.org.uk> wrote:
>
> Jason wrote:
> > Gang,
> >
> >     Question:  If I use the dnsmasq.conf file format to miss-address an
> > ad server, etc,
> > does this entry get placed in the hash table along with the entries from
> > the hosts file and
> > therefore remain fast and efficient?
>
> No, the search process for server=/<domain>/ and address=/<domain>/
> lines in dnsmasq.conf is linear.
>
>   I'd like to move the entries for
> > sites I'm blocking
> > from the hosts to /etc/dnsmasq.conf.more in the
> > "address=/baddomain.com/127.0.0.1"
> > format to take advantage of the wildcard feature, but I have many many
> > domains
> > (I'm the guy that has 700k domains to block, remember?).
> >
>
> Performance wins or losses will depend on how many individual names are
> replaced by one wildcard, I guess.



Are wildcards restricted to an entire token (delimited by dots)?  If so, a
trie would probably be the most efficient lookup mechanism.


Cheers,
>
> Simon.
>
> > Jason
> >
> > _______________________________________________
> > Dnsmasq-discuss mailing list
> > Dnsmasq-discuss at lists.thekelleys.org.uk
> > http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
> >
>
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20070630/b769a9ff/attachment.htm


More information about the Dnsmasq-discuss mailing list