2012/1/11 Stefan Stanacar <[email protected]>: > 2012/1/11 Andrei <[email protected]>: >> On 1/10/2012 23:01, Petru Ratiu wrote: >>> De vreo 2h imi bat capul cu o problema aparent simpla si in timp ce >>> scriam mailul asta mi-am dat seama de la ce este, asa ca reformulez :P >>> >>> Incerc sa fac rezolvare (chiar, cum se traduce resolving in romana?) >>> de nume scurte via libnss-mdns*, care par a fi complet neimpresionate >>> de faptul ca eu am scris 'search local' in resolv.conf. Daca am >>> inteles bine, resolv.conf e consultat doar de libresolv, cu care e >>> linkat doar libnss_dns, asa ca pot incerca eu mult si bine. >>> >>> Exista vreo metoda sa setez acelasi mecanism (cu search si eventual >>> ndots) pentru getaddrinfo? /etc/gai.conf nu pare sa mentioneze asa >>> ceva si in manpage-ul de getaddrinfo(3) mi-am prins urechile. >>> >> Arunca o privire si in /etc/nsswitch.conf . Nu promit nimic insa > > > Si in mdns.conf / nss_mdns.conf sau cum naiba ii mai zice.
Chestie care nu cred ca mai exista mai nou.... Dar uite ce zice asta de a facut nss-mdns: Sun Aug 21 2005: Version 0.6 released. Changes include: honour search list in /etc/resolv.conf; try to contact Avahi for resolving. apoi Version 0.8 released. Changes include: Build time option to disable "legacy unicast" mDNS requests, i.e. resolve exclusively with Avahi; build a special _minimal flavour of the shared objects to minimize unnecessary name lookup timeouts; fix IPv6 resolving when using Avahi. si mai apoi Version 0.9 released. Changes include: Make most shared library symbols private to not conflict with any symbols of the program we're loaded into. Fix a potential endless loop in the mDNS packet parsing code. Please note that due to security reasons from this release on the minimal mDNS stack included in nss-mdns (dubbed "legacy") is no longer built by default. Thus, nss-mdns will not work unless Avahi is running! That makes Avahi essentially a hard dependency of nss-mdns. Pass --enable-legacy to reenable the mini mDNS stack again. Please note as well that this release does not honour /etc/resolv.conf domain search lists by default anymore. It created a lot of problems and was never recommended anyway. You may reenable this functionality by passing --enable-search-domains. _______________________________________________ RLUG mailing list [email protected] http://lists.lug.ro/mailman/listinfo/rlug
