<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
I'm not able to get a record browser doing what I want. I have modified client-browse-services.c to make a record browser instead of a service browser. <br>
avahi_record_browser_new(client, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, "BRN30055C232008.local", AVAHI_DNS_CLASS_IN, AVAHI_DNS_TYPE_A, 0, browse_callback, client)<br>
<br>
I know my printer BRN30055C232008.local is making DNS A announcements because I can see them in Wireshark. However I just get CACHE_EXHAUSTED then seg fault. I've tried different host names with and without the domain and sometimes that will get CACHE_EXHAUSTED, ALL_FOR_NOW instead of seg fault. I've also tried the hostnames with and without the domain of various Apple devices I know are making DNS A announcements.<br>
I know that my printer is also making _http._tcp service announcements as "Brother DCP-8011DN". If I pass "Brother DCP-8011DN" as the host name then I get:CACHE_EXHAUSTEDDNS failure: NXDOMAIN<br>
That's the closest I get to an outcome. It's worrying because I don't only want to get the DNS A records of hosts that also advertise services, I just want to grab (preferably all) DNS A records that the daemon has in memory.<br>
Regards,<br>
Jonathan<br></blockquote></div><br><br></div><div class="gmail_extra">Do you have the code on github, or some other project management site?<br></div></div>