Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

host (lookup tool) uses unknown resolver #3124

Closed
532910 opened this issue Dec 7, 2018 · 10 comments
Closed

host (lookup tool) uses unknown resolver #3124

532910 opened this issue Dec 7, 2018 · 10 comments

Comments

@532910
Copy link

532910 commented Dec 7, 2018

% host t
Host t not found: 3(NXDOMAIN)
zsh: exit 1     host t

% host transient.roo.outerface.net
Host transient.roo.outerface.net not found: 3(NXDOMAIN)
zsh: exit 1     host transient.roo.outerface.net

% cat usr/etc/resolv.conf
nameserver 10.8.8.1
nameserver 10.8.1.1
domain roo.outerface.net
search outerface.net. vpn.outerface.net. roo.outerface.net.

% ping -c 1 t
PING transient.roo.outerface.net (10.8.8.8) 56(84) bytes of data.
64 bytes from transient.roo.outerface.net (10.8.8.8): icmp_seq=1 ttl=64 time=5.66 ms

--- transient.roo.outerface.net ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 5.665/5.665/5.665/0.000 ms...
@Atavic
Copy link

Atavic commented Dec 9, 2018

I think you should set your hostname in ~/.zshrc

@532910
Copy link
Author

532910 commented Dec 9, 2018

what?

@ghost ghost added the help wanted Help is wanted in order to solve the issue. label May 6, 2020
@532910
Copy link
Author

532910 commented May 8, 2020

Is any update there?

@stale
Copy link

stale bot commented Nov 18, 2021

This issue/PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix Issue won't be fixed. label Nov 18, 2021
@532910 532910 changed the title host uses unknown resolver host (lookup tool) uses unknown resolver Nov 19, 2021
@stale stale bot removed the wontfix Issue won't be fixed. label Nov 19, 2021
@532910
Copy link
Author

532910 commented Nov 19, 2021

still actual

@xtkoba
Copy link
Contributor

xtkoba commented Nov 19, 2021

Which package does host belong to?

@532910
Copy link
Author

532910 commented Nov 19, 2021

% dpkg -S =host
dnsutils: /data/data/com.termux/files/usr/bin/host

@xtkoba
Copy link
Contributor

xtkoba commented Nov 20, 2021

The resolvers used are shown with -v option:

$ cat etc/resolv.conf
nameserver 192.168.100.1

$ host -v foo.invalid.
Trying "foo.invalid"
Host foo.invalid. not found: 3(NXDOMAIN)
Received 104 bytes from 192.168.100.1#53 in 560 ms
Received 104 bytes from 192.168.100.1#53 in 560 ms

$ vi etc/resolv.conf

$ cat etc/resolv.conf
nameserver 8.8.8.8

$ ./host -v foo.invalid.
Trying "foo.invalid"
Host foo.invalid. not found: 3(NXDOMAIN)
Received 104 bytes from 8.8.8.8#53 in 80 ms
Received 104 bytes from 8.8.8.8#53 in 80 ms

Also I recommend using strace to make sure the correct resolv.conf is read.

@stale
Copy link

stale bot commented Mar 20, 2022

This issue/PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix Issue won't be fixed. label Mar 20, 2022
@stale stale bot closed this as completed Apr 3, 2022
@xtkoba xtkoba removed the help wanted Help is wanted in order to solve the issue. label Dec 24, 2022
@xtkoba xtkoba reopened this Dec 24, 2022
@xtkoba xtkoba removed the wontfix Issue won't be fixed. label Dec 24, 2022
@xtkoba
Copy link
Contributor

xtkoba commented Dec 24, 2022

Please share the output of termux-info.

I suggest using strace command to investigate what is happening behind the scenes.

@xtkoba xtkoba closed this as completed Mar 2, 2023
@xtkoba xtkoba added the invalid label Mar 2, 2023
@termux termux locked as resolved and limited conversation to collaborators Mar 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants