Search Again:

Re: Dynamic IP

From: Men & Mice Support
Date: Monday, November 8, 2004
Time: 7:13:27 pm

If his IP changes, how will your curl command know what IP address to contact?

What is needed is a dynamic DNS client. There are several ways you
could crack this nut. The first couple of suggestions below assume
you'll set up a dynamic zone for your friend.

1. Your friend gets a dyndns.org account, or something similar, and
uses their client software. Your curl script periodically checks that
hostname and updates the DNS using the nsupdate command.

2. Your friend uses nsupdate on his machine, possibly in a script, to
update the zone on your server. Dynamic update messages can be sent
across the Internet securely, using a shared encryption key such as
your rndc key (in /var/named/conf/user_before). (You can define
another key to use, but it's a bit of a hassle to do so.)

3. Your friend gets a dyndns.org account, or something similar, just
as in solution 1 above. His zone on your server contains a CNAME
record pointing to that name. (For mail service, the MX record points
directly to that dynamic name, rather than to the CNAME alias,
assuming his domain gets mail.)

There are other solutions available.

Chris Buxton
Men & Mice - Making DNS Easy
Customer Service and Sales Engineer

At 6:35 PM -0800 11/8/04, Scott Haneda wrote:
>A friend of mine has a small site on a dynamic IP, we thought it was static
>to some point, turns out to be about a week, then it changes. Right now, I
>just change the A record every now and then, I would like to automate this.
>
>His server can publish a IP and serve that vie http, so I can grap it from
>my bind box with curl, from there, whats the best way to get this into DNS?
>--
>-------------------------------------------------------------
>Scott Haneda Tel: 415.898.2602
><http://www.newgeo.com> Fax: 313.557.5052
><scott@newgeo.com> Novato, CA U.S.A.




Messages In This Thread:



Return to Digital Point Solutions' Home Page