In article <(E-Mail Removed)>, Bruce Cook <bruce-(E-Mail Removed)> wrote:
> (E-Mail Removed) wrote:
>
> > Since the days of slak-3 I don't remember having any problems with
> > 'can't resolve URL' errors.
> > I'm slowly 'installing' a 2.6*kernel [Debian-Lenny-2009] and every
> > new app. is problematic. "Just do A, B, C" is a crappy explanation,
> > simlar to read the `cat man * | ws -l` = 3427 line manual.
> >
> > I want to better understand what's actually happening.
> > If I can get out on ppp, to my ISP, then why doesn't the ISP
> > handle the DNS ? Not directly, but it would know where the
> > nearest/best DNS is ?
> >
> > When you debug something, it's best to understand the
> > stages that the process goes through, so that you can test at these
> > critical stages.
> >
> > Let me take a wild guess: when I `wget <URL>`:
> > 1. some utility must searchy some file to decide which DNS to use;
> > I'd like to see a 'trace' of that file being read.
> >
> > 2. and then I'd like to see a trace of the next stage.
> >
> > Can someone help me to understand what happens 'under the hood''?
>
> It's likely that the ISP is sending you the information about DNS servers -
> this is fairly much standard practice these days, however you don't have
> pppd configured correctly to update /etc/resolv.conf, or pppd doesn't have
> access to update that file.
>
> DNS servers are negotiated during the PPP startup, using LCP (Link Control
> Protocol). Your best bet to understanding this is to read the pppd readme
> file and look at the debug options.
>
> Turn on pppd debugging & set debug levels so that you can see the LCP
> negotiation and you should see the ms-dns attribute sent to you from the
> ISP. Look to see what pppd does with that; /var/log/daemon should have pppd
> output.
man pppd | wc -l == 1827 > 30 pages of A4, thank you !!
== "debug Enables connection debugging facilities. If this option is
given, pppd will log the contents of all control packets sent or
received in a readable form. The packets are logged through
syslog with facility daemon and level debug. This information
can be directed to a file by setting up /etc/syslog.conf appro-
priately (see syslog.conf(5))."
Do I really want to decode the packets, when I started ppp-ing 15 years ago
with slak3 and several RH-family-type since then.
It seems that Debina is a big waste of time.
I should never have opened the can-o-worms!
Or more correctly, per my previous post:
"The forking of Linux distributions is disasterous".
--------
-> An OLD non-debian specific well proven script which also fails:-
pppd lcp-echo-interval 300 lcp-echo-failure 4 connect '
chat -v "" ATZ OK ATX OK ATM2DT0123070301 CONNECT "" TIMEOUT 99 ' \
/dev/ttyS0 115200 debug crtscts modem defaultroute : name "2nm4nx6x@za"
seems to be set for 'debug'
--> man syslog.conf == No manual entry for syslog.conf
==> exercise the dog and see if/what recent *log is created
= or just see some most recent /var/*og == ...
File: debug.1 == ...
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xc2769b7b> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x3d <asyncmap 0xa0000> <auth pap> <magic 0xb8786615> <pcomp> <accomp> <mrru 1524> <endpoint [local:69.73.64.6e.78.32]>]
sent [LCP ConfRej id=0x3d <mrru 1524>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xc2769b7b> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x3e <asyncmap 0xa0000> <auth pap> <magic 0xb8786615> <pcomp> <accomp> <mrru 1524> <endpoint [local:69.73.64.6e.78.32]>]
sent [LCP ConfRej id=0x3e <mrru 1524>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xc2769b7b> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x3f <asyncmap 0xa0000> <auth pap> <magic 0xb8786615> <pcomp> <accomp> <endpoint [local:69.73.64.6e.78.32]>]
sent [LCP ConfAck id=0x3f <asyncmap 0xa0000> <auth pap> <magic 0xb8786615> <pcomp> <accomp> <endpoint [local:69.73.64.6e.78.32]>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xc2769b7b> <pcomp> <accomp>]
sent [LCP EchoReq id=0x0 magic=0xc2769b7b]
sent [PAP AuthReq id=0x1 user="2nm4nx6x@za" password=<hidden>]
rcvd [LCP EchoRep id=0x0 magic=0xb8786615]
rcvd [PAP AuthAck id=0x1 ""]
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0>]
rcvd [LCP EchoReq id=0x1 magic=0xb8786615 c2 76 9b 7b]
sent [LCP EchoRep id=0x1 magic=0xc2769b7b c2 76 9b 7b]
rcvd [LCP ProtRej id=0x1 80 fd 01 01 00 0f 1a 04 78 00 18 04 78 00 15 03 2f]
Protocol-Reject for 'Compression Control Protocol' (0x80fd) received
rcvd [IPCP ConfReq id=0x1 <compress VJ 0f 00> <addr 196.38.72.130>]
sent [IPCP ConfAck id=0x1 <compress VJ 0f 00> <addr 196.38.72.130>]
rcvd [IPCP ConfReq id=0x2 <compress VJ 0f 00> <addr 196.38.72.130>]
sent [IPCP ConfAck id=0x2 <compress VJ 0f 00> <addr 196.38.72.130>]
rcvd [IPCP ConfReq id=0x3 <compress VJ 0f 00> <addr 196.38.72.130>]
sent [IPCP ConfAck id=0x3 <compress VJ 0f 00> <addr 196.38.72.130>]
rcvd [IPCP ConfNak id=0x1 <addr 196.208.67.94>]
sent [IPCP ConfReq id=0x2 <compress VJ 0f 01> <addr 196.208.67.94>]
rcvd [IPCP ConfAck id=0x2 <compress VJ 0f 01> <addr 196.208.67.94>]
-> whereis ping == ok
--> Connect via ppp & try:--
ping -c 1 72,30,2,43 == <ok> 1 received, 0% packet loss...
ping -c 1 yahoo.com == unknown host yahoo.com
lynx
www.bbc.com == fail-crap!
----------
>
> It's always a good idea to look at the contents of the log files in /var/log
> if you have problems with a system process.
>
Yes that's how I know that ppp has authenticated & pap ...
> Bruce
unruh-physics.ubc.ca wrote:--
>If you want more under the hood than that, there is the source code
>(gethostbyname, gethostbyaddress, gethostname, ....) Read it
Yes, thanks that's good stuff to read.
== Chris Glur.