LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   IP's work, but web addresses do not (https://www.linuxquestions.org/questions/linux-newbie-8/ips-work-but-web-addresses-do-not-28072/)

joeslazenger 08-16-2002 01:24 PM

IP's work, but web addresses do not
 
If I go to, for example < http://linuxquestions.org > on my Linux box, I get page cannot be displayed. However, if I use the IP address, it comes up just fine.

I have two other Linux boxes and the other two will work fine with the http://name.org or whatever, but I don' t know what's different about this one.

Any ideas?

Thanks
Joe

finegan 08-16-2002 02:32 PM

See if there's anything in /etc/resolv.conf

If not, you've got no nameservers...

Cheers,

Finegan

crashmeister 08-16-2002 05:58 PM

I did have the same problem - my ISP fixed it.
How? I don't know - seems to be top secret.

ryandelany 08-17-2002 12:31 AM

Joe,

Name -> IP resolution is handled by DNS. If you can't resolve anything by name, then you are either pointing to incorrect DNS servers, or to none at all.

As Finegan indicated, check the /etc/resolv.conf and see if there is anything listed in there.

How are you configuring your machine? Are you using DHCP to assign addresses, or did you manually configure it?

Ryan

b_s 08-17-2002 01:43 PM

Yes its definitely some kind DNS issue, who is your ISP? It depends on if they(your ISP) specify their dns servers or if they have them setup to be obtained each time(dynamic). Try pinging your gateway for your ISP, then try pinging a web page www.yahoo.com(accepts pings), and finally a web page IP address. Try that and post what you get for a response.

NSKL 08-17-2002 04:11 PM

Yup, i had the same problem. Before anything else you may want to try to run kppp to dial up, since i found out kppp asks for a DNS server from your ISP upon conecting, puts it in /etc/resolv.conf and once it exits it also deletes entries from /etc/resolv.conf.
If that doesn't work check the end of your /var/log/messages, just after you conected to the internet. It should say a DNS server. Heres Mine:
Aug 17 22:36:49 SlackBox pppd[1690]: pppd 2.4.1 started by nskl, uid 1000
Aug 17 22:36:49 SlackBox pppd[1690]: Using interface ppp0
Aug 17 22:36:49 SlackBox pppd[1690]: Connect: ppp0 <--> /dev/modem
Aug 17 22:36:52 SlackBox pppd[1690]: local IP address 62.123.12.245
Aug 17 22:36:52 SlackBox pppd[1690]: remote IP address 213.234.131.7
Aug 17 22:36:52 SlackBox pppd[1690]: primary DNS address 151.88.110.37
Aug 17 22:36:52 SlackBox pppd[1690]: secondary DNS address 151.92.2.35
See the DNS Lines? Just put those IPs in /etc/resolv.conf
Heres, mine, for ISP in italy (Ciaoweb.it) so i dont know if they will work for you:

search ciaoweb.it
nameserver 151.88.110.37
nameserver 151.92.2.35

Well hope i helped some.

-NSKL

joeslazenger 08-19-2002 09:24 AM

You are correct, thanks.
There was nothing for /etc/resolv.conf

Thanks guys.
Joe


All times are GMT -5. The time now is 03:19 PM.