Update a DNS to a for a dynamic IP

Posted by zobgib on Server Fault See other posts from Server Fault or by zobgib
Published on 2011-01-10T03:24:36Z Indexed on 2011/01/10 3:55 UTC
Read the original article Hit count: 204

Filed under:
|
|

I want to use my schools connection as a place to host a small webserver but one problem I have run into is anytime my server reboots I am given a new IP inside the schools range.

All of the schools IP are public and therefor I can access my computer directly over WAN just via the IP given in ifconfig. I would like to be able to give my computer a dns which is easy enough when I change the Arecords to match the current IP of my computer. The problem is if my computer ever reboots (my school regularly cycles power at night and over holidays) I am assigned a new IP and have to realize it then update the Arecords

This is inconvenient and I figure there must be a better way to keep the DNS records updated either via a script or my own BIND server. That way if there is a power cycle I can still access the server via a Domain Name.

If you have any direction to point me in it would be much appreciated.

I am running Ubuntu 10.04 if that helps :).

© Server Fault or respective owner

Related posts about dns

Related posts about webserver