Skip to content

[BUG REPORT] 重构网络子分支下,使用 UDP 查询 DNS 报错 os error 93 #1029

@val213

Description

@val213
  • DragonOS版本:feat-network-rebuild: 055c144

重现步骤
进系统后执行: dog example.net -U
期望行为
得到 DNS 查询结果回显

屏幕截图
下图中的日志是修改 DNS 查询工具 dog 源码手动添加的日志输出:
c46b349ab3884425f70cf5a505a5bd2

系统日志

Reading hints from /etc/hosts Local host hints: LocalHosts { hostnames: {} } Generating requests for Inputs { domains: [Labels { segments: [(7, "example"), (3, "net")] }], record_types: [A], classes: [IN], resolver_types: [SystemDefault], transport_types: [UDP] } Using nameserver: "8.8.8.8" Using transport type: UDP Generated request: Request { transaction_id: 48287, flags: Flags { response: false, opcode: Query, authoritative: false, truncated: false, recursion_desired: true, recursion_available: false, authentic_data: false, checking_disabled: false, error_code: None }, query: Query { qname: Labels { segments: [(7, "example"), (3, "net")] }, qclass: IN, qtype: A }, additional: Some(OPT { udp_payload_size: 512, higher_bits: 0, edns0_version: 0, flags: 0, data: [] }) } Total requests generated: 1 Request tuples generated Sending request 1 of 1 Opening UDP socket [ DEBUG ] (src/net/socket/family.rs:110) AddressFamily::try_from failed: x=2 [ DEBUG ] (src/net/socket/family.rs:110) AddressFamily::try_from failed: x=2 Error sending request 1: NetworkError(Os { code: 93, kind: Uncategorized, message: "Protocol not supported" }) Error [[networkk]: Protocol not supported (os error 93)) 

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug-report这是一个bug报告(如果确认是一个bug,请管理人员添加`bug` label)needs-triage这个问题可能需要分类处理。如果已经完成分类,请移除它。

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions