- if (!match || !strcmp(s->service, match))
- service_reply_single(iface, to, s, ttl, 0);
+ if (instance && strcmp(s->instance, instance))
+ continue;
+ if (service_domain && strcmp(s->service, service_domain))
+ continue;
+ service_reply_single(iface, to, s, ttl, 0);