Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/lib/libc/resolv



On Oct 24,  9:08am, ty%sarna.org@localhost (Ty Sarna) wrote:
-- Subject: Re: CVS commit: src/lib/libc/resolv

| I have mdnsd doing unicast queries and monitoring resolv.conf for  
| changes in my tree, which partially solves this as well -- nameservers  
| update automatically. However, it turns out libc still has to care  
| about resolv.conf changing, because processing of the "search"  
| directive and related config like ndots all happens on the client  
| side. So, something like this change is still useful even if using  
| mdnsd for all hosts lookups.
| 
| Unfortunately there's no way for me to use this feature currently. I  
| think it would be sufficient if __res_check() were exposed and  
| returned a flag indicating wether there was a changed or not. I will  
| want to do some filtering of the search list in some cases, and it'd  
| be better to build up my private modified copy of the search list only  
| when the config changes rather than trying to figure it out on every  
| query.

That is trivial to do. If you want to make res_check() return something
and expose it, go ahread.

christos


Home | Main Index | Thread Index | Old Index