Skip to content

IPv4-Addres octets are reversed #7

@amtelekom

Description

@amtelekom

(Note: I'm cross-compiling x86_64-pc-windows-gnu on Linux and then run on Windows, so that might influence things):

Looking up a LAN Hostname that should point to 10.0.100.31, async-dns returns an address 31.100.0.10 instead.

Both rust's Ipv4Addr and the winapi DNS-A record store IP-Addresses in Native = Host Byte Order, so I'm not sure why you're using ip_addr.to_be_bytes() - maybe I'm missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions