Click to See Complete Forum and Search --> : Can ping IP addresses only
grimlock
08-21-2002, 04:28 PM
Ok, I am installing Mandrake 8.2 on my box and I hope to eventually setup squidguard to do proxy and filtering. The problem is that even though my network cards are detected and linux compatable, I can only ping a machine by ip address. I cannot browse the internet at all, unless I type in the actual IP.
I have a cable connection and a static IP. The machine is behind a Cisco router.
What could be wrong here?
I have setup Linux on several machines at home, but here at work I have this issue.
nunder
08-21-2002, 04:32 PM
Sounds like it doesn't have DNS setup right. What do you have in your /etc/resolve.conf file?
grimlock
08-21-2002, 04:37 PM
nothing at all
nunder
08-21-2002, 04:40 PM
Ok, we've found the problem. Get in touch with your ISP, and get the IP's of the DNS servers that you'll need, and then Put this in the /etc/resolve.conf file(substitute your domain name where appropriate)
search <domainname> <domainname.com>
nameserver xxx.xxx.xxx.xxx
nameserver xxx.xxx.xxx.xxx
grimlock
08-21-2002, 04:46 PM
Is there anything I need to restart after I work with that file? I'm still getting a host unknown when I try to browse the web.
nunder
08-21-2002, 04:50 PM
You shouldn't have to restart anything, just start browsing. Copy / Paste a copy of your /etc/resolve.conf file in here and lemme take a look.
grimlock
08-21-2002, 04:53 PM
my resolv.conf (there was no resolve.conf)
# search domainname.org
search domainname.org
nameserver 208.180.12.2
# ppp temp entry
grimlock
08-21-2002, 04:54 PM
the hostname of my machine is set to: tester.domainname.org
nunder
08-21-2002, 04:57 PM
Ok, now we're getting somewhere. I couldn't get a response back from the dns server (using nslookup) 208.180.12.2. This could mean that it's not serving anything, or that it just won't serve me cause I'm not in a netblock that it serves. Try putting the following IP's in there, and see if it works. You did say (and have verified) that you can ping IP's outside of your network, right?
nameserver 208.224.88.13
nameserver 208.224.88.5
If you still can't resolve, do a traceroute to either of the above IP's (from the box in question) , and post the results.
nunder
08-21-2002, 04:59 PM
I've gotta run, and I don't know if I'll be on later. If this still doesn't work, and no one else will reply, send me an e-mail and we'll go from there, but we'll definately get you up and running.
The Whizzard
08-21-2002, 05:07 PM
Originally posted by grimlock
my resolv.conf (there was no resolve.conf)
# search domainname.org
search domainname.org
nameserver 208.180.12.2
# ppp temp entry
It should be in the /etc directory.
search domainname.org should be your ISP's domain name not your own. (possibly cox-internet.com)Is there another DNS server? Most ISP's have two or more for backup.
grimlock
08-21-2002, 05:33 PM
Ok I still can't get out. Here is the traceroute info:
1. mygatewayip
2. 10.33.64.1
3. 208.180.0.209
4. 208.180.0.131
5. 66.76.0.57
6. 209.246.152.245
7. 209.244.15.73
8. 209.245.240.138
9. 152.63.99.1
10. * * *
11. * * *
Then it does the * * * all the way up to 30 when it quits.
nunder
08-21-2002, 06:22 PM
Ok, something's not right here. Let's verify a couple of things:
1) The resolv file that we're dealing with here is /etc/resolv.conf
2) You're able to get out via IP (obviously)
3) Do you know how to do an nslookup?
- from the command line, type nslookup www.slashdot.org,
- you should get something like this:
Server: 127.0.0.1
Address: 127.0.0.1#53
Non-authoritative answer:
www.slashdot.org canonical name = slashdot.org.
Name: slashdot.org
Address: 64.28.67.150
4) Do an nslookup, and post the results.
grimlock
08-21-2002, 06:40 PM
I have left work, but I will check that first thing in the morning and post the results.
Thanks for your help so far. I will be very excited to get this online. We might put Linux on some other machines for some students wanting to do programming. The lack of internet is what has been holding us back from learning more about Linux.
nunder
08-21-2002, 10:04 PM
No problem on the help, this place is the only reason that I can even log onto a *nix box, the least I can do is give a little bit back.