How can I query .local bonjour DNS entries?

前端 未结 2 585
野的像风
野的像风 2021-02-08 20:40

It\'s pretty straightforward to query out the guts of a DNS-SD entry via dig by asking your nameserver directly; but for multicast DNS, I\'m not sure where to look.

相关标签:
2条回答
  • 2021-02-08 21:05

    The main utility is dns-sd, e.g.:

    % dns-sd -B _afpovertcp._tcp
    Browsing for _afpovertcp._tcp
    Timestamp     A/R Flags if Domain           Service Type              Instance Name
    20:02:23.350  Add     2  4 local.           _afpovertcp._tcp.         myhost
    
    0 讨论(0)
  • 2021-02-08 21:16

    Aha, the secret is the multicast address/port.

    For example, to query available AFP servers:

    dig @224.0.0.251 -p 5353 -t ptr _afpovertcp._tcp.local
    
    0 讨论(0)
提交回复
热议问题