From: Rahul Thakur Date: Thu, 8 Feb 2024 12:28:11 +0000 (+0530) Subject: dns: fix response to TYPE_PTR query X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=93458ac90911b84c7279070cd350405d203b702d;p=project%2Fmdnsd.git dns: fix response to TYPE_PTR query In case of PTR query, sending response of TYPE_A is not needed. As per the rfc 6763, the responder in this case should send list of its services. Signed-off-by: Rahul Thakur --- diff --git a/dns.c b/dns.c index e849396..2078d88 100644 --- a/dns.c +++ b/dns.c @@ -382,8 +382,6 @@ parse_question(struct interface *iface, struct sockaddr *from, char *name, struc case TYPE_PTR: if (!strcmp(name, C_DNS_SD)) { - dns_reply_a(iface, to, announce_ttl, NULL); - dns_reply_a_additional(iface, to, announce_ttl); service_announce_services(iface, to, announce_ttl); } else { if (name[0] == '_') {