From 0d9a286db073d7615d475d777f5aad183d6d00f0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20Mi=C5=82ecki?= Date: Wed, 15 Feb 2017 11:17:04 +0100 Subject: [PATCH] Send A in response to service discovery MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This allows other mdns software to discover our hostname when they start. Signed-off-by: Rafał Miłecki --- dns.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dns.c b/dns.c index 4c3dbf9..cf9e29b 100644 --- a/dns.c +++ b/dns.c @@ -374,6 +374,7 @@ parse_question(struct interface *iface, struct sockaddr *from, char *name, struc case TYPE_PTR: if (!strcmp(name, sdudp)) { + dns_reply_a(iface, to, announce_ttl); service_announce_services(iface, to, announce_ttl); } else { /* First dot separates instance name from the rest */ -- 2.11.0