richardschneider / net-mdns

Simple multicast DNS
MIT License
232 stars 81 forks source link

Example: Updating a record #53

Closed Visic closed 5 years ago

Visic commented 5 years ago

I need to be able to update records after they are being advertised, but cannot figure out how. This seems like it would be a fairly common requirement, so an example would go a long ways.

richardschneider commented 5 years ago

Updating MDNS is NOT fairly common. Could you explain what you want to update?

Visic commented 5 years ago

I could do it one of two ways:

  1. Stop the current service and restarted a new one (we would need the Goodbye message on cleanup)
  2. Update the service "instance name" and CNAME record name

Unrelated, but for what it's worth, this library is a pleasure to work with. Additionally, it's the best MDNS library I have used across half a dozen different programming languages.

richardschneider commented 5 years ago

Stopping a service is discussed in issue #47; @cerna any progress on the issue?

All the resource records for a service are in ServiceDiscovery.NameServer.Catalog. See https://richardschneider.github.io/net-dns/articles/rr.html for supported resource records.

richardschneider commented 5 years ago

@Visic its been 3+ weeks since you last comment. This issue will be closed next week unless I hear from you.

Visic commented 5 years ago

@richardschneider I am still interested in this functionality, I haven't had time to dig into making the changes myself, but as soon as it is ready I will be using it in production.

percramer commented 4 years ago

I would also like to know how to update. I would like to send status info about my service in the properties