This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/18123] New: allow wildcards in /etc/hosts
- From: "god12 at niksula dot hut.fi" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 12 Mar 2015 15:43:12 +0000
- Subject: [Bug libc/18123] New: allow wildcards in /etc/hosts
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=18123
Bug ID: 18123
Summary: allow wildcards in /etc/hosts
Product: glibc
Version: unspecified
Status: NEW
Severity: enhancement
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: god12 at niksula dot hut.fi
CC: drepper.fsp at gmail dot com
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.
--
You are receiving this mail because:
You are on the CC list for the bug.