Re: [webmin-devel] djbdns/tinydns suppport for virtualmin?

John Gray <[email protected]> Fri, 08 Aug 2008 16:52:08 -0400
Newsgroups gmane.comp.web.webmin.devel
Message-ID <[email protected]>
I see the bind code uses dns_submode to denote this.

I guess the question is this: Better for the tinydns code to use the 
same var, or another one?

John

Jamie Cameron wrote:
> On 08/Aug/2008 13:21 John Gray wrote ..
>> Hi Jamie,
>>
>> I took the powerdns module, and used to it from template to setting up 
>> module for tinydns.  I have it working now (though it needs some config 
>> work yet).
> 
> Awesome! If it's OK, you should make it publicly available when it is done..
> I know several people have expressed interest in djbdns due to it's lower
> memory use.
> 
>> As I was working on it, I came across a big question.  Sometimes we add 
>> aliases to existing domains to into already existing domain, for instances.
>>
>> we add
>> foo.com, then add an alias for it as foo.bar.com, and bar.com is an 
>> existing domain on the server.  With that foo.bar.com is added as new 
>> domain, instead of entry for foo being added to bar.com.
>>
>> I was toying with the idea of checking to see if a higher-level domain 
>> is there, so for example if I am adding
>> a.b.c.d I'd check for b.c.d, then c.d, then d.  If I find one of them, 
>> then I'd add entries to it, instead of creating a new domain.
>>
>> But I wondered if that would screw up other things?
> 
> That is a perfectly reasonable approach - in fact, Virtualmin already does
> this for BIND when you add a sub-domain. You just have to make sure your
> code keeps track of whether the djbdns domain was added as a real zone or
> just as entries in an existing zone. The best way is to set some key in the
> domain hash passed to the feature_setup function, which will be saved and
> available when feature_modify and feature_delete are called.
> 
>  - Jamie
> 
>> Sound like a good idea or bad?
>>
>> Thanks
>> John
>>
>> Jamie Cameron wrote:
>>> On 02/Aug/2008 09:36 John Gray wrote ..
>>>> There doesn't appear to be any tinydns support for virtualmin (or did I 
>>>> overlook it)?
>>>>
>>>> With recent events, I think I've had enough of bind.
>>>>
>>>> I'm not very concerned with configuring tinydns as much as just the day 
>>>> to day issues of adding/deleting domains/entries.  Tinydns has cmd line 
>>>> utilities for doing all this, so I would imagine it would be fairly easy 
>>>> to write a module to do it.  But I don't want to invent the wheel.
>>>>
>>>> If nothing exists, I'll create one ala the exim module (basicly just 
>>>> what I need to facilitate adding/deleting/modifing virtual servers in 
>>>> virtualmin).
>>> Hi John,
>>>
>>> At the moment, there is no support for tinydns or djbdns in Virtualmin.
>>> However, it's plugin architecture would make this pretty easy to add -
>>> for example, I did one for PowerDNS a while ago that can be used instead
>>> of the regular BIND feature. 
>>>
>>> You can get it from :
>>> http://www.webmin.com/cgi-bin/search_third.cgi?search=powerdns
>>> and check out the source.
>>>
>>>  - Jamie
>>
>> -- 
>> John Gray                           [email protected]
>> AgoraNet, Inc.                      (302) 224-2475
>> 314 E. Main Street, Suite 1         (302) 224-2552 (fax)
>> Newark, De 19711                    http://www.agora-net.com
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>> Build the coolest Linux based applications with Moblin SDK & win great prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> -
>> Forwarded by the Webmin development list at [email protected]
>> To remove yourself from this list, go to
>> http://lists.sourceforge.net/lists/listinfo/webadmin-devel
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> -
> Forwarded by the Webmin development list at [email protected]
> To remove yourself from this list, go to
> http://lists.sourceforge.net/lists/listinfo/webadmin-devel
> 


-- 
John Gray                           [email protected]
AgoraNet, Inc.                      (302) 224-2475
314 E. Main Street, Suite 1         (302) 224-2552 (fax)
Newark, De 19711                    http://www.agora-net.com

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
-
Forwarded by the Webmin development list at [email protected]
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-devel