LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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



Reply
 
Search this Thread
Old 05-09-2010, 04:37 PM   #1
sd||
Member
 
Registered: Oct 2009
Distribution: Arch Linux
Posts: 89

Rep: Reputation: 18
Problem resolving host - Fedora behind proxy server


i have internet connection on my laptop through a proxy server,

i set system wide proxy settings and got my web browsers working fine but there is a problem with getting internet connection on my terminal. There is no problem updating some software like netbeans.

Code:
[idlecool@hackbox ~]$ ping google.com
ping: unknown host google.com
what should i do? How can i resolve this issue?
 
Old 05-09-2010, 06:01 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
proxy is just that - an application layer tool to handle a given type of
requests. It handles http/https. ping is not tcp, it's low-level ip, and
the proxy knows nothing about it. To be able to ping you need a default
router/gateway set-up, and its firewall needs to permit your ICMP traffic.


Cheers,
Tink
 
Old 05-10-2010, 03:33 AM   #3
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
Do the following:

Code:
#nslookup www.google.com
If you get something along the lines of "Destination Host Unreachable" then you need to check your gateway settings (/etc/sysconfig/network) and dns settings (in /etc/resolv.conf)

As per Tink, your proxy will only apply to specific protocols like HTTP, HTTPS, FTP etc.

Thanks,
Yas
 
Old 05-10-2010, 07:38 AM   #4
sd||
Member
 
Registered: Oct 2009
Distribution: Arch Linux
Posts: 89

Original Poster
Rep: Reputation: 18
my main concern is yum is not working...

This is the output.
Code:
[idlecool@hackbox ~]$ sudo nslookup www.google.com
Server:         172.16.111.4
Address:        172.16.111.4#53

** server can't find www.google.com: NXDOMAIN

[idlecool@hackbox ~]$
I have complete control over my system but not on the router or proxy server as i am using my university wifi network. Is there any way to solve this issue.
 
Old 05-10-2010, 07:53 AM   #5
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
Well you wouldn't need to control either the proxy/router - you'd only need access to your proxy server (that is a username/password - which I assume you've configured?)

Post the output of:

Code:
# cat /etc/resolv.conf
# cat /etc/sysconfig/network
# cat /etc/sysconfig/network-scripts/ifcfg-eth0
Are you using DHCP? If so, then the OS should automatically pick up your DNS and set up correctly when you boot/bring up networking.

Cheers
Yas
 
Old 05-10-2010, 08:07 AM   #6
sd||
Member
 
Registered: Oct 2009
Distribution: Arch Linux
Posts: 89

Original Poster
Rep: Reputation: 18
this is the output

Code:
[idlecool@hackbox ~]$ cat /etc/resolv.conf
# Generated by NetworkManager
domain srmu.edu
search srmu.edu
nameserver 172.16.111.4
[idlecool@hackbox ~]$ cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=hackbox.cynosore.com
[idlecool@hackbox ~]$ cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Marvell Technology Group Ltd. 88E8040 PCI-E Fast Ethernet Controller
DEVICE=eth0
HWADDR=FF:FF:FF:FF:FF:FF
BOOTPROTO=dhcp
TYPE=Ethernet
IPV6INIT=no
ONBOOT=no
USERCTL=no
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
NAME="System eth0"
UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03
[idlecool@hackbox ~]$ 
[idlecool@hackbox ~]$ cat /etc/sysconfig/network-scripts/ifcfg-wlan0
# Intel Corporation PRO/Wireless 4965 AG or AGN [Kedron] Network Connection
DEVICE=wlan0
HWADDR=FF:FF:FF:FF:FF:FF
BOOTPROTO=dhcp
TYPE=Wireless
IPV6INIT=no
ONBOOT=no
USERCTL=no
[idlecool@hackbox ~]$
Yes! the systems automatically does all the connectivity i.e. connecting to the wifi router.

Last edited by sd||; 05-10-2010 at 08:09 AM. Reason: wlan0 output was missing
 
Old 05-10-2010, 10:44 AM   #7
bsat
Member
 
Registered: Feb 2009
Posts: 347

Rep: Reputation: 72
type export on the terminal and check the output for the values of http_proxy and ftp_proxy

you might have to set the environmental variables http_proxy and ftp_proxy with respect to your connections
 
Old 05-11-2010, 04:18 AM   #8
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
My advice at this stage is to contact your network administrator.

From what I can see there is no configuration issue - but your box for some reason cannot resolve host names. The proxy would not return this kind of error - but rather something like "Unable to connect" or "Connection Refused".

Maybe your DNS is down/not working - and you need to change to a different DNS - which your admin could help you with.
 
  


Reply

Tags
proxy, yum


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
kubuntu host resolving problem calanor Linux - Networking 15 08-29-2009 02:45 AM
resolving host problem Veteq Linux - Newbie 4 06-03-2004 02:45 PM
resolving host problem scorpion777 Mandriva 0 05-17-2004 01:23 AM
eternal resolving host problem mjsabby Linux - Networking 4 03-31-2004 06:44 PM
eternal resolving host problem mozilla mjsabby Linux - General 4 03-30-2004 10:07 PM


All times are GMT -5. The time now is 04:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration