Telnet : Temporary failure in name resolution : Host name lookup failure
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Telnet : Temporary failure in name resolution : Host name lookup failure
Hi,
I am connected to the outside world via a proxy server. The I.P. of the proxy server is 10.10.11.2
I cannot telnet to a remote computer.
Here is what I am doing :
Code:
koodoo@knapsacker:~$ export http_proxy=http://10.10.11.2:8080
koodoo@knapsacker:~$ export ftp_proxy=http://10.10.11.2:8080
koodoo@knapsacker:~$ telnet drill.hackerslab.org
telnet: drill.hackerslab.org: Temporary failure in name resolution
drill.hackerslab.org: Host name lookup failure
koodoo@knapsacker:~$
I have not done any other changes anywhere.
I am currently using Slackware 10.0
I know I have to do some settings somewhere, (maybe edit some files to tell telnet where to lookup for hosts etc)
1) Open /etc/resolv.conf file:
vi /etc/resolv.conf
2) Add ISP nameserver as follows:
search isp.com
nameserver 202.54.1.110
nameserver 202.54.1.112
nameserver 202.54.1.115
Note Max. three nameserver can be used/defined at a time.
3) Test it with nslookup or dig:
dig www.nixcraft.com
nslookup www.nixcraft.com
This is what I know about my network :
I.P. address of the proxy server : 10.10.11.2
default gateway : 203.200.130.1
preferred dns server : 202.54.1.30
So, I believe my /etc/resolve.conf should look like this :
Code:
search isp.com <should this be there or not ?>
nameserver 202.54.1.30
Is this right ?
I am not at my Linux box right now, so I cannot test it right now.
Thanks in anticipation.
Then I tried to execute the command "route add default gw 203.200.130.1 dev eth0" and got the following error message :
Code:
root@knapsacker:/home/koodoo# route add default gw 203.200.130.1 dev eth0
SIOCADDRT: Network is unreachable
root@knapsacker:/home/koodoo#
Now this might be because my I.P. is 10.10.27.204 (private i.p.) while that of the default gateway is 203.200.130.1 (I mean they belong to different classes of I.P.'s)
I then tried those two commands and got the following error messages :
Code:
root@knapsacker:/home/koodoo# nslookup www.nixcraft.com
Note: nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead. Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
;; connection timed out; no servers could be reached
root@knapsacker:/home/koodoo# dig www.nixcraft.com
; <<>> DiG 9.2.3 <<>> www.nixcraft.com
;; global options: printcmd
;; connection timed out; no servers could be reached
root@knapsacker:/home/koodoo#
That site told me that my D.N.S. servers were :
202.54.15.5
and
202.54.103.1
So then I added these two entries also into /etc/resolv.conf and tried the entire procedure again, but got identical results.
I would again like to mention the complete scenario here :
Code:
I am connected to a proxy server which has i.p. 10.10.11.2
We have been allotted private i.p.'s and mine is : 10.10.27.204
Other information is as follows :
default gateway : 203.200.130.1
preferred dns server : 202.54.1.30
other dns servers : 202.54.15.5 and 202.54.103.1
What should I do ?
Help needed
Thanks in anticipation.
Hi, I'm afraid I can't do that.
My University has got a dedicated lease line from the ISP, and then they have done campus wide networking.
We've been allotted these i.p.'s by the net administrator and we cannot change these.
Isn't there any way to connect to a site via telnet in a scenario like mine?
I think that there ought to be some way (Or maybe I am doing something very stupid)
Finally got it to work. I changed my i.p. to the same class as that of the default gateway. (I chose 203.200.130.79 as the i.p.). Then added the default gateway 203.200.130.1 and it worked.
But the problem still remains
I just changed my i.p. to test whether telnet was working or not. I cannot permanently keep this i.p. Ultimately I will have to use something like 10.10.27.204 and then the same problem would occur again. Isn't there any workaround, so that I can keep 10.10.27.204 as my i.p. also, and still connect to the outside world via telnet ??
Ummm .... not that we have a hard and fast rule for this, but re-animating
a thread that was dead for over 2 years is at least considered weird. Plus
the guy had his problem resolved already?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.