Author Topic: Termux  (Read 4544 times)

gidds

  • Sr. Member
  • ****
  • Posts: 291
    • View Profile
    • http://
Termux
« Reply #15 on: October 29, 2018, 08:29:32 pm »
Quote from: Pete G.
OK, I'm not at all sure of myself here, but my Termux has /data/data/com.termux/files/usr/etc/resolv.conf (a.k.a "~/../usr/etc").
Hmmm; mine doesn't.  (Just 5 plain files and 4 dirs in there.)

I could try creating one, but I can't see how that would affect anything not run through Termux, which is a bit limiting.  As you indicate, there's probably something else going on!
[blockquote]Andy/[/blockquote]
Psion 5mx –> Gemini (–> Cosmo)

miked1541

  • Newbie
  • *
  • Posts: 10
    • View Profile
Termux
« Reply #16 on: November 01, 2018, 01:37:03 pm »
Quote from: gidds
Quote from: Pete G.
Termux too seems a bit weird.  Its default resolv.conf uses '8.8.8.8'
Erm, sorry if I'm missing something obvious (and for replying to an old topic!), but my Termux doesn't seem to have a resolv.conf file — I can't find that in /etc nor anywhere in the filesystem, nor even anything similar…

If I create an /etc/resolv.conf file, will it use that?  Or is some other set-up needed?

I did not have this file either, but when I ran nslookup, it wanted me to install the package dnsutils, which had a dependency of resolv-conf.
I have the file there now (/data/data/com.termux/files/usr/etc), but changed the name server to something other than google.

Code: [Select]
nameserver 129.250.35.250
nameserver 129.250.35.251

Now, when I run nslookup, the default name server for lookups is 129.250.35.250:

Code: [Select]
$ nslookup
> www.oesf.org
Server:         129.250.35.250
Address:        129.250.35.250#53

Non-authoritative answer:
www.oesf.org    canonical name = vhost.ibiblio.org.
Name:   vhost.ibiblio.org
Address: 152.19.134.41

Perhaps the name lookup is specific to termux and not the entire OS.

miked1541

Pete G.

  • Jr. Member
  • **
  • Posts: 63
    • View Profile
    • http://www.GoodeveCA.net
Termux
« Reply #17 on: November 02, 2018, 05:00:12 pm »
Quote from: miked1541
Quote from: gidds
Quote from: Pete G.
Termux too seems a bit weird.  Its default resolv.conf uses '8.8.8.8'
Erm, sorry if I'm missing something obvious (and for replying to an old topic!), but my Termux doesn't seem to have a resolv.conf file — I can't find that in /etc nor anywhere in the filesystem, nor even anything similar…

I did not have this file either, but when I ran nslookup, it wanted me to install the package dnsutils, which had a dependency of resolv-conf.
I have the file there now (/data/data/com.termux/files/usr/etc), but changed the name server to something other than google.

Perhaps the name lookup is specific to termux and not the entire OS.

Ahah!  Yes. I find the same.  Perhaps that's why I have the file -- may have been asked to install it.  I don't think I  was using nslookup, but dig also  seems to use the file.

I'm not sure of the effect of different nameservers when I'm out and about.  The ones on  my home machines are my ISP's, but that doesn't seem appropriate  when I'm elsewhere...  Maybe I should just stick with Google.

gidds

  • Sr. Member
  • ****
  • Posts: 291
    • View Profile
    • http://
Termux
« Reply #18 on: November 03, 2018, 03:04:03 pm »
Quote from: miked1541
Perhaps the name lookup is specific to termux and not the entire OS.
Yes, that would make sense.

Quote from: Pete G.
I'm not sure of the effect of different nameservers
I'm no expert, but the factors I'm aware of:
  • Network topology.  Your ISP's name servers will usually be the nearest (network-wise), but of course are only available when you're at home.
  • Speed.  When Google first introduced 4.4.4.4 and 8.8.8.8, they were noticeably faster than most others, despite the extra network hops.  I don't know whether they still are, though.
  • Logging and tracking.  Your name servers will see the hostname of every web site you visit, even if you use HTTPS to protect the content.  Given the amount of personal data companies like Google have been shown to collect, store, and use, it makes me nervous to use theirs.
  • Censorship.  At least in the UK, the big ISPs censor the internet, restricting access to many sites.  Using name servers from smaller and/or foreign providers may avoid some of the filtering.  (Not that I intend to visit any particular censored sites.  But I'm not entirely happy with the principle — especially as filtering is likely to cause collateral damage.)
  • Unofficial domains.  Alternative name servers may provide access to alternative top-level domains such as .biz, .web, or .bit.
In addition to Google's name servers, there are many other public name servers you can use.  (I've been using OpenNIC and OpenDNS at home for many years, and they've always worked fine for me.  But I don't know enough to endorse them.)
[blockquote]Andy/[/blockquote]
Psion 5mx –> Gemini (–> Cosmo)

jovpov

  • Newbie
  • *
  • Posts: 21
    • View Profile
Termux
« Reply #19 on: December 05, 2018, 04:29:37 am »
You have mentioned installing DNS on RPi, be sure to try pi.hole ! It will remove all ads for you