Skip to content

Android/Termux DNS resolve failed: lookup gw.xju.edu.cn on [::1]:53 #60

@xzk09164418-droid

Description

@xzk09164418-droid

Environment

  • Device: Android phone
  • Architecture: arm64
  • App: Termux
  • bitsrun version: android_arm64 release
  • Network: campus network (srun)

Problem

bitsrun fails to resolve DNS on Android/Termux.

Error:

lookup gw.xju.edu.cn on [::1]:53:
read udp [::1]:xxxxx->[::1]:53:
read: connection refused

What I tested

  • curl works normally
  • ping works normally
  • DNS works in Termux
  • resolv.conf configured manually
  • GODEBUG=netdns=cgo tested
  • GODEBUG=ipv6=0 tested

But bitsrun still forces DNS queries to [::1]:53.

Additional info

The downloaded binary is:

bitsrun_android_arm64.tar.gz

Architecture check:

ELF 64-bit LSB pie executable, ARM aarch64

Looks like the Go resolver is not correctly using Android netd DNS.

Maybe CGO_ENABLED=0 or Go resolver issue on Android.

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