/DnsSDNet

DNS-SD for C# .NET

Primary LanguageC#

DNS-SD for C# .NET

Overview:

This library provides service discovery and registration using DNS-SD to C# applications.

Note:

  • Use environment method to specify the dns server address:
Environment.SetEnvironmentVariable("dnssdServer", "10.200.0.10");

Otherwise, the default DNS Server which is configured on the executing computer will be used. See DNSClientUtil.cs for more details. The same method can be used to set dnssd domain name and host name (see DomainUtil.cs for more details):

Environment.SetEnvironmentVariable("dnssdDomain", "your.domain.name");
Environment.SetEnvironmentVariable("dnssdHostname", "your.host.name");
  • log4net is used for logging purpose.

Acknowledgments:

  • The implementation of this library is almost similar to the DNS-SD for Java provided by Daniel Nilsson.
  • The low level DNS communication is provided by ARSoft.Tools.Net provided by Alexander Reinert.