Koozali.org: home of the SME Server

tinydns workaround-suggestion

thorsten greiner

tinydns workaround-suggestion
« on: November 11, 2003, 05:29:12 PM »
hi there...

been thinking bout tinydns lately. and i wonder why only those generic host entries (pc-00001.mydomain.tld - pc-00254.mydomain.tld) are reverse entries.

i wish i could decide wether a hostname is a name2ip or name2ip and reverse.

well i know, sometime you'll have more than one name mapping to a single ip-adress like for virtual web-servers. but tinydns supports aliases as well...

now... the clou would be someone who knows a little bit about coding to change the templates that generate the data file for tinydns.

1. remote-ip is not in db BUT it is requested for a hostname -> generate reverse entry =host:ip
2. remote-ip is already in db -> generate entry +host:ip
3. remote-ip is not in db AND is not requested for a hostname -> generate generic entry: =generic-host:ip

ok... this post could be for the wish list... but i hope someone's already been thinking bout it an can offer a solution

thanks... thorsten

Jim Danvers

Re: tinydns workaround-suggestion
« Reply #1 on: November 11, 2003, 09:30:47 PM »
Thorsten...

I would ~love~ to see a fix for this!!  There was a thread on this recently (that I sorta instigated), and there were suggestions, none of which bore any fruit (for me anyway).

-=- jd -=-

thorsten greiner

Re: tinydns workaround-suggestion
« Reply #2 on: November 12, 2003, 10:53:23 AM »
jim...

in fact... if you take a look at the code in the template, it couldn't be that hard.

all vars for checking whether an ip is remote and in the db or not are there. so... in php i can imagine coding it, but not in perl... even if they are similar.

it couldn't be there's no one in this forum who could code it.

cheers... thorsten