From: John G. <gr...@ag...> - 2008-08-11 11:43:46
|
I just about have the module written. One last question (I hope). In tinydns A records are define this way: +name:IP:optionally TTL That'll define the A record. If you change the + to =, then a match PTR reocrd in generated too. What I'm thinking about doing is a looking up IP, if doesn't around have PTR record, I'll set the record to create both the A and PTR records. So an IP verse will match the first record defined using it. Sound reasonable? I'm also buffed this module up over the powerdns module a bit. It looks at other flags to figure out if the mx record is needed for instance. John Jamie Cameron wrote: > The cases where it is used in that file wouldn't be related to your > plugin, so it's safe not to use it .. > > On 08/Aug/2008 14:02 John Gray wrote .. >> Ok, though I noticed one reference in virtual-server-lib-funcs.pl to >> your var. I thought it might be good if virtual-server-lib-funcs.pl >> didn't have to worry about which dns module did it. >> >> John >> >> Jamie Cameron wrote: >>> I'd suggest another variable, just in case someone has both a BIND >>> and djbdns domain enabled for the same virtual server (crazy as that >>> sounds :-) >>> >>> Perhaps name is djbdns_submode >>> >>> - Jamie >>> >>> On 08/Aug/2008 13:52 John Gray wrote .. >>>> 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 gr...@ag... >>>>>> 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 web...@we... >>>>>> 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 web...@we... >>>>> To remove yourself from this list, go to >>>>> http://lists.sourceforge.net/lists/listinfo/webadmin-devel >>>>> >>>> -- >>>> John Gray gr...@ag... >>>> 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 web...@we... >>>> 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 web...@we... >>> To remove yourself from this list, go to >>> http://lists.sourceforge.net/lists/listinfo/webadmin-devel >>> >> >> -- >> John Gray gr...@ag... >> 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 web...@we... >> 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 web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > -- John Gray gr...@ag... AgoraNet, Inc. (302) 224-2475 314 E. Main Street, Suite 1 (302) 224-2552 (fax) Newark, De 19711 http://www.agora-net.com |