0

I am trying to discover based on subtypes. Ex: if i register a service using avahi-publish,

avahi-publish -s --domain="local" --subtype="_annon._sub._http._tcp" "ServiceName" "_http._tcp" 80 "TxtRecord=Some Text"

I need to do service discover based on the subtype, "_annon._sub". Is there any way to do that?

Jamie
  • 7,075
  • 12
  • 56
  • 86
user1808215
  • 273
  • 1
  • 6
  • 11

1 Answers1

0

You can query this with the linux command dig:

dig txt _annon._sub._http._tcp +short
rekire
  • 47,260
  • 30
  • 167
  • 264
  • Thank you very much. I am fine with this. But is it possible to register a service with avahi-publish and i need to send the sub-type as a response. I am trying, but in the avahi-publish is not sending the subtype if i do service disvocer. – user1808215 Feb 13 '13 at 06:23