Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 07-05-2006, 10:11 PM   #31
Senior Member
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Post DNS, resolv.conf, ip-up & YOU ;-)

You did it!
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.

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!
Old 07-05-2006, 11:03 PM   #32
Senior Member
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Exclamation Invalid IPv4 Addresses

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

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." My mistake. The rest of what I said about addresses is valid.

Last edited by blackhole54; 07-05-2006 at 11:21 PM.


chat, device, modem, ppp, pppd, serial, slackware, zenwalk

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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
PPP library & pppd, chat return codes ruchika Linux - Networking 1 03-08-2011 03:50 AM
Connect script failed on ppp-go iqbala Linux - Newbie 39 11-15-2007 03:58 PM
unautomate PPP chat script dosnlinux Linux - Newbie 3 08-03-2005 02:24 PM
problems with ppp and chat.... slack---line Linux - Networking 3 05-27-2004 11:10 AM
chat ppp jimjim Linux - Networking 5 09-27-2002 12:05 AM > Forums > Linux Forums > Linux - General

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration