LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   ppp chat script failed (https://www.linuxquestions.org/questions/linux-general-1/ppp-chat-script-failed-457879/)

blackhole54 07-05-2006 09:11 PM

DNS, resolv.conf, ip-up & YOU ;-)
 
:cool:You did it!:D
You're right. This was an ordeal! There were three major problems to overcome: talking to the modem, authentication, and DNS. You did a lot of research, and I am sure you learned a lot.

I am just wrapping up with an observation about your last question.

Quote:

Originally Posted by Hacker X
Is that "Guaranteed" to be enough to work forever, or are there other details that will bite me in the butt later on?

What follows is based on my /etc/ppp/ip-up and /etc/sysconfig/network-scripts/ifup-post scripts. You're running a different system, so your mileage may vary.

ip-up is run automatically as described in the pppd man page. On my system, ip-up calls ifup-post.
One of the main functions of ifup-post is (potentially) altering resolv.conf to reflect the nameservers needed for the ppp connection. (Conversely, ip-down & ifdown-post change it back.)

These are bash scripts. If you know bash (or want to learn it :)), you can study what ip-up and its descendants do with resolv.conf. If your ISP gave you specific addresses for DNS, maybe you don't even want to use usepeerdns. It's up to you. If/when you know how to read bash scripts, you now have enough knowledge to make a rational decision. Good luck, and happy surfing!

blackhole54 07-05-2006 10:03 PM

Invalid IPv4 Addresses
 
I was just reading through your earlier posts and noticed something strange. You said that pppd reported the following:

Quote:

primary DNS address 987.654.3.58
secondary DNS address 987.654.3.102
Unless your lack of a normal I-net connection led you to enter this by hand and you made some typos, this is very strange!

These are not valid IPv4 (Internet Protocol version 4) addresses, and I don't think the format is right for IPv6!

IPv4 uses 4 byte addresses. The notation we have been using is called "dotted decimal," where each byte is represented by its decimal value, and the values are separated by dots. (For more info and "fun with IP address values" see this Internet Storm Center diary entry.) That means that each of those numbers should be less than 256! If these are not typos I have no idea what this means, but it sure is strange.

-----

--later-- (The edit to the above post)

O.K., O.K., I get it. You obfuscated the addresses with the sequence "9876543.":rolleyes: My mistake. The rest of what I said about addresses is valid.


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