alternative to NIC 2 (DynDNS, etc) services?

Kevin Darcy kcd at daimlerchrysler.com
Fri Jun 14 21:09:34 UTC 2002


sam wrote:

> Know anyone how we can do that last part in a ActivePerl in Win2000Pro?
> I tried with system and exec but not working no error be able to capture
> either in DNS. Verified the key and code are working in Interactive more.
>
> system "echo update delete $host.xxx.org A|echo update add $host.xxx.org 600
> A $ip |echo send | echo send |echo send|/winnt/system32/dns/bin/nsupdate -k
> /path/tomy/key/freexxxddns/Kxxx.+157+1.key";
>
> I know this is more Perl than BIND, but appreciate if anyone can help.
>
> Thank you
> Sam
>
> # after all other changes are done ...
> >   echo "
> >     update delete $HOSTNAME in a
> >
> >     update add $HOSTNAME 300 in a $IP_ADDRESS
> >
> >   " | nsupdate -k /etc/named/Kfoo.+157.+1.private
> >
>
> "those who know me have no need of my name" <not-a-real-address at usa.net>
> wrote in message news:ae7pee$cvet$1 at isrv4.isc.org...
> >
> > in comp.protocols.dns.bind i read:
> >
> > > I have DSL with DHCP. I want to send updates to my own DNS
> > >server (running on a fix IP address somewhere else). Has anyone cooked
> > >this up using some home grown detection method and dynamic updates with
> > >BIND? I assume that's what the free services, do, but I want to do it
> > >myself.
> >
> > the free dynamic dns services typically don't use dynamic dns updates,
> they
> > have a fairly standard protocol of their own.  using bind's dynamic dns is
> > lots easier, and if you use tsig it's even safe.
> >
> > when your system obtains an ip address it probably invokes a script, so
> > that stuff can be updated.  add to that script to use (signed) dynamic
> > updates, e.g.,
> >
> >   # after all other changes are done ...
> >   echo "
> >     update delete $HOSTNAME in a
> >
> >     update add $HOSTNAME 300 in a $IP_ADDRESS
> >
> >   " | nsupdate -k /etc/named/Kfoo.+157.+1.private
> >

I have Perl "nsupdate wrapper" code but it relies on the "open(...,
"-|")" syntax, which on Unix causes a fork(). I don't know how well it would
translate to a non-Unix platform...


- Kevin




More information about the bind-users mailing list