Post

Replies

Boosts

Views

Activity

Reply to in-addr.arpa default search domains
This is mentioned in RFC 6763 Section 11: The part of the query name may also be derived a different way, from the host's IP address. The host takes its IP address and calculates the logical AND of that address and its subnet mask, to derive the 'base' address of the subnet (the 'network address' of that subnet, or, equivalently, the IP address of the 'all-zero' host address on that subnet). It then constructs the conventional DNS "reverse mapping" name corresponding to that base address, and uses that as the part of the name for the queries described above. For example, if a host has the address 192.168.12.34, with the subnet mask 255.255.0.0, then the 'base' address of the subnet is 192.168.0.0, and to discover the recommended automatic browsing domain(s) for devices on this subnet, the host issues a DNS PTR query for the name "lb._dns-sd._udp.0.0.168.192.in-addr.arpa." I suppose mDNSResponder (stub DNS resolver on macOS) uses this approach not just for DNS-SD but in general.
Apr ’25
Reply to macOS does not see an _smb._tcp service defined via Wide-Area DNS-SD
More mDNSResponder logs: 2025-04-14 10:16:07.886 Df mDNSResponder[18627:44e303] [com.apple.mDNSResponder:Default] DNS service (1/3) -- id: 1, type: Do53, source: sc, scope: none, interface: /0, servers: {192.168.31.53:53}, domains: {.}, attributes: {a-ok, aaaa-ok}, interface properties: {ipv4, ipv6}, use count: 1 2025-04-14 10:16:07.886 Df mDNSResponder[18627:44e303] [com.apple.mDNSResponder:Default] DNS service (2/3) -- id: 2, type: Do53, source: sc, scope: interface, interface: en0/13, servers: {192.168.31.53:53}, domains: {.}, attributes: {a-ok, aaaa-ok}, interface properties: {ipv4, ipv6}, use count: 1 2025-04-14 10:16:07.886 Df mDNSResponder[18627:44e303] [com.apple.mDNSResponder:Default] DNS service (3/3) -- id: 3, type: Do53, source: sc, scope: interface, interface: ipsec0/22, servers: {[fd00:976a::9]:53, [fd00:976a::10]:53}, domains: {.}, attributes: {aaaa-ok}, interface properties: {ipv6}, use count: 1 ... 2025-04-14 10:16:10.346 Df mDNSResponder[18627:44e32e] [com.apple.mDNSResponder:mDNS] [R54] DNSServiceBrowse START -- service type: _smb._tcp., domain: home.arpa., flags: 0x0, interface index: 0, client pid: 18638 (dns-sd), 2025-04-14 10:16:10.346 Df mDNSResponder[18627:44e32e] [com.apple.mDNSResponder:mDNS] [R54] DNSServiceBrowse -> SubBrowser START -- qname: _smb._tcp.home.arpa. (64023839) 2025-04-14 10:16:10.347 Df mDNSResponder[18627:44e32e] [com.apple.mDNSResponder:Default] [R0->Q12962] Question assigned DNS service 1 2025-04-14 10:16:10.347 Df mDNSResponder[18627:44e32e] [com.apple.mDNSResponder:mDNS] [Q12962] mDNS_StartQuery_internal START -- qname: _smb._tcp.home.arpa. (64023839), qtype: SOA 2025-04-14 10:16:10.348 Db mDNSResponder[18627:44e32e] [com.apple.mDNSResponder:Default] [R54->Q54619] Retrying path evaluation -- qname: _smb._tcp.home.arpa., qtype: PTR, reason: ResolverUUID may be stale 2025-04-14 10:16:10.348 Df mDNSResponder[18627:44e32e] [com.apple.mDNSResponder:Default] [R54->Q54619] Question for _smb._tcp.home.arpa. (PTR) assigned DNS service -- (null) 2025-04-14 10:16:10.348 Df mDNSResponder[18627:44e32e] [com.apple.mDNSResponder:Default] [Q54619] DetermineUnicastQuerySuppression: Query suppressed for _smb._tcp.home.arpa. PTR (no DNS service) 2025-04-14 10:16:10.348 Db mDNSResponder[18627:44e326] [com.apple.mdns:resolver] [Q12962] Creating session to 192.168.31.53 2025-04-14 10:16:10.348 Df mDNSResponder[18627:44e326] [com.apple.mdns:resolver] [Q12962] Sent 37-byte query #1 to 192.168.31.53 over UDP via any/0 -- id: 0x38FF (14591), flags: 0x0100 (Q/Query, RD, NoError), counts: 1/0/0/0, _smb._tcp.home.arpa. IN SOA? 2025-04-14 10:16:10.356 Df mDNSResponder[18627:44e326] [com.apple.mdns:resolver] [Q12962] Received acceptable 108-byte response from 192.168.31.53 over UDP via any/0 -- id: 0x38FF (14591), flags: 0x8500 (R/Query, AA, RD, NoError), counts: 1/0/1/0, _smb._tcp.home.arpa. IN SOA?, home.arpa. 60 IN SOA ns.home.arpa. nobody.invalid. 1 3600 1200 604800 60 2025-04-14 10:16:10.356 I mDNSResponder[18627:44e326] [com.apple.mdns:resolver] [Q12962] Querier concluded -- reason: response 2025-04-14 10:16:10.356 Df mDNSResponder[18627:44e326] [com.apple.mDNSResponder:Default] [Q12962] Handling concluded querier: _smb._tcp.home.arpa. SOA IN 2025-04-14 10:16:10.356 Df mDNSResponder[18627:44e326] [com.apple.mDNSResponder:mDNS] [Q12962] mDNS_StopQuery_internal STOP -- name hash: 64023839 2025-04-14 10:16:10.365 Df mDNSResponder[18627:44e309] [com.apple.mDNSResponder:Default] [R54->Q54619] Starting long-lived DNS polling -- polling interval: 15 min 2025-04-14 10:16:10.366 Df mDNSResponder[18627:44e309] [com.apple.mDNSResponder:Default] [R54->Q29523] Question for _smb._tcp.home.arpa. (PTR) assigned DNS service -- id: 4, type: ODoH, source: nw, scope: uuid (353A4F9C-CEF5-4CEE-93AD-4697BB0318D7), interface: /0, servers: {}, domains: {}, attributes: {a-ok, aaaa-ok, fail-fast, allows-failover}, interface properties: {ipv4, ipv6}, resolver config: {provider name: odoh.cloudflare-dns.com, provider path: /dns-query}, use count: 1 2025-04-14 10:16:10.368 Db mDNSResponder[18627:44e326] [com.apple.mdns:resolver] [Q29523] Creating session to odoh.cloudflare-dns.com 2025-04-14 10:16:10.368 I mDNSResponder[18627:44e326] [com.apple.mdns:resolver] [Q29523] Querier session event -- type: ready, error: 0/0x0 noErr 2025-04-14 10:16:10.370 Df mDNSResponder[18627:44e326] [com.apple.mdns:resolver] [Q29523] Sent 128-byte query #1 to odoh.cloudflare-dns.com over HTTPS via any/0 -- id: 0x0000 (0), flags: 0x0100 (Q/Query, RD, NoError), counts: 1/0/0/1, _smb._tcp.home.arpa. IN PTR?, . OPT 512 0 {EDE, code: 0}, {Padding, <70 zero bytes>} 2025-04-14 10:16:10.496 I mDNSResponder[18627:44e326] [com.apple.mdns:dns_service] Reporting success for service id: 4 2025-04-14 10:16:10.496 Df mDNSResponder[18627:44e309] [com.apple.mdns:resolver] [Q29523] Received acceptable 468-byte response from odoh.cloudflare-dns.com over HTTPS via any/0 -- id: 0x0000 (0), flags: 0x8183 (R/Query, RD, RA, NXDomain), counts: 1/0/1/1, _smb._tcp.home.arpa. IN PTR?, home.arpa. 604800 IN SOA prisoner.iana.org. hostmaster.root-servers.org. 1 604800 60 604800 604800, . OPT 1232 0 {Padding, <339 zero bytes>} 2025-04-14 10:16:10.496 I mDNSResponder[18627:44e309] [com.apple.mdns:resolver] [Q29523] Querier concluded -- reason: response
Apr ’25