Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I found an excellent link of hosts serving ads and tracking cookies. I'd like to run a DNS server on my (newly reflashed) router running the DD-WRT firmware, and re-route all connections to any of these hostnames to 0.0.0.0.

I see options for DNSMasq on the interface to my router, but I don't think it gives me the capability to enter specific DNS entries.

Thanks!

share|improve this question

1 Answer 1

I don't know about rerouting them to the default gateway. In theory, that would only send them back to you. You could use the list as suggested on the web page and make all those hosts appear as 127.0.0.0 which would effectively prevent them from sending you any data.

This can be done in DNSMasq: Services > Additional DNSMasq Options

address=/some.local.hostname/192.168.1.1
address=/another.local.hostname/192.168.1.2
addn-hosts=/some/file/somewhere

This info is from a dd-wrt discussion

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.