LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-15-2004, 09:36 AM   #1
cl2imson
LQ Newbie
 
Registered: Feb 2004
Location: Norman, OK
Distribution: Fedora, Core 2
Posts: 23

Rep: Reputation: 15
command line to the internet?


Hello everyone. I have a quick question, that hopefully can be answered easily.

I am running Fedora Core 1. This is my first 'real' attempt at Linux, so forgive me if this seems trite...

I have my box configured so that I can connect to the WAN and surf, user IRC, mail, etc. THis part is working fine. My proxy/gateway and DNS all work "graphically".

However, when I go to the command line, (aka terminal) , I am left with name resolution problems, and I am not able to ping a direct IP address on the Internet, as my DNS and proxy server settings are not available for the terminal to use.

So, my question:

What files do I need to manipulate to get the proxy server and dns server to be available at the terminal? And, if it isn't too much trouble, could you relay the context of the nameserver and proxy settings?

I think the DNS setting should be in the resolv.conf, but I am not sure.

Thanks in advance everyone.

peace.
 
Old 04-15-2004, 11:27 AM   #2
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
Well, I have never heard of this problem since the same settings are used regardless of the program you use, graphical or text based.

When you mention terminal, do you change run level or just open up a terminal within X?
 
Old 04-15-2004, 03:32 PM   #3
cl2imson
LQ Newbie
 
Registered: Feb 2004
Location: Norman, OK
Distribution: Fedora, Core 2
Posts: 23

Original Poster
Rep: Reputation: 15
I just open a terminal within X, but I haven't seen if it happens in both Gnome and KDE. I will check that in the morning.

Let me add that I am fairly new to Linux. Is this something that I am required to do after installation? By that, I mean I have entered dns and gateway settings during install, and I have entered the proxy settings using the gui (I could enter the DNS seerver settings by command line I think by editing >>> /etc/resolv.conf <<<< and adding my nameserver(s) there (is this correct?)

As far as the proxy, I haven't found a place yet that I can enter the proxy setting, or where I can check it at.

I know that I do want these settings to be static, and I would like them at every user login. Could this be part of my problem?

Thanks for the response ugge...
 
Old 04-15-2004, 04:28 PM   #4
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
Your changes in /etc/resolv.conf is the right place for DNS settings.
Which one of the following can you ping?

1. ping 127.0.0.1
2. ping <your internet IP>
3. ping 64.179.4.146
4. ping www.linuxquestions.org

What are the error messages if you can't?
 
Old 04-16-2004, 02:53 PM   #5
cl2imson
LQ Newbie
 
Registered: Feb 2004
Location: Norman, OK
Distribution: Fedora, Core 2
Posts: 23

Original Poster
Rep: Reputation: 15
1. ok
2. here is the deal. I am going from a private ip 192.168.119.34 (eth0) to 192.168.119.33 gateway. From that network it goes to a proxy 10.3.0.3 (port 8080) and then through nother firewall (pix) to the internet. I can ping the proxy server which is the closest thing to an IP I can get, and that address is 10.3.0.3
3. fail
4. hostname unknown.

I must add that in the GUI interface, I can surf the net, check email, stream audio, etc.

Hrmph. I am so confused.
 
Old 04-16-2004, 05:03 PM   #6
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
What program have you tried from the console?
Only ping?
Try using lynx to surf to a web site
lynx www.google.com

I guess this might be a problem with the proxy blocking ping requests.
 
Old 04-17-2004, 09:33 AM   #7
cl2imson
LQ Newbie
 
Registered: Feb 2004
Location: Norman, OK
Distribution: Fedora, Core 2
Posts: 23

Original Poster
Rep: Reputation: 15
I thought that the proxy might be blocking requests as well, but it is a little more than that. When I tried to use >> yum << it wouldn't work either.

I will get Lynx now.

Thanks again.
 
Old 04-17-2004, 10:06 AM   #8
slacky
Member
 
Registered: Feb 2004
Location: USA
Distribution: Debian
Posts: 174

Rep: Reputation: 16
1. You might have to configure each console app individually to use a proxy server.
2. You mentioned you have a Cisco PIX firewall - the PIX 501's I've used prevent you from being able to ping Internet sites by default - they allow the outgoing icmp echo packets, but block the response icmp echo reply packets, IIRC. So you might need to look into the PIX config.
 
  


Reply


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
connect to internet using command line ic_torres Slackware 5 12-05-2005 04:35 AM
Can I access the INTERNET from the command line???? Guvvy Linux - Newbie 4 02-02-2005 09:07 PM
setup an internet connection from the command line Aljaber Linux - Networking 3 12-28-2003 07:48 PM
Internet from the command line? jsbush Linux - Newbie 2 10-24-2003 01:57 PM
How do I browse internet from the command line? 360 Linux - Networking 3 08-22-2001 05:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:34 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
Open Source Consulting | Domain Registration