From: Rafał Miłecki Date: Wed, 15 Feb 2017 10:17:04 +0000 (+0100) Subject: Send A in response to service discovery X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fmdnsd.git;a=commitdiff_plain;h=0d9a286db073d7615d475d777f5aad183d6d00f0 Send A in response to service discovery This allows other mdns software to discover our hostname when they start. Signed-off-by: Rafał Miłecki --- 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 */