On Ven 5 janvier 2007 14:47, Stefaan A Eeckels a écrit :
> On Fri, 5 Jan 2007 14:10:59 +0100 (CET)
> "Jean-Charles de Longueville" <jch@hellea.eu> wrote:
>
>> according to doc, "tinydns-data could support a name wherever an IP
>> address is required; it would look up the name in DNS and use the
>> resulting address. This would reliably track changes in offsite IP
>> addresses if the database were rebuilt periodically."
>
> I think you've not noticed that Dan is using the conditional tense
> here. This is a neat idea that might be implemented, but hasn't been
> implemented yet.
Thanks a lot (merci, danke) for all your responses and support.
I finally found a way to do it. It's only a hack but it's working.
based on http://dqd.com/~mayoff/programs/tinydns-fixup.pl found trough
http://www.faqts.com/knowledge_base/entry/versions/index.phtml?aid=8816&return_url=%2Fknowledge_base%2Fentry%2Fedit%2Findex.phtml%3Faid%3D8816)
where I added, before the printout
else {
my ($name,$aliases,$addrtype,$length,@addrs) =
gethostbyname($fields{'ip'});
my ($a,$b,$c,$d) = unpack('C4',$addrs[0]);
$newIP = "$a.$b.$c.$d";
}
Then I "mv data data.orig", updated my custom scripts to edit "data.orig"
in place of "data" and added a daily cron entry "cd /etc/tinydns/root ;
./tinydns-fixup.pl data.orig > data ; make" (with rsync in the makefile
for the duplication to the other dns-servers).
It's for sure not fool proof (I'm not a perl hacker) but seems to work as
intended in my case (I have about only 1560 entries in my data file). With
another machine running tinydyndns, we are now able to offer a regular
dotBE domaine name with dynamic name service included for "do-it-yourself"
hacker/customer ;-) The "static" server points to a hostname defined by
the dynamic one (ex: "+www.domaine.be:domaine.dyndns.hellea.be:").
I hope this could be usefull to others as a small return to the community.
best wishes for 2007,
--
Ir Jean-Charles de Longueville
Hellea sprl - bureau d'étude
http://www.hellea.be/
|