Bug 18123 - allow wildcards in /etc/hosts
Summary: allow wildcards in /etc/hosts
Status: RESOLVED DUPLICATE of bug 14520
Alias: None
Product: glibc
Classification: Unclassified
Component: network (show other bugs)
Version: unspecified
: P2 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-12 15:43 UTC by god12
Modified: 2015-08-24 09:44 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description god12 2015-03-12 15:43:12 UTC
Currently only trivial entries are allowed in /etc/hosts:
0.0.0.0 s.adframesrc.com
0.0.0.0 p.adframesrc.com
...
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:
0.0.0.0 *.adframesrc.com

This would simplify configuration and maintenance (no need to run dedicated daemon) in many cases, not only ad-blocking.
Comment 1 Joseph Myers 2015-08-24 09:44:18 UTC
Duplicate.

*** This bug has been marked as a duplicate of bug 14520 ***