Send A(AAA) records when announcing
authorRafał Miłecki <rafal@milecki.pl>
Thu, 9 Feb 2017 09:11:16 +0000 (10:11 +0100)
committerRafał Miłecki <rafal@milecki.pl>
Fri, 10 Feb 2017 08:21:33 +0000 (09:21 +0100)
This allows device to be discovered by its local hostname.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Acked-by: John Crispin <john@phrozen.org>
announce.c

index 03c7b8f..7bbce4a 100644 (file)
@@ -65,6 +65,7 @@ announce_timer(struct uloop_timeout *timeout)
                        /* Fall through */
 
                case STATE_ANNOUNCE:
                        /* Fall through */
 
                case STATE_ANNOUNCE:
+                       dns_reply_a(iface, announce_ttl);
                        service_announce(iface, announce_ttl);
                        uloop_timeout_set(timeout, announce_ttl * 800);
                        break;
                        service_announce(iface, announce_ttl);
                        uloop_timeout_set(timeout, announce_ttl * 800);
                        break;