dns_config

command
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2026 License: CC0-1.0 Imports: 9 Imported by: 0

Documentation

Overview

Query network configuration via the netd system service.

Uses INetd via the "netd" service to check IP forwarding status and OEM network management. The netd service provides low-level network configuration including routing and interface management.

Note: Most netd operations require root or AID_SYSTEM. There is no DNS resolver AIDL proxy in the generated code; DNS configuration is queried indirectly through netd's network management.

Build:

GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o build/dns_config ./examples/dns_config/
adb push build/dns_config /data/local/tmp/ && adb shell /data/local/tmp/dns_config

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL