Click to See Complete Forum and Search --> : Modem connects, can't surf
Swapper
02-27-2001, 10:37 PM
Hi,
Running RH 6.2 I've got my modem setup and I can query it and dial in to my ISP. However I can't reach any websites with lynx or netscape. The message I get is that it can't find the address. Is there something I'm missing?
thanks
neffu
02-27-2001, 11:01 PM
Sounds like a domain name resolution problem.
Did you enter the DNS addresses of your ISP?
You can enter the information in the resolv.conf file in the /etc directory
The entry should look like this:
nameserver *PRIMARY DNS ADDRESS OF YOUR ISP*
nameserver *SECONDARY DNS ADDRESS OF YOUR ISP*
If you're using kppp there is a screen in the setup option to enter the DNS addresses as well.
Good luck!
Swapper
02-27-2001, 11:05 PM
thanks for the reply, I thought that might be it. I don't have the DNS addresses for the server but I guess I'll have to get them. :)
Swapper
02-27-2001, 11:24 PM
Update: found the DNS for the server and I'm posting from linux. thanks! :D
I was able to get my DNS settings using a chat script as follows.
in /etc/ppp/peers create a file called isp with the following contents. Substitute ttys0 for whichever serial port your using.
ttyS0 57600
connect '/usr/sbin/chat -v -f
/etc/ppp/my.chat'
noauth
In /etc/ppp create the my.chat file with the following contents.
ABORT "NO CARRIER"
ABORT "NO DIALTONE"
ABORT "ERROR"
ABORT "NO ANSWER"
ABORT "BUSY"
"" "at"
OK "at&d0&c1"
OK "atdt######"
"ogin:" "yourusername"
"word:" "yourpassword"
"~"
Replace yourusername and yourpassword with your username and password and ###### with your ISP's dialin number. Also note that the "ogin:" and "word:" are the Login and Password prompts used by my ISP. Your ISP may use the same prompts but to be sure you should use minicom to manually log in. Adjust the script if neccessary. You may also have to modify the modem prompts if you modem is not Hayes compatable.
If it doesn't already exist create an options file in /etc/ppp and add the following line
defaultroute usepeerdns lock
Now enter pppd call isp and wait for the connection to come up. Look for a resolv.conf file to be created in /etc/ppp, or dump the contents of /var/log/messages. The DNS addresses should be in one of them.
If you have problems this is all documentented in the pppd man page.
Calling your ISP's support line is easier. But it's not as much fun.
Good luck.