This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug libc/984] New: Respond to changed resolv.conf in gethostbyname
- From: "Martin dot vGagern at gmx dot net" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 31 May 2005 14:36:56 -0000
- Subject: [Bug libc/984] New: Respond to changed resolv.conf in gethostbyname
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
I've got a notebook and start an OpenVPN daemon at boot time, but lacking a dns
server it cannot connect. When I get some kinf of network connection by plugging
in an ethernet cable or coming near some WLAN access point, my network is
reconfigured and all newly started processes work well enough. But processes
started before the resolv.conf was changed have to be restarted by root which is
really annoying, especially if they maintain some kind of state while running.
This was just one example, I believe there might be many more programs around
with this kind of problem, e.g. nscd. So I make this a feature request. I'm
suprised I could not find this around already.
Possible solutions:
* reread resolv.conf every time some name is resolved
* check modification time of resolv.conf every time a name is resolved
* reread resolv.conf if a nameserver does not respond
* reread resolv.conf if cached dns ip is more than t seconds old
* include some explicit "reread now" command for such daemons
* ... to be combined and continued
--
Summary: Respond to changed resolv.conf in gethostbyname
Product: glibc
Version: 2.3.5
Status: NEW
Severity: enhancement
Priority: P3
Component: libc
AssignedTo: gotom at debian dot or dot jp
ReportedBy: Martin dot vGagern at gmx dot net
CC: glibc-bugs at sources dot redhat dot com
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://sources.redhat.com/bugzilla/show_bug.cgi?id=984
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.