Check your LinkSys router if it supports any ddns services. Many of them support dyndns.org (free).
Its much easier to have router update ip then it changes, instead of having server behind the router detect routers public ip in the scheduled interval and update dyndns service.