Giter Site home page Giter Site logo

Throws DNS error on Android about xh HOT 5 CLOSED

DerGoogler avatar DerGoogler commented on June 14, 2024
Throws DNS error on Android

from xh.

Comments (5)

ducaale avatar ducaale commented on June 14, 2024 1

In that case, you can build xh from source using the target aarch64-linux-android

Build Instruction

  1. Install Rust toolchain using https://rustup.rs
  2. Install Cargo-cross
  3. Clone this repo and run cross build --target aarch64-linux-android --release
  4. Copy the resulting binary i.e ./target/aarch64-linux-android/release/xh to your device
  5. (Optional) Create xhs symlink to make HTTPS requests by default

from xh.

DerGoogler avatar DerGoogler commented on June 14, 2024 1

This can be closed now. Module is available at https://github.com/Googlers-Repo/xh

To install it need you install FoxMMM and then add the Googlers-Repo api url to the custom repos

https://dergoogler.com/api/repo/modules

from xh.

ducaale avatar ducaale commented on June 14, 2024

This is likely related to xh not being able to locate resolv.conf file, see https://wiki.termux.com/wiki/Differences_from_Linux

Statically linked programs (only networking ones) will not be able to resolve DNS names. GNU libc normally doesn't allow static linking with resolver. Also, the file /etc/resolv.conf does not exist on Android.

To get around this issue, you can either install xh using termux's package manager (i.e pkg install xh) or build it from source using the target aarch64-linux-android.

from xh.

DerGoogler avatar DerGoogler commented on June 14, 2024

I've not used via the Termux environment. I've used it via the Rooted Shell

from xh.

DerGoogler avatar DerGoogler commented on June 14, 2024

Thanks. I'll do this when I'm home. I'll also build as a Magisk module 👍

from xh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.