LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 01-28-2004, 06:36 PM   #1
mattkat
LQ Newbie
 
Registered: Sep 2002
Distribution: Redhat 7.2
Posts: 23

Rep: Reputation: 15
Question nameserver problem on redhat 8.0 using PPPD


I've looked around and found many similar problems, but have had no luck with any of the solutions. My problem is, PPPD connects to my ISP, but I cannot get any nameservers to respond. I can ping the DNS ips or google's ip, but not www.google.com.

I recently upgraded my laptop from RedHat 7.3 to RedHat 8.0. No good reason, just figured it was about time and another project requiring me to restore an additional OS onto the machine anyway. Among the myriad of hassles I've had, this one has been the toughest.

This might be a red herring, but it also seems pertinent. The first day with 8.0, before trying PPPD, I spent a few minutes trying to get internet access at work on our LAN. There I could ping other machines, but nothing outside the LAN. I did not have the presence of mind to try pinging google by ip. So the rest of this refers to my experiences messing with ppp0 access.

I've turned off iptables (service iptable stop & also iptables -F && iptables -X). Does there need to be a default rule? There is no sign of ipchains installed or running. The /etc/resolve.conf seems to get set correctly. I found one similar problem was solved by changing "asyncmap 0" to "asyncmap 0xa0000" in the pppd options file - that didn't solve the problem either.

Here is a section from /var/log/messages:

Jan 27 23:51:05 bluebird pppd[833]: Starting link
Jan 27 23:51:06 bluebird chat[1045]: timeout set to 60 seconds
Jan 27 23:51:06 bluebird chat[1045]: abort on (ERROR)
Jan 27 23:51:06 bluebird chat[1045]: abort on (BUSY)
Jan 27 23:51:06 bluebird chat[1045]: abort on (NO CARRIER)
Jan 27 23:51:06 bluebird chat[1045]: abort on (NO DIALTONE)
Jan 27 23:51:06 bluebird chat[1045]: send (ATZ^M)
Jan 27 23:51:06 bluebird chat[1045]: expect (OK)
Jan 27 23:51:07 bluebird chat[1045]: ATZ^M^M
Jan 27 23:51:07 bluebird chat[1045]: OK
Jan 27 23:51:07 bluebird chat[1045]: -- got it
Jan 27 23:51:07 bluebird chat[1045]: send (ATDT XXX3360^M)
Jan 27 23:51:07 bluebird chat[1045]: timeout set to 75 seconds
Jan 27 23:51:07 bluebird chat[1045]: expect (CONNECT)
Jan 27 23:51:07 bluebird chat[1045]: ^M
Jan 27 23:51:44 bluebird chat[1045]: ATDT XXX3360^M^M
Jan 27 23:51:44 bluebird chat[1045]: CONNECT
Jan 27 23:51:44 bluebird chat[1045]: -- got it
Jan 27 23:51:44 bluebird pppd[833]: Serial connection established.
Jan 27 23:51:44 bluebird pppd[833]: Connect: ppp0 <--> /dev/ttyS4
Jan 27 23:51:46 bluebird modprobe: modprobe: Can't locate module ppp-compress-21
Jan 27 23:51:46 bluebird kernel: PPP Deflate Compression module registered
Jan 27 23:51:46 bluebird modprobe: modprobe: Can't locate module ppp-compress-21
Jan 27 23:51:46 bluebird pppd[833]: Local IP address changed to <local ip>
Jan 27 23:51:46 bluebird pppd[833]: Remote IP address changed to <remote ip>


Here is the output from route:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
<remote ip> * 255.255.255.255 UH 0 0 0 ppp0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default <remote ip> 0.0.0.0 UG 0 0 0 ppp0


My options file, which is started as an exact copy from my working RH7.3 box, to pppd:

# General configuration options for PPPD:
lock
defaultroute
noipdefault
modem
/dev/ttyS4
115200
crtscts
idle 240
mru 296
kdebug 7
# Uncomment for verbose erro reporting
debug
# May need to uncomment the following lines though it is a security iss
#noauth
passive
asyncmap 0xa0000
name "XXXXXXXXXX"
ipcp-accept-local
ipcp-accept-remote
demand
connect "/usr/sbin/chat -v -f /etc/ppp/pppscript"

Hmmm, what else to mention... hosts file has entry for loopback only. Oh here is iptables as shown by "service --list-all", which is strange - by this point I had run "service iptables stop" and then "iptables -F && iptables -X". More than the empty rules, it surprised me that it would show up in the service list as anything other than "stopped." Anyway here it is:

<snip>
gpm (pid 561) is running...
httpd is stopped
Table: filter
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
irattach is stopped
<snip>

It would make sense if it were a firewall table, but unless I need to put a default rule, or RedHat has another way to implement firewalling, or at the least a non-standard place for settings.

Any ideas? Any questions? Thanks.
 
Old 01-28-2004, 08:09 PM   #2
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
manually add your IPS's DNS server ip addresses in /etc/resolv.conf or use the 'usepeerdns' option in your options file.
 
Old 01-28-2004, 09:21 PM   #3
mattkat
LQ Newbie
 
Registered: Sep 2002
Distribution: Redhat 7.2
Posts: 23

Original Poster
Rep: Reputation: 15
I'll try manually adding the dns entries, though as I mentioned the /etc/resolv.conf always has the correct dns entries in it.

I'll try the option also.

I'll let you know what I figure out.
 
Old 01-29-2004, 08:22 AM   #4
mattkat
LQ Newbie
 
Registered: Sep 2002
Distribution: Redhat 7.2
Posts: 23

Original Poster
Rep: Reputation: 15
Added option usepeerdns and checked /etc/resolv.conf - not change.
 
  


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
pppd: nameserver -> /etc/resolv.conf ?? tredegar Linux - Networking 6 03-21-2004 07:45 AM
problem with nameserver setup jgillin Linux - Networking 4 12-21-2003 02:09 PM
Problem running pppd on Redhat Linux EL 3.0 brianvdc Linux - Software 0 12-10-2003 05:14 PM
Proxy and Nameserver problem Santtu Slackware 1 03-17-2003 06:46 AM
Need help with a domain / nameserver problem jfall Linux - Networking 9 10-09-2002 05:33 PM


All times are GMT -5. The time now is 10:20 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration