Skip to content

[Bionic-only] URL's under non-compliant A records do not resolve #3

Description

@alexytomi

Because Bionic, getaddrinfo() fails to resolve A records like __test.something.com because it technically doesn't comply with the DNS standards, the code responsible for this is found here https://android.googlesource.com/platform/bionic.git/+/refs/tags/android-16.0.0_r4/libc/dns/resolv/res_comp.c#151

Here is a real-world example, the record is "malformed" into this because of Cloudflare proxying.
Image

Theory as to how this happens is as follows

  • Make a proxied A record
  • Add SRV record
  • Cloudflare does its magic

This seems to be exactly what the OGCraft server owner had done as well as what this thread details

This has been discussed to be not planned in private development channels due to literally being non-compliant but documenting it is nice

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions