Whether to disable publishing IPv6 addresses for this service.
The hostname of the machine offering the service.
The instance name of the service. This will be sanitized by replacing dots with dashes.
The port number on which the service is listening.
Whether to perform probing to detect name conflicts before publishing.
Whether to automatically resolve name conflicts by appending a number to the service name.
The protocol used by the service, typically "tcp" or "udp".
Optional list of subtype identifiers for selective discovery.
The TTL (time to live) in seconds for the all records.
Optional TXT record key-value pairs to advertise service metadata.
The service type (e.g., "http", "ipp"). Used to form the full service type domain.
Generates all DNS resource records representing this service instance.
This includes:
An array of DNS resource records suitable for publishing via mDNS.
Starts the registered service, initiating its publication on the network.
If the service has already been started, this method does nothing.
Stops the registered service and removes it from the network.
Represents a service registered on the local network via mDNS/DNS-SD.
This class manages the service's DNS resource records such as PTR, SRV, TXT, A, and AAAA, constructed according to the DNS-Based Service Discovery specification.
See