Hi Rishi,
On 02/20/09 02:26, Rishi Srivatsavai wrote: > Hello Jan, > > jan damborsky wrote: >> I have couple of questions here in order to clarify what approach >> we might take. Could I please ask you if you might help us understand >> what the limitations are and what approach we might take ? >> >> * Can we use dns-sd(1M) for browsing domains/looking up services which >> are available over unicast DNS ? If we can, what are the prerequisites >> we need to meet in order to make it work ? > > Yes, unicast DNS PTR and SRV record queries should work with dns-sd > as well. Can you make sure you have /etc/resolv.conf point to > your test server and try repeating the tests? I rechecked and found out some issues with my testing configuration: * I needed to put my test server at the beginning of /etc/resolv.conf, otherwise official DNS servers were queried first and they reported that testing domain didn't exist. * I found out that dns/multicast service has to be restarted in order to make it aware of changes in /etc/resolv.conf Both issues are specific to my testing configuration and I think they will not be problem in production environment. After this, dns-sd started to work with unicast DNS: $ dns-sd -B _OSInstall._tcp ai-caiman.org Browsing for _OSInstall._tcp.ai-caiman.org Timestamp A/R Flags if Domain Service Type Instance Name 23:09:28.519 Add 3 0 ai-caiman.org. _OSInstall._tcp. _test_service 23:09:28.519 Add 2 0 ai-caiman.org. _OSInstall._tcp. _test_service1 $ dns-sd -L _test_service _OSInstall._tcp ai-caiman.org Lookup _test_service._OSInstall._tcp.ai-caiman.org 23:10:28.995 _test_service._OSInstall._tcp.ai-caiman.org. can be reached at tio-nb.ai-caiman.org.:46511 aiwebserver=tio-nb.ai-caiman.org:46511 Thanks ! > >> * If dns-sd(1M) can't be used, could we take advantage of dig(1M) or >> nslookup(1M) commands instead ? > > Yes, you could try to do the same by using libresolv but libdns_sd > has a much simpler API. I see - since dns-sd(1M) works for multicast & unicast, we will use it for both. Thank you very much for your help ! Jan -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/caiman-discuss/attachments/20090220/385e767c/attachment.html>
