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

Temporarily failure in name resolution #2

Open
LinuxRocks2000 opened this issue Jan 2, 2020 · 3 comments
Open

Temporarily failure in name resolution #2

LinuxRocks2000 opened this issue Jan 2, 2020 · 3 comments

Comments

@LinuxRocks2000
Copy link

I ran nc -vlp 80 to listen on a port, but it returns
nc: getnameinfo: Temporary failure in name resolution
and terminates.
Sorry if this is an obvious problem

@Margular
Copy link

How you compile nc?

@sumedhe
Copy link

sumedhe commented Jul 6, 2020

@LinuxRocks2000 The problem could be with the DNS resolver. Try updating the namespace in /etc/resolv.conf as follows.

nameserver 8.8.8.8

@sijanec
Copy link

sijanec commented Aug 9, 2020

Why would you even need DNS for netcat, which has no connection with domain names? When in visual/verbose mode, I think that netcat should not exit just because it can't resolve IP addresses to hostnames (maybe they don't have PTR records). In my opinion, netcat should merely display a warning about the fact that IP addresses can't be resolved and continue with transmission of data anyways.

edit:
It looks like I was mistaken (RTFM!). In the man pages of nc(1), -n switch is used to disable any DNS lookups, so -v should not fail. I haven't tested that yet, but if that's the case, this issue may get closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants