Currently only trivial entries are allowed in /etc/hosts:
are allowed in /etc/hosts
For pinning all the subdomains to a give ip one have to run DNS server which seems like huge waste of resources for such a simple job.
Would be much better to extend glibc to parse simple wildcard entries whne performing name resolution so the entries above could be substituted with single line:
This would simplify configuration and maintenance (no need to run dedicated daemon) in many cases, not only ad-blocking.
*** This bug has been marked as a duplicate of bug 14520 ***