LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   cannot browse websites with thier hostnames but can with ip addresses (https://www.linuxquestions.org/questions/linux-networking-3/cannot-browse-websites-with-thier-hostnames-but-can-with-ip-addresses-245006/)

shams 10-20-2004 05:31 AM

cannot browse websites with thier hostnames but can with ip addresses
 
hi,
i am runing fc2 in a box with conexant hsf modem with installed 14kbps hsfmodem dirver,there was problem with ppp to come up,i unchecked the lock file and changed the termination line from CR/LF to just CR,now kppp can connect to the isp,but now the problem is,i can browse the websites with thier ip addresses but not with thier hostnames for exmaple netscape can browse http://66.102.9.99 (the google.com ip address) but cannot reslove the hostname http://www.google.com and the error is "www.google.com could not be found:please check the name and try again",this is with the all hostnames and the chat clients like gaim and xchat,although i installed the latest dhcp daemon,i am using as well as the mandrak 10 in this box,and withou any problem i can browse the websites,the firewall is disabled for fc2.these are config files for your informations:
/etc/ppp/options:
#lock
noauth
noipdefault
usepeerdns
/etc/resolv.conf:
nameserver 127.0.0.1
/etc/hsot.conf:
order hosts,bind
multi o
/etc/sysconfig/network:
NETWORKING=yes
/etc/hosts:
127.0.0.1 localhost.localdomain localhost
/var/log/messages:
Oct 17 21:44:41 localhost kernel: PPP generic driver version 2.4.2
Oct 17 21:44:41 localhost pppd[2744]: pppd 2.4.2 started by root, uid 0
Oct 17 21:44:41 localhost pppd[2744]: Using interface ppp0
Oct 17 21:44:41 localhost pppd[2744]: Connect: ppp0 <--> /dev/ttySHSF0
Oct 17 21:44:43 localhost pppd[2744]: PAP authentication succeeded
Oct 17 21:44:43 localhost kernel: PPP Deflate Compression module registered
Oct 17 21:44:43 localhost pppd[2744]: local IP address (removed)
Oct 17 21:44:43 localhost pppd[2744]: remote IP address (removed)
Oct 17 21:44:43 localhost pppd[2744]: primary DNS address (removed)
Oct 17 21:44:43 localhost pppd[2744]: secondary DNS address (removed)
Oct 17 21:47:04 localhost pppd[2744]: Terminating on signal 15.
Oct 17 21:47:05 localhost pppd[2744]: Connection terminated.
Oct 17 21:47:05 localhost pppd[2744]: Connect time 2.4 minutes.
Oct 17 21:47:05 localhost pppd[2744]: Sent 142 bytes, received 136 bytes.
Oct 17 21:47:07 localhost pppd[2744]: Connect time 2.4 minutes.
Oct 17 21:47:07 localhost pppd[2744]: Sent 142 bytes, received 136 bytes.
Oct 17 21:47:07 localhost pppd[2744]: Exit.
plz help me.

nmares 10-20-2004 05:40 AM

Hi.. just had a similar problem
Try adding a line into /etc/resolv.conf like
Code:

nameserver xxx.xxx.xxx.xxx
where the IP address (xxx.is the server you are connected to at your Internet Service Provider
Hope that helped,
Regards
Nathan


All times are GMT -5. The time now is 04:24 AM.