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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-09-2010, 03:37 PM
|
#1
|
|
Member
Registered: Oct 2009
Distribution: Arch Linux
Posts: 89
Rep:
|
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?
|
|
|
|
05-09-2010, 05:01 PM
|
#2
|
|
Moderator
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,902
|
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
|
|
|
|
05-10-2010, 02:33 AM
|
#3
|
|
Member
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559
Rep:
|
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
|
|
|
|
05-10-2010, 06:38 AM
|
#4
|
|
Member
Registered: Oct 2009
Distribution: Arch Linux
Posts: 89
Original Poster
Rep:
|
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.
|
|
|
|
05-10-2010, 06:53 AM
|
#5
|
|
Member
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559
Rep:
|
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
|
|
|
|
05-10-2010, 07:07 AM
|
#6
|
|
Member
Registered: Oct 2009
Distribution: Arch Linux
Posts: 89
Original Poster
Rep:
|
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 07:09 AM.
Reason: wlan0 output was missing
|
|
|
|
05-10-2010, 09:44 AM
|
#7
|
|
Member
Registered: Feb 2009
Posts: 339
Rep:
|
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
|
|
|
|
05-11-2010, 03:18 AM
|
#8
|
|
Member
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:29 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|