public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug libc/984] New: Respond to changed resolv.conf in gethostbyname @ 2005-05-31 14:37 Martin dot vGagern at gmx dot net 2005-05-31 14:40 ` [Bug libc/984] " jakub at redhat dot com ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: Martin dot vGagern at gmx dot net @ 2005-05-31 14:37 UTC (permalink / raw) To: glibc-bugs 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. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/984] Respond to changed resolv.conf in gethostbyname 2005-05-31 14:37 [Bug libc/984] New: Respond to changed resolv.conf in gethostbyname Martin dot vGagern at gmx dot net @ 2005-05-31 14:40 ` jakub at redhat dot com 2006-02-07 7:57 ` dearvoid at 263 dot net 2006-04-25 17:59 ` drepper at redhat dot com 2 siblings, 0 replies; 4+ messages in thread From: jakub at redhat dot com @ 2005-05-31 14:40 UTC (permalink / raw) To: glibc-bugs ------- Additional Comments From jakub at redhat dot com 2005-05-31 14:40 ------- There is a solution, already implemented. Use nscd and nscd -i hosts in the script that rewrites your resolv.conf (or nsswitch.conf etc.). -- What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME 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. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/984] Respond to changed resolv.conf in gethostbyname 2005-05-31 14:37 [Bug libc/984] New: Respond to changed resolv.conf in gethostbyname Martin dot vGagern at gmx dot net 2005-05-31 14:40 ` [Bug libc/984] " jakub at redhat dot com @ 2006-02-07 7:57 ` dearvoid at 263 dot net 2006-04-25 17:59 ` drepper at redhat dot com 2 siblings, 0 replies; 4+ messages in thread From: dearvoid at 263 dot net @ 2006-02-07 7:57 UTC (permalink / raw) To: glibc-bugs ------- Additional Comments From dearvoid at 263 dot net 2006-02-07 07:56 ------- I met the same problem. Is there any way to let gethostbyname() reread '/etc/resolv.conf'? -- What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WORKSFORME | http://sourceware.org/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. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/984] Respond to changed resolv.conf in gethostbyname 2005-05-31 14:37 [Bug libc/984] New: Respond to changed resolv.conf in gethostbyname Martin dot vGagern at gmx dot net 2005-05-31 14:40 ` [Bug libc/984] " jakub at redhat dot com 2006-02-07 7:57 ` dearvoid at 263 dot net @ 2006-04-25 17:59 ` drepper at redhat dot com 2 siblings, 0 replies; 4+ messages in thread From: drepper at redhat dot com @ 2006-04-25 17:59 UTC (permalink / raw) To: glibc-bugs ------- Additional Comments From drepper at redhat dot com 2006-04-25 17:59 ------- Use nscd. There will be no support for this is libc routines themselves. -- What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |WONTFIX http://sourceware.org/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. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-04-25 17:59 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2005-05-31 14:37 [Bug libc/984] New: Respond to changed resolv.conf in gethostbyname Martin dot vGagern at gmx dot net 2005-05-31 14:40 ` [Bug libc/984] " jakub at redhat dot com 2006-02-07 7:57 ` dearvoid at 263 dot net 2006-04-25 17:59 ` drepper at redhat dot com
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).