Questions tagged [dns-sd]

DNS-based Service Discovery is a part of Zero Configuration Networking. DNS-SD allows clients to discover a named list of services by type using standard DNS queries.

DNS-based Service Discovery is a part of Zero Configuration Networking. DNS-SD allows clients to discover a named list of services by type using standard DNS queries. The technology is supported in many products, such as Apple Bonjour or Linux's Avahi. Android does also use DNS-SD for WiFi Direct Service Discovery.

96 questions
2
votes
0 answers

Zeroconf get txt record

i'm using this nuget package to discover a service on a network. I would like to know if is it possible to access the txt record from: IReadOnlyList hosts = await ZeroconfResolver.ResolveAsync("_hid._udp.local.", scanTime); i want to…
Samih EL SAKHAWI
  • 429
  • 4
  • 17
2
votes
1 answer

Unregistering a zeroconf service using jmDNS

I'm tryng to make my Android app register a service via zeroconf while the app is active, and then unregister it after the app exits. In my onResume method I have the following code: // register ourselves with zero conf try { JmDNS…
2
votes
0 answers

I am trying to generate dns-sd query for _universal._sub._ipp.tcp.local, is there a way to request sub query

I am trying to generate dns-sd query for _universal._sub._ipp.tcp.local, is there a way to request subquery. ciscos-Mac-mini:~ cisco$ dns-sd -Z _ipps._tcp,_universal Browsing for _ipps._tcp,_universal DATE: ---Thu 20 Sep…
Harish Nj
  • 21
  • 1
2
votes
0 answers

Bonjour DNSServiceRegister on Android

I am using the Android NDK, with dns_sd.h code that works fine on other platforms: https://github.com/HBPVIS/Servus/blob/master/servus/dnssd/servus.h On Android, the library is calling DNSServiceRegister, there is no error return code, but a DNS-SD…
Jean-Michaël Celerier
  • 7,412
  • 3
  • 54
  • 75
2
votes
0 answers

how does service registration work with NsdManager?

I've just started working with Multicast DNS using the NSDManager class for Android. I came upon the NsdChat example from this link…
Giang Pham
  • 41
  • 5
2
votes
2 answers

Redefinition of module 'dnssd' in Swift 3

I convert my project to Swift 3 recently and also installed XMPP framework. When I run the project , the error "Redefinition of module 'dnssd'" occurs. Here is my code of version swift 2... module dnssd [system] { header…
May Phyu
  • 895
  • 3
  • 23
  • 47
2
votes
3 answers

Sharing a DNSServiceRef using kDNSServiceFlagsShareConnection stalls my program

I'm building a client using dns-sd api from Bonjour. I notice that there is a flag called kDNSServiceFlagsShareConnection that it is used to share the connection of one DNSServiceRef. Apple site says For efficiency, clients that perform many…
gvalero87
  • 855
  • 3
  • 15
  • 32
2
votes
1 answer

Running program from within bash, can't get space escaping right

I'm writing a bash script on Mac OSX 10.11 to automatically use dns-sd to "proxy" my Bonjour advertisements for AFP, SMB & some printers when I connect to my VPN. The basic gist of my script is I declare a number of arrays to later use when I call…
Tim Rankin
  • 31
  • 3
2
votes
1 answer

How to use `dns-sd` to discover all domains with specific TLD?

I'm trying to discover all domains with the TLD .ffhh. This is the TLD of the Freifunk Meshnetwork in Hamburg. I tried the following command in Mac Terminal: dns-sd -B _http._tcp ffhh. I get this output, but nothing happens after that: Browsing for…
jan reimers
  • 356
  • 3
  • 10
2
votes
1 answer

Android P2P service discovery callbacks not being called

I'm fairly new to Android and I'm working on an application that will exchange data over WIFI direct and I would like to use DNS Service Discovery instead of pure P2P discovery to get more useful information like device "nick names" etc. So far I've…
Dash83
  • 1,357
  • 2
  • 17
  • 31
2
votes
2 answers

Bonjour DNS-SD callback not being called, where's a mistake in my code?

I'm trying to learn how to use Bonjour using this blog article as a reference: http://marknelson.us/2011/10/25/dns-service-discovery-on-windows/ I've download sample project linked at the bottom of that page, it works like charm. Now I'm trying to…
Violet Giraffe
  • 32,368
  • 48
  • 194
  • 335
2
votes
1 answer

DNS-SD on Windows using MFC

I have an application built using MFC that I need to add Bonjour/Zeroconf service discovery to. I've had a bit of trouble figuring out how best to do it, but I've settled on using the DLL stub provided in the mDNSresponder source code and linking my…
Redeye
  • 1,582
  • 1
  • 14
  • 22
2
votes
2 answers

Ruby DNSSD Bonjour IP address discovery

BACKGROUND I am trying to use Ruby DNSSD to discover the IP address of a few devices. My code will correctly discover the NAME of the devices. I tried to access the devices using the NAME.local. I have tried this method:…
Elvis
  • 318
  • 1
  • 2
  • 12
1
vote
2 answers

cmd or PowerShell equivalent to macOS' dns-sd command?

On macOS (and Linux using Avahi), you have access to dns-sd, a command that lets you discover and announce services on your local network. I know that Windows 10 and 11 have native support for Bonjour/mDNS, but I haven't found any way to access the…
Leo Bernard
  • 174
  • 1
  • 9
1
vote
2 answers

macOS: DNSSD crash after calling fd_set on its socket

I have the following code, which crashes my program, upon calling FD_SET. void handleEvents(DNSServiceRef service, const int32_t timeout) { if (!service) return; const int fd = DNSServiceRefSockFD( service ); const int nfds = fd +…
Jean-Michaël Celerier
  • 7,412
  • 3
  • 54
  • 75