Replies: 3 comments 33 replies
-
Which network is this "external device" on? If it's on both networks, it should receive both addresses, otherwise should receive the one address on the same network. For the error message, it happens when the responder receives a query on interface A but didn't publish any service on A. I think we might want to downgrade it to a debug log. |
Beta Was this translation helpful? Give feedback.
-
I've tried to implement what you said in this branch: https://github.com/Luni-4/mdns-sd-example/tree/ipv6-disabled But I cannot reach at all the server from my Android phone, I get: Here's the log: 2024-10-07T07:40:49.232608Z INFO mdns_sd_example: Service instance name: test
2024-10-07T07:40:49.232609Z DEBUG mdns_sd::service_daemon: new socket bind to 0.0.0.0:5353
2024-10-07T07:40:49.232637Z INFO mdns_sd_example: Service domain: _dummy._tcp.local.
2024-10-07T07:40:49.232649Z INFO mdns_sd_example: Service port: 3000
2024-10-07T07:40:49.232657Z INFO mdns_sd_example: Service addresses: [192.168.178.57, 172.17.0.1]
2024-10-07T07:40:49.232668Z INFO mdns_sd_example: Device reachable at this hostname: arco.local:3000
2024-10-07T07:40:49.232705Z DEBUG mdns_sd::service_daemon: new socket bind to 0.0.0.0:5353
2024-10-07T07:40:49.232780Z DEBUG mdns_sd::service_daemon: new socket bind to [::]:5353
2024-10-07T07:40:49.232809Z DEBUG mdns_sd::service_daemon: new socket bind to [::]:5353
2024-10-07T07:40:49.232833Z DEBUG mdns_sd::service_daemon: new socket bind to [::]:5353
2024-10-07T07:40:49.232868Z INFO mdns_sd_example: Server reachable at this HTTP address: 192.168.178.57:3000
2024-10-07T07:40:49.232909Z DEBUG mdns_sd::service_daemon: event received with key 18446744073709551614
2024-10-07T07:40:49.232921Z DEBUG mdns_sd::service_daemon: signal socket recvd: Command SetOption
2024-10-07T07:40:49.232934Z DEBUG mdns_sd::service_daemon: signal socket recvd: Command Register
2024-10-07T07:40:49.232943Z DEBUG mdns_sd::service_daemon: event received with key 1
2024-10-07T07:40:49.232957Z DEBUG mdns_sd::service_daemon: received 12 bytes from IP: 172.17.0.1
2024-10-07T07:40:49.232965Z DEBUG mdns_sd::dns_parser: read_header: id 0, 0 questions 0 answers 0 authorities 0 additionals
2024-10-07T07:40:49.232975Z DEBUG mdns_sd::dns_parser: read_questions: 0
2024-10-07T07:40:49.232982Z DEBUG mdns_sd::dns_parser: read_others: 0
2024-10-07T07:40:49.232985Z INFO mdns_sd_example: Starting server...
2024-10-07T07:40:49.233000Z DEBUG mdns_sd::service_daemon: event received with key 4
2024-10-07T07:40:49.233012Z DEBUG mdns_sd::service_daemon: received 12 bytes from IP: 192.168.178.57
2024-10-07T07:40:49.233020Z DEBUG mdns_sd::dns_parser: read_header: id 0, 0 questions 0 answers 0 authorities 0 additionals
2024-10-07T07:40:49.233027Z DEBUG mdns_sd::dns_parser: read_questions: 0
2024-10-07T07:40:49.233034Z DEBUG mdns_sd::dns_parser: read_others: 0
2024-10-07T07:40:49.233047Z DEBUG mdns_sd::service_daemon: received 12 bytes from IP: 192.168.178.57
2024-10-07T07:40:49.233055Z DEBUG mdns_sd::dns_parser: read_header: id 0, 0 questions 0 answers 0 authorities 0 additionals
2024-10-07T07:40:49.233062Z DEBUG mdns_sd::dns_parser: read_questions: 0
2024-10-07T07:40:49.233069Z DEBUG mdns_sd::dns_parser: read_others: 0
2024-10-07T07:40:49.233215Z DEBUG mdns_sd::service_daemon: register service ServiceInfo { ty_domain: "_dummy._tcp.local.", sub_domain: None, fullname: "test._dummy._tcp.local.", server: "arco.local.", addresses: {172.17.0.1, fd00::f13e:4595:edb6:223c, fd00::c73b:785b:e866:b6ab, fe80::fea2:d719:cf55:d788, 192.168.178.57}, port: 3000, host_ttl: 120, other_ttl: 4500, priority: 0, weight: 0, txt_properties: TxtProperties { properties: [TxtProperty {key: "type", val: Some("Dummy Device")}, TxtProperty {key: "scheme", val: Some("http")}] }, addr_auto: true }
2024-10-07T07:40:49.233240Z DEBUG mdns_sd::service_daemon: broadcast service test._dummy._tcp.local.
2024-10-07T07:40:49.233249Z DEBUG mdns_sd::dns_parser: Check for add_answer_at_time
2024-10-07T07:40:49.233256Z DEBUG mdns_sd::dns_parser: add_answer push: DnsPointer { record: DnsRecord { entry: DnsEntry { name: "_dummy._tcp.local.", ty: 12, class: 1, cache_flush: false }, ttl: 4500, created: 1728286849233, expires: 1728291349233, refresh: 1728290449233 }, alias: "test._dummy._tcp.local." }
2024-10-07T07:40:49.233267Z DEBUG mdns_sd::dns_parser: Check for add_answer_at_time
2024-10-07T07:40:49.233274Z DEBUG mdns_sd::dns_parser: add_answer push: DnsSrv { record: DnsRecord { entry: DnsEntry { name: "test._dummy._tcp.local.", ty: 33, class: 1, cache_flush: true }, ttl: 120, created: 1728286849233, expires: 1728286969233, refresh: 1728286945233 }, priority: 0, weight: 0, host: "arco.local.", port: 3000 }
2024-10-07T07:40:49.233288Z DEBUG mdns_sd::dns_parser: Check for add_answer_at_time
2024-10-07T07:40:49.233295Z DEBUG mdns_sd::dns_parser: add_answer push: DnsTxt { record: DnsRecord { entry: DnsEntry { name: "test._dummy._tcp.local.", ty: 16, class: 1, cache_flush: true }, ttl: 4500, created: 1728286849233, expires: 1728291349233, refresh: 1728290449233 }, text: [TxtProperty {key: "type", val: Some("Dummy Device")}, TxtProperty {key: "scheme", val: Some("http")}] }
2024-10-07T07:40:49.233312Z DEBUG mdns_sd::dns_parser: Check for add_answer_at_time
2024-10-07T07:40:49.233319Z DEBUG mdns_sd::dns_parser: add_answer push: DnsAddress { record: DnsRecord { entry: DnsEntry { name: "arco.local.", ty: 1, class: 1, cache_flush: true }, ttl: 120, created: 1728286849233, expires: 1728286969233, refresh: 1728286945233 }, address: 172.17.0.1 }
2024-10-07T07:40:49.233329Z DEBUG mdns_sd::service_daemon: Multicasting response: 0 questions 4 answers 0 authorities 0 additional
2024-10-07T07:40:49.233354Z DEBUG mdns_sd::dns_parser: writing text length 30
2024-10-07T07:40:49.233383Z DEBUG mdns_sd::service_daemon: sent out 131 bytes on interface Interface { name: "docker0", addr: V4(Ifv4Addr { ip: 172.17.0.1, netmask: 255.255.0.0, prefixlen: 16, broadcast: Some(172.17.255.255) }), index: Some(4) }
2024-10-07T07:40:49.233404Z DEBUG mdns_sd::service_daemon: broadcast service test._dummy._tcp.local.
2024-10-07T07:40:49.233417Z DEBUG mdns_sd::dns_parser: Check for add_answer_at_time
2024-10-07T07:40:49.233428Z DEBUG mdns_sd::dns_parser: add_answer push: DnsPointer { record: DnsRecord { entry: DnsEntry { name: "_dummy._tcp.local.", ty: 12, class: 1, cache_flush: false }, ttl: 4500, created: 1728286849233, expires: 1728291349233, refresh: 1728290449233 }, alias: "test._dummy._tcp.local." }
2024-10-07T07:40:49.233446Z DEBUG mdns_sd::dns_parser: Check for add_answer_at_time
2024-10-07T07:40:49.233458Z DEBUG mdns_sd::dns_parser: add_answer push: DnsSrv { record: DnsRecord { entry: DnsEntry { name: "test._dummy._tcp.local.", ty: 33, class: 1, cache_flush: true }, ttl: 120, created: 1728286849233, expires: 1728286969233, refresh: 1728286945233 }, priority: 0, weight: 0, host: "arco.local.", port: 3000 }
2024-10-07T07:40:49.233481Z DEBUG mdns_sd::dns_parser: Check for add_answer_at_time
2024-10-07T07:40:49.233493Z DEBUG mdns_sd::dns_parser: add_answer push: DnsTxt { record: DnsRecord { entry: DnsEntry { name: "test._dummy._tcp.local.", ty: 16, class: 1, cache_flush: true }, ttl: 4500, created: 1728286849233, expires: 1728291349233, refresh: 1728290449233 }, text: [TxtProperty {key: "type", val: Some("Dummy Device")}, TxtProperty {key: "scheme", val: Some("http")}] }
2024-10-07T07:40:49.233518Z DEBUG mdns_sd::dns_parser: Check for add_answer_at_time
2024-10-07T07:40:49.233531Z DEBUG mdns_sd::dns_parser: add_answer push: DnsAddress { record: DnsRecord { entry: DnsEntry { name: "arco.local.", ty: 1, class: 1, cache_flush: true }, ttl: 120, created: 1728286849233, expires: 1728286969233, refresh: 1728286945233 }, address: 192.168.178.57 }
2024-10-07T07:40:49.233550Z DEBUG mdns_sd::service_daemon: Multicasting response: 0 questions 4 answers 0 authorities 0 additional
2024-10-07T07:40:49.233589Z DEBUG mdns_sd::dns_parser: writing text length 30
2024-10-07T07:40:49.233674Z DEBUG mdns_sd::service_daemon: sent out 131 bytes on interface Interface { name: "wlo1", addr: V4(Ifv4Addr { ip: 192.168.178.57, netmask: 255.255.255.0, prefixlen: 24, broadcast: Some(192.168.178.255) }), index: Some(3) }
2024-10-07T07:40:49.233727Z DEBUG mdns_sd::service_daemon: event received with key 4
2024-10-07T07:40:49.233746Z DEBUG mdns_sd::service_daemon: received 131 bytes from IP: 192.168.178.57
2024-10-07T07:40:49.233760Z DEBUG mdns_sd::dns_parser: read_header: id 0, 0 questions 4 answers 0 authorities 0 additionals
2024-10-07T07:40:49.233772Z DEBUG mdns_sd::dns_parser: read_questions: 0
2024-10-07T07:40:49.233785Z DEBUG mdns_sd::dns_parser: read_others: 4
2024-10-07T07:40:49.233808Z DEBUG mdns_sd::dns_parser: read_others: DnsPointer { record: DnsRecord { entry: DnsEntry { name: "_dummy._tcp.local.", ty: 12, class: 1, cache_flush: false }, ttl: 4500, created: 1728286849233, expires: 1728291349233, refresh: 1728290449233 }, alias: "test._dummy._tcp.local." }
2024-10-07T07:40:49.233829Z DEBUG mdns_sd::dns_parser: read_others: DnsSrv { record: DnsRecord { entry: DnsEntry { name: "test._dummy._tcp.local.", ty: 33, class: 1, cache_flush: true }, ttl: 120, created: 1728286849233, expires: 1728286969233, refresh: 1728286945233 }, priority: 0, weight: 0, host: "arco.local.", port: 3000 }
2024-10-07T07:40:49.233850Z DEBUG mdns_sd::dns_parser: read_others: DnsTxt { record: DnsRecord { entry: DnsEntry { name: "test._dummy._tcp.local.", ty: 16, class: 1, cache_flush: true }, ttl: 4500, created: 1728286849233, expires: 1728291349233, refresh: 1728290449233 }, text: [TxtProperty {key: "type", val: Some("Dummy Device")}, TxtProperty {key: "scheme", val: Some("http")}] }
2024-10-07T07:40:49.233875Z DEBUG mdns_sd::dns_parser: read_others: DnsAddress { record: DnsRecord { entry: DnsEntry { name: "arco.local.", ty: 1, class: 1, cache_flush: true }, ttl: 120, created: 1728286849233, expires: 1728286969233, refresh: 1728286945233 }, address: 172.17.0.1 }
2024-10-07T07:40:49.233894Z DEBUG mdns_sd::service_daemon: handle_response: 4 answers 0 authorities 0 additionals
2024-10-07T07:40:49.233945Z DEBUG mdns_sd::service_daemon: received 131 bytes from IP: 192.168.178.57
2024-10-07T07:40:49.233957Z DEBUG mdns_sd::dns_parser: read_header: id 0, 0 questions 4 answers 0 authorities 0 additionals
2024-10-07T07:40:49.233968Z DEBUG mdns_sd::dns_parser: read_questions: 0
2024-10-07T07:40:49.233980Z DEBUG mdns_sd::dns_parser: read_others: 4
2024-10-07T07:40:49.233997Z DEBUG mdns_sd::dns_parser: read_others: DnsPointer { record: DnsRecord { entry: DnsEntry { name: "_dummy._tcp.local.", ty: 12, class: 1, cache_flush: false }, ttl: 4500, created: 1728286849233, expires: 1728291349233, refresh: 1728290449233 }, alias: "test._dummy._tcp.local." }
2024-10-07T07:40:49.234016Z DEBUG mdns_sd::dns_parser: read_others: DnsSrv { record: DnsRecord { entry: DnsEntry { name: "test._dummy._tcp.local.", ty: 33, class: 1, cache_flush: true }, ttl: 120, created: 1728286849234, expires: 1728286969234, refresh: 1728286945234 }, priority: 0, weight: 0, host: "arco.local.", port: 3000 }
2024-10-07T07:40:49.234038Z DEBUG mdns_sd::dns_parser: read_others: DnsTxt { record: DnsRecord { entry: DnsEntry { name: "test._dummy._tcp.local.", ty: 16, class: 1, cache_flush: true }, ttl: 4500, created: 1728286849234, expires: 1728291349234, refresh: 1728290449234 }, text: [TxtProperty {key: "type", val: Some("Dummy Device")}, TxtProperty {key: "scheme", val: Some("http")}] }
2024-10-07T07:40:49.234062Z DEBUG mdns_sd::dns_parser: read_others: DnsAddress { record: DnsRecord { entry: DnsEntry { name: "arco.local.", ty: 1, class: 1, cache_flush: true }, ttl: 120, created: 1728286849234, expires: 1728286969234, refresh: 1728286945234 }, address: 192.168.178.57 }
2024-10-07T07:40:49.234080Z DEBUG mdns_sd::service_daemon: handle_response: 4 answers 0 authorities 0 additionals
2024-10-07T07:40:49.234125Z DEBUG mdns_sd::service_daemon: event received with key 1
2024-10-07T07:40:49.234142Z DEBUG mdns_sd::service_daemon: received 131 bytes from IP: 172.17.0.1
2024-10-07T07:40:49.234156Z DEBUG mdns_sd::dns_parser: read_header: id 0, 0 questions 4 answers 0 authorities 0 additionals
2024-10-07T07:40:49.234168Z DEBUG mdns_sd::dns_parser: read_questions: 0
2024-10-07T07:40:49.234181Z DEBUG mdns_sd::dns_parser: read_others: 4
2024-10-07T07:40:49.234198Z DEBUG mdns_sd::dns_parser: read_others: DnsPointer { record: DnsRecord { entry: DnsEntry { name: "_dummy._tcp.local.", ty: 12, class: 1, cache_flush: false }, ttl: 4500, created: 1728286849234, expires: 1728291349234, refresh: 1728290449234 }, alias: "test._dummy._tcp.local." }
2024-10-07T07:40:49.234217Z DEBUG mdns_sd::dns_parser: read_others: DnsSrv { record: DnsRecord { entry: DnsEntry { name: "test._dummy._tcp.local.", ty: 33, class: 1, cache_flush: true }, ttl: 120, created: 1728286849234, expires: 1728286969234, refresh: 1728286945234 }, priority: 0, weight: 0, host: "arco.local.", port: 3000 }
2024-10-07T07:40:49.234239Z DEBUG mdns_sd::dns_parser: read_others: DnsTxt { record: DnsRecord { entry: DnsEntry { name: "test._dummy._tcp.local.", ty: 16, class: 1, cache_flush: true }, ttl: 4500, created: 1728286849234, expires: 1728291349234, refresh: 1728290449234 }, text: [TxtProperty {key: "type", val: Some("Dummy Device")}, TxtProperty {key: "scheme", val: Some("http")}] }
2024-10-07T07:40:49.234267Z DEBUG mdns_sd::dns_parser: read_others: DnsAddress { record: DnsRecord { entry: DnsEntry { name: "arco.local.", ty: 1, class: 1, cache_flush: true }, ttl: 120, created: 1728286849234, expires: 1728286969234, refresh: 1728286945234 }, address: 172.17.0.1 }
2024-10-07T07:40:49.234285Z DEBUG mdns_sd::service_daemon: handle_response: 4 answers 0 authorities 0 additionals
2024-10-07T07:40:49.234319Z DEBUG mdns_sd::service_daemon: received 131 bytes from IP: 172.17.0.1
2024-10-07T07:40:49.234330Z DEBUG mdns_sd::dns_parser: read_header: id 0, 0 questions 4 answers 0 authorities 0 additionals
2024-10-07T07:40:49.234343Z DEBUG mdns_sd::dns_parser: read_questions: 0
2024-10-07T07:40:49.234355Z DEBUG mdns_sd::dns_parser: read_others: 4
2024-10-07T07:40:49.234371Z DEBUG mdns_sd::dns_parser: read_others: DnsPointer { record: DnsRecord { entry: DnsEntry { name: "_dummy._tcp.local.", ty: 12, class: 1, cache_flush: false }, ttl: 4500, created: 1728286849234, expires: 1728291349234, refresh: 1728290449234 }, alias: "test._dummy._tcp.local." }
2024-10-07T07:40:49.234392Z DEBUG mdns_sd::dns_parser: read_others: DnsSrv { record: DnsRecord { entry: DnsEntry { name: "test._dummy._tcp.local.", ty: 33, class: 1, cache_flush: true }, ttl: 120, created: 1728286849234, expires: 1728286969234, refresh: 1728286945234 }, priority: 0, weight: 0, host: "arco.local.", port: 3000 }
2024-10-07T07:40:49.234413Z DEBUG mdns_sd::dns_parser: read_others: DnsTxt { record: DnsRecord { entry: DnsEntry { name: "test._dummy._tcp.local.", ty: 16, class: 1, cache_flush: true }, ttl: 4500, created: 1728286849234, expires: 1728291349234, refresh: 1728290449234 }, text: [TxtProperty {key: "type", val: Some("Dummy Device")}, TxtProperty {key: "scheme", val: Some("http")}] }
2024-10-07T07:40:49.234439Z DEBUG mdns_sd::dns_parser: read_others: DnsAddress { record: DnsRecord { entry: DnsEntry { name: "arco.local.", ty: 1, class: 1, cache_flush: true }, ttl: 120, created: 1728286849234, expires: 1728286969234, refresh: 1728286945234 }, address: 192.168.178.57 }
2024-10-07T07:40:49.234457Z DEBUG mdns_sd::service_daemon: handle_response: 4 answers 0 authorities 0 additionals
2024-10-07T07:40:50.233739Z DEBUG mdns_sd::service_daemon: announce service: test._dummy._tcp.local.
2024-10-07T07:40:50.233890Z DEBUG mdns_sd::service_daemon: broadcast service test._dummy._tcp.local.
2024-10-07T07:40:50.233957Z DEBUG mdns_sd::dns_parser: Check for add_answer_at_time
2024-10-07T07:40:50.234016Z DEBUG mdns_sd::dns_parser: add_answer push: DnsPointer { record: DnsRecord { entry: DnsEntry { name: "_dummy._tcp.local.", ty: 12, class: 1, cache_flush: false }, ttl: 4500, created: 1728286850233, expires: 1728291350233, refresh: 1728290450233 }, alias: "test._dummy._tcp.local." }
2024-10-07T07:40:50.234123Z DEBUG mdns_sd::dns_parser: Check for add_answer_at_time
2024-10-07T07:40:50.234183Z DEBUG mdns_sd::dns_parser: add_answer push: DnsSrv { record: DnsRecord { entry: DnsEntry { name: "test._dummy._tcp.local.", ty: 33, class: 1, cache_flush: true }, ttl: 120, created: 1728286850234, expires: 1728286970234, refresh: 1728286946234 }, priority: 0, weight: 0, host: "arco.local.", port: 3000 }
2024-10-07T07:40:50.234292Z DEBUG mdns_sd::dns_parser: Check for add_answer_at_time
2024-10-07T07:40:50.234355Z DEBUG mdns_sd::dns_parser: add_answer push: DnsTxt { record: DnsRecord { entry: DnsEntry { name: "test._dummy._tcp.local.", ty: 16, class: 1, cache_flush: true }, ttl: 4500, created: 1728286850234, expires: 1728291350234, refresh: 1728290450234 }, text: [TxtProperty {key: "type", val: Some("Dummy Device")}, TxtProperty {key: "scheme", val: Some("http")}] }
2024-10-07T07:40:50.234494Z DEBUG mdns_sd::dns_parser: Check for add_answer_at_time
2024-10-07T07:40:50.234549Z DEBUG mdns_sd::dns_parser: add_answer push: DnsAddress { record: DnsRecord { entry: DnsEntry { name: "arco.local.", ty: 1, class: 1, cache_flush: true }, ttl: 120, created: 1728286850234, expires: 1728286970234, refresh: 1728286946234 }, address: 172.17.0.1 }
2024-10-07T07:40:50.234643Z DEBUG mdns_sd::service_daemon: Multicasting response: 0 questions 4 answers 0 authorities 0 additional
2024-10-07T07:40:50.234853Z DEBUG mdns_sd::dns_parser: writing text length 30
2024-10-07T07:40:50.235115Z DEBUG mdns_sd::service_daemon: sent out 131 bytes on interface Interface { name: "docker0", addr: V4(Ifv4Addr { ip: 172.17.0.1, netmask: 255.255.0.0, prefixlen: 16, broadcast: Some(172.17.255.255) }), index: Some(4) }
2024-10-07T07:40:50.235254Z DEBUG mdns_sd::service_daemon: broadcast service test._dummy._tcp.local.
2024-10-07T07:40:50.235321Z DEBUG mdns_sd::dns_parser: Check for add_answer_at_time
2024-10-07T07:40:50.235381Z DEBUG mdns_sd::dns_parser: add_answer push: DnsPointer { record: DnsRecord { entry: DnsEntry { name: "_dummy._tcp.local.", ty: 12, class: 1, cache_flush: false }, ttl: 4500, created: 1728286850235, expires: 1728291350235, refresh: 1728290450235 }, alias: "test._dummy._tcp.local." }
2024-10-07T07:40:50.235481Z DEBUG mdns_sd::dns_parser: Check for add_answer_at_time
2024-10-07T07:40:50.235542Z DEBUG mdns_sd::dns_parser: add_answer push: DnsSrv { record: DnsRecord { entry: DnsEntry { name: "test._dummy._tcp.local.", ty: 33, class: 1, cache_flush: true }, ttl: 120, created: 1728286850235, expires: 1728286970235, refresh: 1728286946235 }, priority: 0, weight: 0, host: "arco.local.", port: 3000 }
2024-10-07T07:40:50.235655Z DEBUG mdns_sd::dns_parser: Check for add_answer_at_time
2024-10-07T07:40:50.235718Z DEBUG mdns_sd::dns_parser: add_answer push: DnsTxt { record: DnsRecord { entry: DnsEntry { name: "test._dummy._tcp.local.", ty: 16, class: 1, cache_flush: true }, ttl: 4500, created: 1728286850235, expires: 1728291350235, refresh: 1728290450235 }, text: [TxtProperty {key: "type", val: Some("Dummy Device")}, TxtProperty {key: "scheme", val: Some("http")}] }
2024-10-07T07:40:50.235882Z DEBUG mdns_sd::dns_parser: Check for add_answer_at_time
2024-10-07T07:40:50.235948Z DEBUG mdns_sd::dns_parser: add_answer push: DnsAddress { record: DnsRecord { entry: DnsEntry { name: "arco.local.", ty: 1, class: 1, cache_flush: true }, ttl: 120, created: 1728286850235, expires: 1728286970235, refresh: 1728286946235 }, address: 192.168.178.57 }
2024-10-07T07:40:50.236045Z DEBUG mdns_sd::service_daemon: Multicasting response: 0 questions 4 answers 0 authorities 0 additional
2024-10-07T07:40:50.236233Z DEBUG mdns_sd::dns_parser: writing text length 30
2024-10-07T07:40:50.236452Z DEBUG mdns_sd::service_daemon: sent out 131 bytes on interface Interface { name: "wlo1", addr: V4(Ifv4Addr { ip: 192.168.178.57, netmask: 255.255.255.0, prefixlen: 24, broadcast: Some(192.168.178.255) }), index: Some(3) }
2024-10-07T07:40:50.236657Z DEBUG mdns_sd::service_daemon: event received with key 4
2024-10-07T07:40:50.236786Z DEBUG mdns_sd::service_daemon: received 131 bytes from IP: 192.168.178.57
2024-10-07T07:40:50.236868Z DEBUG mdns_sd::dns_parser: read_header: id 0, 0 questions 4 answers 0 authorities 0 additionals
2024-10-07T07:40:50.236932Z DEBUG mdns_sd::dns_parser: read_questions: 0
2024-10-07T07:40:50.236994Z DEBUG mdns_sd::dns_parser: read_others: 4
2024-10-07T07:40:50.237083Z DEBUG mdns_sd::dns_parser: read_others: DnsPointer { record: DnsRecord { entry: DnsEntry { name: "_dummy._tcp.local.", ty: 12, class: 1, cache_flush: false }, ttl: 4500, created: 1728286850237, expires: 1728291350237, refresh: 1728290450237 }, alias: "test._dummy._tcp.local." }
2024-10-07T07:40:50.237183Z DEBUG mdns_sd::dns_parser: read_others: DnsSrv { record: DnsRecord { entry: DnsEntry { name: "test._dummy._tcp.local.", ty: 33, class: 1, cache_flush: true }, ttl: 120, created: 1728286850237, expires: 1728286970237, refresh: 1728286946237 }, priority: 0, weight: 0, host: "arco.local.", port: 3000 }
2024-10-07T07:40:50.237297Z DEBUG mdns_sd::dns_parser: read_others: DnsTxt { record: DnsRecord { entry: DnsEntry { name: "test._dummy._tcp.local.", ty: 16, class: 1, cache_flush: true }, ttl: 4500, created: 1728286850237, expires: 1728291350237, refresh: 1728290450237 }, text: [TxtProperty {key: "type", val: Some("Dummy Device")}, TxtProperty {key: "scheme", val: Some("http")}] }
2024-10-07T07:40:50.237427Z DEBUG mdns_sd::dns_parser: read_others: DnsAddress { record: DnsRecord { entry: DnsEntry { name: "arco.local.", ty: 1, class: 1, cache_flush: true }, ttl: 120, created: 1728286850237, expires: 1728286970237, refresh: 1728286946237 }, address: 172.17.0.1 }
2024-10-07T07:40:50.237521Z DEBUG mdns_sd::service_daemon: handle_response: 4 answers 0 authorities 0 additionals
2024-10-07T07:40:50.237633Z DEBUG mdns_sd::dns_cache: FLUSH one record: DnsSrv { record: DnsRecord { entry: DnsEntry { name: "test._dummy._tcp.local.", ty: 33, class: 1, cache_flush: true }, ttl: 120, created: 1728286849234, expires: 1728286969234, refresh: 1728286945234 }, priority: 0, weight: 0, host: "arco.local.", port: 3000 }
2024-10-07T07:40:50.237750Z DEBUG mdns_sd::dns_cache: FLUSH one record: DnsTxt { record: DnsRecord { entry: DnsEntry { name: "test._dummy._tcp.local.", ty: 16, class: 1, cache_flush: true }, ttl: 4500, created: 1728286849234, expires: 1728291349234, refresh: 1728290449234 }, text: [TxtProperty {key: "type", val: Some("Dummy Device")}, TxtProperty {key: "scheme", val: Some("http")}] }
2024-10-07T07:40:50.237973Z DEBUG mdns_sd::service_daemon: received 131 bytes from IP: 192.168.178.57
2024-10-07T07:40:50.238045Z DEBUG mdns_sd::dns_parser: read_header: id 0, 0 questions 4 answers 0 authorities 0 additionals
2024-10-07T07:40:50.238107Z DEBUG mdns_sd::dns_parser: read_questions: 0
2024-10-07T07:40:50.238165Z DEBUG mdns_sd::dns_parser: read_others: 4
2024-10-07T07:40:50.238269Z DEBUG mdns_sd::dns_parser: read_others: DnsPointer { record: DnsRecord { entry: DnsEntry { name: "_dummy._tcp.local.", ty: 12, class: 1, cache_flush: false }, ttl: 4500, created: 1728286850238, expires: 1728291350238, refresh: 1728290450238 }, alias: "test._dummy._tcp.local." }
2024-10-07T07:40:50.238397Z DEBUG mdns_sd::dns_parser: read_others: DnsSrv { record: DnsRecord { entry: DnsEntry { name: "test._dummy._tcp.local.", ty: 33, class: 1, cache_flush: true }, ttl: 120, created: 1728286850238, expires: 1728286970238, refresh: 1728286946238 }, priority: 0, weight: 0, host: "arco.local.", port: 3000 }
2024-10-07T07:40:50.238499Z DEBUG mdns_sd::dns_parser: read_others: DnsTxt { record: DnsRecord { entry: DnsEntry { name: "test._dummy._tcp.local.", ty: 16, class: 1, cache_flush: true }, ttl: 4500, created: 1728286850238, expires: 1728291350238, refresh: 1728290450238 }, text: [TxtProperty {key: "type", val: Some("Dummy Device")}, TxtProperty {key: "scheme", val: Some("http")}] }
2024-10-07T07:40:50.238620Z DEBUG mdns_sd::dns_parser: read_others: DnsAddress { record: DnsRecord { entry: DnsEntry { name: "arco.local.", ty: 1, class: 1, cache_flush: true }, ttl: 120, created: 1728286850238, expires: 1728286970238, refresh: 1728286946238 }, address: 192.168.178.57 }
2024-10-07T07:40:50.238706Z DEBUG mdns_sd::service_daemon: handle_response: 4 answers 0 authorities 0 additionals
2024-10-07T07:40:50.238843Z DEBUG mdns_sd::dns_cache: FLUSH one record: DnsAddress { record: DnsRecord { entry: DnsEntry { name: "arco.local.", ty: 1, class: 1, cache_flush: true }, ttl: 120, created: 1728286849234, expires: 1728286969234, refresh: 1728286945234 }, address: 192.168.178.57 }
2024-10-07T07:40:50.239031Z DEBUG mdns_sd::service_daemon: event received with key 1
2024-10-07T07:40:50.239138Z DEBUG mdns_sd::service_daemon: received 131 bytes from IP: 172.17.0.1
2024-10-07T07:40:50.239152Z DEBUG mdns_sd::dns_parser: read_header: id 0, 0 questions 4 answers 0 authorities 0 additionals
2024-10-07T07:40:50.239164Z DEBUG mdns_sd::dns_parser: read_questions: 0
2024-10-07T07:40:50.239174Z DEBUG mdns_sd::dns_parser: read_others: 4
2024-10-07T07:40:50.239189Z DEBUG mdns_sd::dns_parser: read_others: DnsPointer { record: DnsRecord { entry: DnsEntry { name: "_dummy._tcp.local.", ty: 12, class: 1, cache_flush: false }, ttl: 4500, created: 1728286850239, expires: 1728291350239, refresh: 1728290450239 }, alias: "test._dummy._tcp.local." }
2024-10-07T07:40:50.239211Z DEBUG mdns_sd::dns_parser: read_others: DnsSrv { record: DnsRecord { entry: DnsEntry { name: "test._dummy._tcp.local.", ty: 33, class: 1, cache_flush: true }, ttl: 120, created: 1728286850239, expires: 1728286970239, refresh: 1728286946239 }, priority: 0, weight: 0, host: "arco.local.", port: 3000 }
2024-10-07T07:40:50.239231Z DEBUG mdns_sd::dns_parser: read_others: DnsTxt { record: DnsRecord { entry: DnsEntry { name: "test._dummy._tcp.local.", ty: 16, class: 1, cache_flush: true }, ttl: 4500, created: 1728286850239, expires: 1728291350239, refresh: 1728290450239 }, text: [TxtProperty {key: "type", val: Some("Dummy Device")}, TxtProperty {key: "scheme", val: Some("http")}] }
2024-10-07T07:40:50.239257Z DEBUG mdns_sd::dns_parser: read_others: DnsAddress { record: DnsRecord { entry: DnsEntry { name: "arco.local.", ty: 1, class: 1, cache_flush: true }, ttl: 120, created: 1728286850239, expires: 1728286970239, refresh: 1728286946239 }, address: 172.17.0.1 }
2024-10-07T07:40:50.239274Z DEBUG mdns_sd::service_daemon: handle_response: 4 answers 0 authorities 0 additionals
2024-10-07T07:40:50.239309Z DEBUG mdns_sd::service_daemon: received 131 bytes from IP: 172.17.0.1
2024-10-07T07:40:50.239320Z DEBUG mdns_sd::dns_parser: read_header: id 0, 0 questions 4 answers 0 authorities 0 additionals
2024-10-07T07:40:50.239331Z DEBUG mdns_sd::dns_parser: read_questions: 0
2024-10-07T07:40:50.239341Z DEBUG mdns_sd::dns_parser: read_others: 4
2024-10-07T07:40:50.239358Z DEBUG mdns_sd::dns_parser: read_others: DnsPointer { record: DnsRecord { entry: DnsEntry { name: "_dummy._tcp.local.", ty: 12, class: 1, cache_flush: false }, ttl: 4500, created: 1728286850239, expires: 1728291350239, refresh: 1728290450239 }, alias: "test._dummy._tcp.local." }
2024-10-07T07:40:50.239379Z DEBUG mdns_sd::dns_parser: read_others: DnsSrv { record: DnsRecord { entry: DnsEntry { name: "test._dummy._tcp.local.", ty: 33, class: 1, cache_flush: true }, ttl: 120, created: 1728286850239, expires: 1728286970239, refresh: 1728286946239 }, priority: 0, weight: 0, host: "arco.local.", port: 3000 }
2024-10-07T07:40:50.239400Z DEBUG mdns_sd::dns_parser: read_others: DnsTxt { record: DnsRecord { entry: DnsEntry { name: "test._dummy._tcp.local.", ty: 16, class: 1, cache_flush: true }, ttl: 4500, created: 1728286850239, expires: 1728291350239, refresh: 1728290450239 }, text: [TxtProperty {key: "type", val: Some("Dummy Device")}, TxtProperty {key: "scheme", val: Some("http")}] }
2024-10-07T07:40:50.239422Z DEBUG mdns_sd::dns_parser: read_others: DnsAddress { record: DnsRecord { entry: DnsEntry { name: "arco.local.", ty: 1, class: 1, cache_flush: true }, ttl: 120, created: 1728286850239, expires: 1728286970239, refresh: 1728286946239 }, address: 192.168.178.57 }
2024-10-07T07:40:50.239437Z DEBUG mdns_sd::service_daemon: handle_response: 4 answers 0 authorities 0 additionals
2024-10-07T07:41:28.677944Z DEBUG mdns_sd::service_daemon: event received with key 4
2024-10-07T07:41:28.678077Z DEBUG mdns_sd::service_daemon: received 28 bytes from IP: 192.168.178.57
2024-10-07T07:41:28.678151Z DEBUG mdns_sd::dns_parser: read_header: id 11980, 1 questions 0 answers 0 authorities 0 additionals
2024-10-07T07:41:28.678228Z DEBUG mdns_sd::dns_parser: read_questions: 1
2024-10-07T07:41:28.678310Z DEBUG mdns_sd::dns_parser: read_others: 0
2024-10-07T07:41:28.678383Z DEBUG mdns_sd::service_daemon: query question: DnsQuestion { entry: DnsEntry { name: "arco.local.", ty: 255, class: 1, cache_flush: false } }
2024-10-07T07:41:28.678489Z DEBUG mdns_sd::dns_parser: Check for add_answer
2024-10-07T07:41:28.678545Z DEBUG mdns_sd::dns_parser: Check for add_answer_at_time
2024-10-07T07:41:28.678604Z DEBUG mdns_sd::dns_parser: add_answer push: DnsAddress { record: DnsRecord { entry: DnsEntry { name: "arco.local.", ty: 1, class: 1, cache_flush: true }, ttl: 120, created: 1728286888678, expires: 1728287008678, refresh: 1728286984678 }, address: 192.168.178.57 }
2024-10-07T07:41:28.678700Z DEBUG mdns_sd::service_daemon: Multicasting response: 0 questions 1 answers 0 authorities 0 additional
2024-10-07T07:41:28.679042Z DEBUG mdns_sd::service_daemon: sent out 38 bytes on interface Interface { name: "wlo1", addr: V4(Ifv4Addr { ip: 192.168.178.57, netmask: 255.255.255.0, prefixlen: 24, broadcast: Some(192.168.178.255) }), index: Some(3) }
2024-10-07T07:41:28.679220Z DEBUG mdns_sd::service_daemon: received 38 bytes from IP: 192.168.178.57
2024-10-07T07:41:28.679292Z DEBUG mdns_sd::dns_parser: read_header: id 0, 0 questions 1 answers 0 authorities 0 additionals
2024-10-07T07:41:28.679360Z DEBUG mdns_sd::dns_parser: read_questions: 0
2024-10-07T07:41:28.679424Z DEBUG mdns_sd::dns_parser: read_others: 1
2024-10-07T07:41:28.679507Z DEBUG mdns_sd::dns_parser: read_others: DnsAddress { record: DnsRecord { entry: DnsEntry { name: "arco.local.", ty: 1, class: 1, cache_flush: true }, ttl: 120, created: 1728286888679, expires: 1728287008679, refresh: 1728286984679 }, address: 192.168.178.57 }
2024-10-07T07:41:28.679599Z DEBUG mdns_sd::service_daemon: handle_response: 1 answers 0 authorities 0 additionals
2024-10-07T07:41:28.679687Z DEBUG mdns_sd::dns_cache: FLUSH one record: DnsAddress { record: DnsRecord { entry: DnsEntry { name: "arco.local.", ty: 1, class: 1, cache_flush: true }, ttl: 120, created: 1728286850239, expires: 1728286970239, refresh: 1728286946239 }, address: 192.168.178.57 }
2024-10-07T07:41:28.679884Z DEBUG mdns_sd::service_daemon: event received with key 1
2024-10-07T07:41:28.679971Z DEBUG mdns_sd::service_daemon: received 28 bytes from IP: 172.17.0.1
2024-10-07T07:41:28.680033Z DEBUG mdns_sd::dns_parser: read_header: id 11980, 1 questions 0 answers 0 authorities 0 additionals
2024-10-07T07:41:28.680098Z DEBUG mdns_sd::dns_parser: read_questions: 1
2024-10-07T07:41:28.680156Z DEBUG mdns_sd::dns_parser: read_others: 0
2024-10-07T07:41:28.680229Z DEBUG mdns_sd::service_daemon: query question: DnsQuestion { entry: DnsEntry { name: "arco.local.", ty: 255, class: 1, cache_flush: false } }
2024-10-07T07:41:28.680309Z DEBUG mdns_sd::dns_parser: Check for add_answer
2024-10-07T07:41:28.680369Z DEBUG mdns_sd::dns_parser: Check for add_answer_at_time
2024-10-07T07:41:28.680405Z DEBUG mdns_sd::dns_parser: add_answer push: DnsAddress { record: DnsRecord { entry: DnsEntry { name: "arco.local.", ty: 1, class: 1, cache_flush: true }, ttl: 120, created: 1728286888680, expires: 1728287008680, refresh: 1728286984680 }, address: 172.17.0.1 }
2024-10-07T07:41:28.680502Z DEBUG mdns_sd::service_daemon: Multicasting response: 0 questions 1 answers 0 authorities 0 additional
2024-10-07T07:41:28.680716Z DEBUG mdns_sd::service_daemon: sent out 38 bytes on interface Interface { name: "docker0", addr: V4(Ifv4Addr { ip: 172.17.0.1, netmask: 255.255.0.0, prefixlen: 16, broadcast: Some(172.17.255.255) }), index: Some(4) }
2024-10-07T07:41:28.680868Z DEBUG mdns_sd::service_daemon: received 38 bytes from IP: 172.17.0.1
2024-10-07T07:41:28.680943Z DEBUG mdns_sd::dns_parser: read_header: id 0, 0 questions 1 answers 0 authorities 0 additionals
2024-10-07T07:41:28.680999Z DEBUG mdns_sd::dns_parser: read_questions: 0
2024-10-07T07:41:28.681061Z DEBUG mdns_sd::dns_parser: read_others: 1
2024-10-07T07:41:28.681116Z DEBUG mdns_sd::dns_parser: read_others: DnsAddress { record: DnsRecord { entry: DnsEntry { name: "arco.local.", ty: 1, class: 1, cache_flush: true }, ttl: 120, created: 1728286888681, expires: 1728287008681, refresh: 1728286984681 }, address: 192.168.178.57 }
2024-10-07T07:41:28.681215Z DEBUG mdns_sd::service_daemon: handle_response: 1 answers 0 authorities 0 additionals
2024-10-07T07:41:28.681362Z DEBUG mdns_sd::service_daemon: received 38 bytes from IP: 172.17.0.1
2024-10-07T07:41:28.681421Z DEBUG mdns_sd::dns_parser: read_header: id 0, 0 questions 1 answers 0 authorities 0 additionals
2024-10-07T07:41:28.681464Z DEBUG mdns_sd::dns_parser: read_questions: 0
2024-10-07T07:41:28.681475Z DEBUG mdns_sd::dns_parser: read_others: 1
2024-10-07T07:41:28.681489Z DEBUG mdns_sd::dns_parser: read_others: DnsAddress { record: DnsRecord { entry: DnsEntry { name: "arco.local.", ty: 1, class: 1, cache_flush: true }, ttl: 120, created: 1728286888681, expires: 1728287008681, refresh: 1728286984681 }, address: 172.17.0.1 }
2024-10-07T07:41:28.681506Z DEBUG mdns_sd::service_daemon: handle_response: 1 answers 0 authorities 0 additionals
2024-10-07T07:41:28.681520Z DEBUG mdns_sd::dns_cache: FLUSH one record: DnsAddress { record: DnsRecord { entry: DnsEntry { name: "arco.local.", ty: 1, class: 1, cache_flush: true }, ttl: 120, created: 1728286850239, expires: 1728286970239, refresh: 1728286946239 }, address: 172.17.0.1 }
2024-10-07T07:41:28.681720Z DEBUG mdns_sd::service_daemon: event received with key 4
2024-10-07T07:41:28.681737Z DEBUG mdns_sd::service_daemon: received 38 bytes from IP: 192.168.178.57
2024-10-07T07:41:28.681751Z DEBUG mdns_sd::dns_parser: read_header: id 0, 0 questions 1 answers 0 authorities 0 additionals
2024-10-07T07:41:28.681763Z DEBUG mdns_sd::dns_parser: read_questions: 0
2024-10-07T07:41:28.681774Z DEBUG mdns_sd::dns_parser: read_others: 1
2024-10-07T07:41:28.681789Z DEBUG mdns_sd::dns_parser: read_others: DnsAddress { record: DnsRecord { entry: DnsEntry { name: "arco.local.", ty: 1, class: 1, cache_flush: true }, ttl: 120, created: 1728286888681, expires: 1728287008681, refresh: 1728286984681 }, address: 172.17.0.1 }
2024-10-07T07:41:28.681831Z DEBUG mdns_sd::service_daemon: handle_response: 1 answers 0 authorities 0 additionals
2024-10-07T07:42:28.782924Z DEBUG mdns_sd::service_daemon: event received with key 4
2024-10-07T07:42:28.783056Z DEBUG mdns_sd::service_daemon: received 28 bytes from IP: 192.168.178.57
2024-10-07T07:42:28.783131Z DEBUG mdns_sd::dns_parser: read_header: id 15983, 1 questions 0 answers 0 authorities 0 additionals
2024-10-07T07:42:28.783201Z DEBUG mdns_sd::dns_parser: read_questions: 1
2024-10-07T07:42:28.783285Z DEBUG mdns_sd::dns_parser: read_others: 0
2024-10-07T07:42:28.783362Z DEBUG mdns_sd::service_daemon: query question: DnsQuestion { entry: DnsEntry { name: "arco.local.", ty: 255, class: 1, cache_flush: false } }
2024-10-07T07:42:28.783468Z DEBUG mdns_sd::dns_parser: Check for add_answer
2024-10-07T07:42:28.783524Z DEBUG mdns_sd::dns_parser: Check for add_answer_at_time
2024-10-07T07:42:28.783586Z DEBUG mdns_sd::dns_parser: add_answer push: DnsAddress { record: DnsRecord { entry: DnsEntry { name: "arco.local.", ty: 1, class: 1, cache_flush: true }, ttl: 120, created: 1728286948783, expires: 1728287068783, refresh: 1728287044783 }, address: 192.168.178.57 }
2024-10-07T07:42:28.783701Z DEBUG mdns_sd::service_daemon: Multicasting response: 0 questions 1 answers 0 authorities 0 additional
2024-10-07T07:42:28.784054Z DEBUG mdns_sd::service_daemon: sent out 38 bytes on interface Interface { name: "wlo1", addr: V4(Ifv4Addr { ip: 192.168.178.57, netmask: 255.255.255.0, prefixlen: 24, broadcast: Some(192.168.178.255) }), index: Some(3) }
2024-10-07T07:42:28.784229Z DEBUG mdns_sd::service_daemon: received 38 bytes from IP: 192.168.178.57
2024-10-07T07:42:28.784304Z DEBUG mdns_sd::dns_parser: read_header: id 0, 0 questions 1 answers 0 authorities 0 additionals
2024-10-07T07:42:28.784365Z DEBUG mdns_sd::dns_parser: read_questions: 0
2024-10-07T07:42:28.784427Z DEBUG mdns_sd::dns_parser: read_others: 1
2024-10-07T07:42:28.784507Z DEBUG mdns_sd::dns_parser: read_others: DnsAddress { record: DnsRecord { entry: DnsEntry { name: "arco.local.", ty: 1, class: 1, cache_flush: true }, ttl: 120, created: 1728286948784, expires: 1728287068784, refresh: 1728287044784 }, address: 192.168.178.57 }
2024-10-07T07:42:28.784603Z DEBUG mdns_sd::service_daemon: handle_response: 1 answers 0 authorities 0 additionals
2024-10-07T07:42:28.784667Z DEBUG mdns_sd::dns_cache: FLUSH one record: DnsAddress { record: DnsRecord { entry: DnsEntry { name: "arco.local.", ty: 1, class: 1, cache_flush: true }, ttl: 120, created: 1728286888681, expires: 1728287008681, refresh: 1728286984681 }, address: 192.168.178.57 }
2024-10-07T07:42:28.784870Z DEBUG mdns_sd::service_daemon: event received with key 1
2024-10-07T07:42:28.784945Z DEBUG mdns_sd::service_daemon: received 28 bytes from IP: 172.17.0.1
2024-10-07T07:42:28.784996Z DEBUG mdns_sd::dns_parser: read_header: id 15983, 1 questions 0 answers 0 authorities 0 additionals
2024-10-07T07:42:28.785060Z DEBUG mdns_sd::dns_parser: read_questions: 1
2024-10-07T07:42:28.785137Z DEBUG mdns_sd::dns_parser: read_others: 0
2024-10-07T07:42:28.785211Z DEBUG mdns_sd::service_daemon: query question: DnsQuestion { entry: DnsEntry { name: "arco.local.", ty: 255, class: 1, cache_flush: false } }
2024-10-07T07:42:28.785290Z DEBUG mdns_sd::dns_parser: Check for add_answer
2024-10-07T07:42:28.785354Z DEBUG mdns_sd::dns_parser: Check for add_answer_at_time
2024-10-07T07:42:28.785415Z DEBUG mdns_sd::dns_parser: add_answer push: DnsAddress { record: DnsRecord { entry: DnsEntry { name: "arco.local.", ty: 1, class: 1, cache_flush: true }, ttl: 120, created: 1728286948785, expires: 1728287068785, refresh: 1728287044785 }, address: 172.17.0.1 }
2024-10-07T07:42:28.785521Z DEBUG mdns_sd::service_daemon: Multicasting response: 0 questions 1 answers 0 authorities 0 additional
2024-10-07T07:42:28.785745Z DEBUG mdns_sd::service_daemon: sent out 38 bytes on interface Interface { name: "docker0", addr: V4(Ifv4Addr { ip: 172.17.0.1, netmask: 255.255.0.0, prefixlen: 16, broadcast: Some(172.17.255.255) }), index: Some(4) }
2024-10-07T07:42:28.785908Z DEBUG mdns_sd::service_daemon: received 38 bytes from IP: 172.17.0.1
2024-10-07T07:42:28.785985Z DEBUG mdns_sd::dns_parser: read_header: id 0, 0 questions 1 answers 0 authorities 0 additionals
2024-10-07T07:42:28.786052Z DEBUG mdns_sd::dns_parser: read_questions: 0
2024-10-07T07:42:28.786118Z DEBUG mdns_sd::dns_parser: read_others: 1
2024-10-07T07:42:28.786198Z DEBUG mdns_sd::dns_parser: read_others: DnsAddress { record: DnsRecord { entry: DnsEntry { name: "arco.local.", ty: 1, class: 1, cache_flush: true }, ttl: 120, created: 1728286948786, expires: 1728287068786, refresh: 1728287044786 }, address: 192.168.178.57 }
2024-10-07T07:42:28.786284Z DEBUG mdns_sd::service_daemon: handle_response: 1 answers 0 authorities 0 additionals
2024-10-07T07:42:28.786432Z DEBUG mdns_sd::service_daemon: received 38 bytes from IP: 172.17.0.1
2024-10-07T07:42:28.786487Z DEBUG mdns_sd::dns_parser: read_header: id 0, 0 questions 1 answers 0 authorities 0 additionals
2024-10-07T07:42:28.786552Z DEBUG mdns_sd::dns_parser: read_questions: 0
2024-10-07T07:42:28.786616Z DEBUG mdns_sd::dns_parser: read_others: 1
2024-10-07T07:42:28.786694Z DEBUG mdns_sd::dns_parser: read_others: DnsAddress { record: DnsRecord { entry: DnsEntry { name: "arco.local.", ty: 1, class: 1, cache_flush: true }, ttl: 120, created: 1728286948786, expires: 1728287068786, refresh: 1728287044786 }, address: 172.17.0.1 }
2024-10-07T07:42:28.786784Z DEBUG mdns_sd::service_daemon: handle_response: 1 answers 0 authorities 0 additionals
2024-10-07T07:42:28.786896Z DEBUG mdns_sd::dns_cache: FLUSH one record: DnsAddress { record: DnsRecord { entry: DnsEntry { name: "arco.local.", ty: 1, class: 1, cache_flush: true }, ttl: 120, created: 1728286888681, expires: 1728287008681, refresh: 1728286984681 }, address: 172.17.0.1 }
2024-10-07T07:42:28.787147Z DEBUG mdns_sd::service_daemon: event received with key 4
2024-10-07T07:42:28.787225Z DEBUG mdns_sd::service_daemon: received 38 bytes from IP: 192.168.178.57
2024-10-07T07:42:28.787269Z DEBUG mdns_sd::dns_parser: read_header: id 0, 0 questions 1 answers 0 authorities 0 additionals
2024-10-07T07:42:28.787309Z DEBUG mdns_sd::dns_parser: read_questions: 0
2024-10-07T07:42:28.787345Z DEBUG mdns_sd::dns_parser: read_others: 1
2024-10-07T07:42:28.787393Z DEBUG mdns_sd::dns_parser: read_others: DnsAddress { record: DnsRecord { entry: DnsEntry { name: "arco.local.", ty: 1, class: 1, cache_flush: true }, ttl: 120, created: 1728286948787, expires: 1728287068787, refresh: 1728287044787 }, address: 172.17.0.1 }
2024-10-07T07:42:28.787450Z DEBUG mdns_sd::service_daemon: handle_response: 1 answers 0 authorities 0 additionals
2024-10-07T07:42:50.240164Z DEBUG mdns_sd::dns_cache: expired SRV: _dummy._tcp.local.: test._dummy._tcp.local. It does not work at all from my laptop as well |
Beta Was this translation helpful? Give feedback.
-
I tried some tests and I think I understand your question better now. I would recommend the following solution: Solution 1 (preferred): When binding to a listening port in your server, you can use the commonly used wild card address (INADDR_ANY, i.e. 0.0.0.0) instead of the first IP address returned from the system / lib call: Then you can register your mDNS service using all IPv4 address you found. (I also tried using Solution 2: Like I mentioned earlier and you tried as well, you can use the same address to listen for the server and to register for the mDNS service (for example, the first IPv4 address you found). The downside is that: it's not guaranteed which address was found as the first one. You can somehow remediate this by getting the address of a particular interface (e.g. "eth0") you are interested in, but again that hardcode would not be very flexible. What do you think? |
Beta Was this translation helpful? Give feedback.
-
When I pass more IPs addresses to
ServiceInfo
, for exampleit takes the second IP address,
172.17.0.1
, as first choice instead of192.168.178.126
. Is there a particular reason for this behavior? How can I always choose the first address?I need to pass both of them otherwise I get the following error when I try to access from an external device my
hostname.local
but if I use both of them,
172.17.0.1
impedes to reach outhostname.local
from my PCThanks in advance for your help!
Beta Was this translation helpful? Give feedback.
All reactions