ppp gets DNS from one ISP but not another - PPP

This is a discussion on ppp gets DNS from one ISP but not another - PPP ; I have a problem getting ppp to succeed in getting a DNS resolver address from Southwestern Bell dial up account. I've included bits from ppp.log and ppp.conf at the end of this message. The odd thing is that this exact ...

+ Reply to Thread
Results 1 to 5 of 5

Thread: ppp gets DNS from one ISP but not another

  1. ppp gets DNS from one ISP but not another

    I have a problem getting ppp to succeed in getting a DNS resolver
    address from Southwestern Bell dial up account. I've included bits from
    ppp.log and ppp.conf at the end of this message. The odd thing is that
    this exact setup on this same machine works perfectly if I change
    ppp.conf to dial into another ISP (XO.COM) instead of SWB. When I
    inspect ppp.log I see ppp succeed in getting DNS addresses from XO and
    putting them into /etc/resolv.conf. Changing ONLY the dial up number,
    auth name and key I'm able to authenticate at SWB but SWB doesn't send
    the DNS address; pings to IP addresses work but DNS lookups.

    In desperation I use a (eeek) Win2000 machine to log into THE SAME SWB
    account, use IPCONFIG to get the SWB DNS address, put this into
    /etc/resolv.conf; then comment out 'enable dns' in ppp.conf and lo and
    behold I can now resolve DNS through the SWB account.

    So, I guess I'm somehow munging ppp.conf such that it works fine with
    one ISP and not the other....any ideas?



    FROM /etc/ppp/ppp.conf:

    default:
    set log Phase Chat LCP IPCP CCP tun command
    ident user-ppp VERSION (built COMPILATIONDATE)
    set device /dev/cuaa0
    set speed 115200
    set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
    \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"
    set timeout 180 # 3 minute idle timer (the default)
    enable dns # request DNS info (for resolv.conf)
    papchap:
    set phone XXX-XXXX
    set authname XXXXXXX@swbell.net
    set authkey XXXXXXXX

    accept chap
    accept pap

    set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
    add! default HISADDR # Add a (sticky) default route


    FROM /var/log/ppp.log:

    Feb 18 17:06:05 Ni ppp[897]: tun0: IPCP: deflink: RecvConfigAck(2)
    state = Ack-Sent
    Feb 18 17:06:05 Ni ppp[897]: tun0: IPCP: IPADDR[6] 171.75.221.92
    Feb 18 17:06:05 Ni ppp[897]: tun0: IPCP: COMPPROTO[6] 16 VJ slots
    with slot compression
    Feb 18 17:06:05 Ni ppp[897]: tun0: IPCP: PRIDNS[6] 255.255.255.255
    Feb 18 17:06:05 Ni ppp[897]: tun0: IPCP: SECDNS[6] 255.255.255.255
    Feb 18 17:06:05 Ni ppp[897]: tun0: IPCP: deflink: State change Ack-Sent -->
    Opened
    Feb 18 17:06:05 Ni ppp[897]: tun0: IPCP: deflink: LayerUp.
    Feb 18 17:06:05 Ni ppp[897]: tun0: IPCP: myaddr 171.75.221.92
    hisaddr = 209.244.188.253
    Feb 18 17:06:05 Ni ppp[897]: tun0: Warning: ff02:4::/32:
    Change route failed: errno: Network is unreachable


  2. Re: ppp gets DNS from one ISP but not another

    Doug Carter writes:
    > Feb 18 17:06:05 Ni ppp[897]: tun0: IPCP: PRIDNS[6] 255.255.255.255
    > Feb 18 17:06:05 Ni ppp[897]: tun0: IPCP: SECDNS[6] 255.255.255.255


    If that log is accurate, it's saying that the peer is giving you
    255.255.255.255 as a DNS server address.

    That just can't be right.

    --
    James Carlson, IP Systems Group
    Sun Microsystems / 1 Network Drive 71.234W Vox +1 781 442 2084
    MS UBUR02-212 / Burlington MA 01803-2757 42.497N Fax +1 781 442 1677

  3. Re: ppp gets DNS from one ISP but not another

    Doug Carter writes:

    ]I have a problem getting ppp to succeed in getting a DNS resolver
    ]address from Southwestern Bell dial up account. I've included bits from
    ]ppp.log and ppp.conf at the end of this message. The odd thing is that
    ]this exact setup on this same machine works perfectly if I change
    ]ppp.conf to dial into another ISP (XO.COM) instead of SWB. When I
    ]inspect ppp.log I see ppp succeed in getting DNS addresses from XO and
    ]putting them into /etc/resolv.conf. Changing ONLY the dial up number,
    ]auth name and key I'm able to authenticate at SWB but SWB doesn't send
    ]the DNS address; pings to IP addresses work but DNS lookups.

    They may not send you dns addresses. Put them in by hand.
    YOu do not say which operating system you are using, or anything so
    other help is impossible.


    ]In desperation I use a (eeek) Win2000 machine to log into THE SAME SWB
    ]account, use IPCONFIG to get the SWB DNS address, put this into
    ]/etc/resolv.conf; then comment out 'enable dns' in ppp.conf and lo and
    ]behold I can now resolve DNS through the SWB account.

    ]So, I guess I'm somehow munging ppp.conf such that it works fine with
    ]one ISP and not the other....any ideas?



    ]FROM /etc/ppp/ppp.conf:

    ]default:
    ] set log Phase Chat LCP IPCP CCP tun command
    ] ident user-ppp VERSION (built COMPILATIONDATE)
    ] set device /dev/cuaa0
    ] set speed 115200
    ] set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
    ] \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"
    ] set timeout 180 # 3 minute idle timer (the default)
    ] enable dns # request DNS info (for resolv.conf)
    ]papchap:
    ] set phone XXX-XXXX
    ] set authname XXXXXXX@swbell.net
    ] set authkey XXXXXXXX

    ] accept chap
    ] accept pap

    ] set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
    ] add! default HISADDR # Add a (sticky) default route


    No idea what the above is. It looks nothing like any pppd file I know
    of. What are you using?


    ]FROM /var/log/ppp.log:

    ]Feb 18 17:06:05 Ni ppp[897]: tun0: IPCP: deflink: RecvConfigAck(2)
    ]state = Ack-Sent
    ]Feb 18 17:06:05 Ni ppp[897]: tun0: IPCP: IPADDR[6] 171.75.221.92
    ]Feb 18 17:06:05 Ni ppp[897]: tun0: IPCP: COMPPROTO[6] 16 VJ slots
    ]with slot compression
    ]Feb 18 17:06:05 Ni ppp[897]: tun0: IPCP: PRIDNS[6] 255.255.255.255
    ]Feb 18 17:06:05 Ni ppp[897]: tun0: IPCP: SECDNS[6] 255.255.255.255
    ]Feb 18 17:06:05 Ni ppp[897]: tun0: IPCP: deflink: State change Ack-Sent -->
    ]Opened
    ]Feb 18 17:06:05 Ni ppp[897]: tun0: IPCP: deflink: LayerUp.
    ]Feb 18 17:06:05 Ni ppp[897]: tun0: IPCP: myaddr 171.75.221.92
    ]hisaddr = 209.244.188.253
    ]Feb 18 17:06:05 Ni ppp[897]: tun0: Warning: ff02:4::/32:
    ]Change route failed: errno: Network is unreachable


  4. Re: ppp gets DNS from one ISP but not another

    On 2004-02-19, Bill Unruh wrote:
    > Doug Carter writes:
    >
    > ]I have a problem getting ppp to succeed in getting a DNS resolver
    > ]address from Southwestern Bell dial up account....
    >
    > They may not send you dns addresses. Put them in by hand.


    Odd.. As I mentioned, when I use the exact same setup but dial into a
    different ISP (xo.com instead of SWB) we DO see the DNS come back in the
    log file and Unix DOES populate its resolve.conf file with this address.

    Further we can dial the SWB account with a Win2000 machine and it
    succeeds in getting the DNS from SWB (which it did not know before); we
    then used Win2000 IPCONFIG to read the SWB DNS address and then put it
    into the Unix resolv.conf file by hand; at which point we can resolve
    names.

    This works until SWB moves their DNS address, so we can limp along but
    it is irritating.

    In summary:
    1. SWB does respond with DNS addresses (in addition to HISADDR) when
    queried by the Win2000 machine.

    2. XO.com does respond with the DNS addresses when queried by the
    FreeBSD machine.

    3. SWB does NOT respond with DNS addresses when queried by the FreeBSD
    machine.

    > YOu do not say which operating system you are using, or anything so
    > other help is impossible.


    Sorry, FreeBSD 5.1R

  5. Re: ppp gets DNS from one ISP but not another

    unruh@string.physics.ubc.ca (Bill Unruh) writes:
    > ] set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
    > ] add! default HISADDR # Add a (sticky) default route
    >
    >
    > No idea what the above is. It looks nothing like any pppd file I know
    > of. What are you using?


    That's a *BSD PPP configuration file.

    --
    James Carlson, IP Systems Group
    Sun Microsystems / 1 Network Drive 71.234W Vox +1 781 442 2084
    MS UBUR02-212 / Burlington MA 01803-2757 42.497N Fax +1 781 442 1677

+ Reply to Thread