AT&T Laptop Connect Correction Script
Details:
Getting my Laptop Connect PCMCIA PC-Card working under Linux was time-consuming, at best. Even after I got it working AT&T Wireless would still set the DNS incorrectly about 1/3 of the time. Since neither myself nor the AT&T help-desk could figure out what the problem was (to their credit they did try pretty hard) I decided to cheat. This script is meant to be run automatically once the PPP connection is established. For my flavor of Linux (Ubuntu) this meant that it needed to be in /etc/ppp/ip-up.d/dns.pl. It will look to see what DNS settings were set by the connection and, if they're incorrect, it will set them to the OpenDNS server's addresses as a fall-back.
The script is written in Perl. You'll allso need the DateTime
CPAN package. The script will need to be run with root priviledges as it has to modify /etc/resolv.conf. I wouldn't count on this to work on anything but Linux systems and then I'm not even sure if it will work on non-Debian based distributions.
Download
AT&T DNS Correction - This archive currently contians version 0.3 of the script.