I don't want to post this in the other thread that's similar so I don't confuse everybody.
Currently I'm on a static IP, but I might be moving to ADSL soon which has a dynamic IP.
I have an internal IP address and want to update the dynamic DNS record with the external IP assigned to my hardware NAT router by my ISP.
I've pretty much figured out what I would need to do in theory but I lack the knowledge to implement it in a shell script or PERL script so I need any help you guys can give.
Here's what I'm thinking of doing:
-do a DNS lookup on the hostname my ISP assigns me
(usually in the form of xxxxxxx.city.region.isp.com or somethin)
-use that IP in one of the freely available PERL scripts to update the dynamic DNS record.
This doesn't sound too hard, but how would I go about doing a DNS lookup with either PERL or a shell script?
Currently I'm on a static IP, but I might be moving to ADSL soon which has a dynamic IP.
I have an internal IP address and want to update the dynamic DNS record with the external IP assigned to my hardware NAT router by my ISP.
I've pretty much figured out what I would need to do in theory but I lack the knowledge to implement it in a shell script or PERL script so I need any help you guys can give.
Here's what I'm thinking of doing:
-do a DNS lookup on the hostname my ISP assigns me
(usually in the form of xxxxxxx.city.region.isp.com or somethin)
-use that IP in one of the freely available PERL scripts to update the dynamic DNS record.
This doesn't sound too hard, but how would I go about doing a DNS lookup with either PERL or a shell script?