SBC dsl/PPPeE w/dynamic ip address & bad DNS records
Donald C. Coleman
don at coleman.org
Sun May 18 13:58:40 PDT 2003
So I ran into a problem where the dynamic IP address I was handed
by SBC had a DNS ptr record which referred to an A record which
didn't exist (and the ptr record also had an error as it didn't
follow the naming strategy obviously intended).
ie: 216.71.175.64.in-addr.arpa ->
adsl-64-174-71-216.dsl.pltn13.pacbell.net.
^- the problem
rather then adsl-64-175-71-216.dsl.pltn13.pacbell.net.
^- the correct value
and no A record exists for adsl-64-174-71-216.dsl.pltn13.pacbell.net.
I won't bore you with the details of SBC's rudeness and lack of interest
in fixing the problem -- basically, if you can browse, they think that
is enough. The fact that some web-sites/internet services check for
valid DNS records as part of their security policies, doesn't matter,
let alone their violation of internet conventions/RFCs.
Luckly, only a small number of their dynamic IP addresses have this problem.
Below is my solution. I basically check at "link up" time that the DNS
records are valid, and if not, signal ppp to drop the connection, and
since my ppp is in "ddial" mode, it reestablishes the connection, and
we check again, and, etc... I've never seen it have to do more then one
retry.
So folks won't have to re-invent the wheel, I've attached what I've done.
I've also included my hooks for updating my "dynamic" domain name ip address.
Delete/replace this with want you need.
Put all these files in /etc/ppp.
chmod a+x both the .sh files
change the "sbc_yahoo:" line in the ppp.linkup file with your link name.
change/delete dnsupdate.sh to fit your domain name update scheme, if you
have one.
-------------- next part --------------
sbc_yahoo:
!bg sh -c "/etc/ppp/ppp.linkup.sh MYADDR PROCESSID 2>&1 | logger -t ppp -p 'daemon.notice'"
More information about the freebsd-isp
mailing list