Hi, misc@

I'm planning to develop a semi-generic daemon to serve as a dynamic DNS
client. It seems most of the big-name DNS providers (easyDNS, DynDNS, Dynu,
etc) follow a semi-consistent "API" for updating a domain name's IP address:

http[s]://<username>:<password>@<uri>?hostname=<hostname>&myip=<addr>&...

These configuration settings should probably be in a configuration file. I
read somewhere on the interwebs that OpenBSD config files try to resemble
each other, or rather, they try to keep to a format/style. Is this
format/style documented anywhere? Or is there a C library that I should be
using? None of my googling has revealed anything. I am thinking something
like this:

interface em0 {
  hostname example.com {
    username john
    password secret
    uri https://api.cp.easydns.com/dyn/generic.php   # I use easyDNS
  }
}


The second question I have is around polling the interface for its IP
address. Correct me if I'm wrong, but I don't think it's possible to
register a callback for whenever the interface changes its IP address,
right? Instead, this daemon will have to poll it periodically?

Thanks!

Reply via email to