You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by upasana immidi <up...@gmail.com> on 2006/09/01 06:16:24 UTC

ApacheDS as DNS server

Hi,
I would like to use ApacheDS as a DNS server (to start with). How should I
go about doing it?

I have  ApacheDS running and have csuccessfully onfigured JXplorer to view
the ApacheDS directory structure.

Can I configure ApacheDS as a DNS server or do I have to donwload the code
and embed it within my program?

I will appreciate if some one can give me some pointers.

I am new to this list and if this is not an appropriate list tell me which
one is?

Cheers,
Anna

Re: ApacheDS as DNS server

Posted by Enrique Rodriguez <en...@gmail.com>.
upasana immidi wrote:
> Thanks for your Help Alex.
> 
> Yes there is one unit test, but that in for encoding and decoding of data.
> 
> As you say, I can see the code and am trying to glue it together like a 
> 1000 piece puzzle :-)

Hi, Anna,

The DNS server was written with the OSGi build of ApacheDS in mind.  In 
particular, the configuration relies heavily on an OSGi-standard service 
called Config Admin.  With the 1.1 OSGi build of ApacheDS the DNS 
protocol-provider will plug right in and with some notes on setting up 
DNS zones and adding resource records the basics of serving resource 
records works great.  I don't have these notes on Confluence yet.  I'll 
try to put together some time this weekend.

We have quite a bit of work to do to "mainline" the OSGi work currently 
in the 1.1 trunk, which should improve greatly in the next month or so, 
especially with progress currently being made at Apache Felix.

Enrique

Re: ApacheDS as DNS server

Posted by upasana immidi <up...@gmail.com>.
Thanks for your Help Alex.

Yes there is one unit test, but that in for encoding and decoding of data.

As you say, I can see the code and am trying to glue it together like a 1000
piece puzzle :-)


cheers,
Anna

On 9/7/06, Alex Karasulu <ao...@bellsouth.net> wrote:
>
> Hi Anna,
>
> upasana immidi wrote:
> > Going through the source code I could make some (sloooooow) progress.
> >
> > I will really appreciate if there was some example code showing how to
> > start Configure and DnsServer and make a simple query to it.
>
> There is I think one unit test case you can look at although it does not
> help answer these questions.  Sorry there's very little there that can
> help with figuring out how to configure the DNS server.  I don't know
> just how much the DNS server has actually been rigged into ApacheDS in
> the trunks.  I know it's not at all in 1.0.  The code is there but the
> plumbing is not in place.
>
> > or some simple steps.
> >
> > I will appreciate some help and once I understand and get to speed with
> > this I might be able to contribute, to start with document the code and
> > add some unit tests.
>
> I already emailed Enrique and I've IM'd him directly regarding
> responding to you.  I wish I could help you out more but I'm just as
> versed as you are in this particular area of the code base: that is not
> at all.  Perhaps he will get to this email now that I have CC'd him
> directly on it.
>
> Please bear with us.  I'm sure he's just busy at the moment.
>
> Alex
>
> > Cheers,
> > Anna
> >
> > On 9/5/06, *Alex Karasulu* <aok123@bellsouth.net
> > <ma...@bellsouth.net>> wrote:
> >
> >     Enrique,
> >
> >     Can you lend a hand here since you wrote the DNS server.
> >
> >     Thanks,
> >     Alex
> >
> >
> >     upasana immidi wrote:
> >      > Hi,
> >      >
> >      > since I last sent my post with all the questions,
> >      >
> >      > I downloaded apacheds-protocol-dns-1.0.RC3.jar and integrated it
> >     with my project via Maven's POM
> >      >
> >      >
> >      > I could download source from the following location
> >      >
> >      > https://svn.apache.org/repos/asf/directory/trunks/apacheds
> >      >
> >      >
> >      > Now I need to figureout the parameters that need to be sent to
> >     instantiate DnsServer class,
> >      >
> >      >
> >      > DnsServer(DnsConfiguration config, IoAcceptor acceptor,
> >     RecordStore store)
> >      >
> >      >
> >      > is there any documentation available?
> >      >
> >      > Anna
> >      >
> >      >
> >      > On 9/4/06, *upasana immidi* <upas102@gmail.com
> >     <ma...@gmail.com>
> >      > <mailto: upas102@gmail.com <ma...@gmail.com>>> wrote:
> >      >
> >      >     Hi,
> >      >
> >      >     Thanks for the response.
> >      >
> >      >     Firstly, how can I download the sorce code , the link that
> you
> >      >     specified just lets you view the files. I have Subversion and
> >     Maven2
> >      >     evironment, probably you cna point me to the subversion
> >     repository
> >      >
> >      >     Do I need to download code for MINA too.
> >      >
> >      >     Do I need to configure the JNDI settings somewhere and
> >      >
> >      >     Do I need to set some simple schema for DNS.
> >      >
> >      >     I would like to use DNS server for failover, if main server
> is
> >      >     responding then forwad the traffic to that other wise forward
> >     it to
> >      >     DR site.
> >      >
> >      >     Cheers,
> >      >     Anna
> >      >
> >      >
> >      >
> >      >     On 9/1/06, *Trustin Lee* < trustin@gmail.com
> >     <ma...@gmail.com>
> >      >     <mailto: trustin@gmail.com <ma...@gmail.com>>>
> wrote:
> >      >
> >      >         On 9/1/06, *upasana immidi* <upas102@gmail.com
> >     <ma...@gmail.com>
> >      >         <mailto:upas102@gmail.com <ma...@gmail.com>>>
> wrote:
> >      >
> >      >             Hi,
> >      >             I would like to use ApacheDS as a DNS server (to
> start
> >      >             with). How should I go about doing it?
> >      >
> >      >             I have  ApacheDS running and have csuccessfully
> >     onfigured
> >      >             JXplorer to view the ApacheDS directory structure.
> >      >
> >      >             Can I configure ApacheDS as a DNS server or do I have
> to
> >      >             donwload the code and embed it within my program?
> >      >
> >      >             I will appreciate if some one can give me some
> pointers.
> >      >
> >      >             I am new to this list and if this is not an
> >     appropriate list
> >      >             tell me which one is?
> >      >
> >      >
> >      >         For now, DNS protocol is not integrated into ApacheDS
> >      >         out-of-the-box IIRC, but you can integrate it easily
> >     because our
> >      >         DNS implementation uses JNDI API to access the underlying
> >      >         storage (ApacheDS in this case).  So.. what you have to
> >     do is to:
> >      >
> >      >         * Start ApacheDS
> >      >         * Start DNS server within the same VM by instantiating
> >     DnsServer
> >      >         class
> >      >
> >      >         The DNS server source code is located here:
> >      >
> >      >
> >     http://svn.apache.org/viewvc/directory/trunks/apacheds/protocol-dns/
> >     <
> http://svn.apache.org/viewvc/directory/trunks/apacheds/protocol-dns/>
> >      >
> >      >         You will have to learn how to use MINA a little bit and
> look
> >      >         into the source code.
> >      >
> >      >         Once we adopt OSGi technology, we could launch the DNS
> server
> >      >         just installing DNS OSGi bundle dynamically, but not
> >     right now.
> >      >
> >      >         HTH,
> >      >         Trustin
> >      >         --
> >      >         what we call human nature is actually human habit
> >      >         --
> >      >         http://gleamynode.net/ <http://gleamynode.net/>
> >     <http://gleamynode.net/>
> >      >         --
> >      >         PGP key fingerprints:
> >      >         * E167 E6AF E73A CBCE EE41  4A29 544D DE48 FE95 4E7E
> >      >         * B693 628E 6047 4F8F CFA4  455E 1C62 A7DC 0255 ECA6
> >      >
> >      >
> >      >
> >
> >
>
>

Re: ApacheDS as DNS server

Posted by Alex Karasulu <ao...@bellsouth.net>.
Hi Anna,

upasana immidi wrote:
> Going through the source code I could make some (sloooooow) progress. 
> 
> I will really appreciate if there was some example code showing how to 
> start Configure and DnsServer and make a simple query to it.

There is I think one unit test case you can look at although it does not 
help answer these questions.  Sorry there's very little there that can 
help with figuring out how to configure the DNS server.  I don't know 
just how much the DNS server has actually been rigged into ApacheDS in 
the trunks.  I know it's not at all in 1.0.  The code is there but the 
plumbing is not in place.

> or some simple steps.
> 
> I will appreciate some help and once I understand and get to speed with 
> this I might be able to contribute, to start with document the code and 
> add some unit tests.

I already emailed Enrique and I've IM'd him directly regarding 
responding to you.  I wish I could help you out more but I'm just as 
versed as you are in this particular area of the code base: that is not 
at all.  Perhaps he will get to this email now that I have CC'd him 
directly on it.

Please bear with us.  I'm sure he's just busy at the moment.

Alex

> Cheers,
> Anna
> 
> On 9/5/06, *Alex Karasulu* <aok123@bellsouth.net 
> <ma...@bellsouth.net>> wrote:
> 
>     Enrique,
> 
>     Can you lend a hand here since you wrote the DNS server.
> 
>     Thanks,
>     Alex
> 
> 
>     upasana immidi wrote:
>      > Hi,
>      >
>      > since I last sent my post with all the questions,
>      >
>      > I downloaded apacheds-protocol-dns-1.0.RC3.jar and integrated it
>     with my project via Maven's POM
>      >
>      >
>      > I could download source from the following location
>      >
>      > https://svn.apache.org/repos/asf/directory/trunks/apacheds
>      >
>      >
>      > Now I need to figureout the parameters that need to be sent to
>     instantiate DnsServer class,
>      >
>      >
>      > DnsServer(DnsConfiguration config, IoAcceptor acceptor,
>     RecordStore store)
>      >
>      >
>      > is there any documentation available?
>      >
>      > Anna
>      >
>      >
>      > On 9/4/06, *upasana immidi* <upas102@gmail.com
>     <ma...@gmail.com>
>      > <mailto: upas102@gmail.com <ma...@gmail.com>>> wrote:
>      >
>      >     Hi,
>      >
>      >     Thanks for the response.
>      >
>      >     Firstly, how can I download the sorce code , the link that you
>      >     specified just lets you view the files. I have Subversion and
>     Maven2
>      >     evironment, probably you cna point me to the subversion
>     repository
>      >
>      >     Do I need to download code for MINA too.
>      >
>      >     Do I need to configure the JNDI settings somewhere and
>      >
>      >     Do I need to set some simple schema for DNS.
>      >
>      >     I would like to use DNS server for failover, if main server is
>      >     responding then forwad the traffic to that other wise forward
>     it to
>      >     DR site.
>      >
>      >     Cheers,
>      >     Anna
>      >
>      >
>      >
>      >     On 9/1/06, *Trustin Lee* < trustin@gmail.com
>     <ma...@gmail.com>
>      >     <mailto: trustin@gmail.com <ma...@gmail.com>>> wrote:
>      >
>      >         On 9/1/06, *upasana immidi* <upas102@gmail.com
>     <ma...@gmail.com>
>      >         <mailto:upas102@gmail.com <ma...@gmail.com>>> wrote:
>      >
>      >             Hi,
>      >             I would like to use ApacheDS as a DNS server (to start
>      >             with). How should I go about doing it?
>      >
>      >             I have  ApacheDS running and have csuccessfully
>     onfigured
>      >             JXplorer to view the ApacheDS directory structure.
>      >
>      >             Can I configure ApacheDS as a DNS server or do I have to
>      >             donwload the code and embed it within my program?
>      >
>      >             I will appreciate if some one can give me some pointers.
>      >
>      >             I am new to this list and if this is not an
>     appropriate list
>      >             tell me which one is?
>      >
>      >
>      >         For now, DNS protocol is not integrated into ApacheDS
>      >         out-of-the-box IIRC, but you can integrate it easily
>     because our
>      >         DNS implementation uses JNDI API to access the underlying
>      >         storage (ApacheDS in this case).  So.. what you have to
>     do is to:
>      >
>      >         * Start ApacheDS
>      >         * Start DNS server within the same VM by instantiating
>     DnsServer
>      >         class
>      >
>      >         The DNS server source code is located here:
>      >
>      >        
>     http://svn.apache.org/viewvc/directory/trunks/apacheds/protocol-dns/
>     <http://svn.apache.org/viewvc/directory/trunks/apacheds/protocol-dns/>
>      >
>      >         You will have to learn how to use MINA a little bit and look
>      >         into the source code.
>      >
>      >         Once we adopt OSGi technology, we could launch the DNS server
>      >         just installing DNS OSGi bundle dynamically, but not
>     right now.
>      >
>      >         HTH,
>      >         Trustin
>      >         --
>      >         what we call human nature is actually human habit
>      >         --
>      >         http://gleamynode.net/ <http://gleamynode.net/>
>     <http://gleamynode.net/>
>      >         --
>      >         PGP key fingerprints:
>      >         * E167 E6AF E73A CBCE EE41  4A29 544D DE48 FE95 4E7E
>      >         * B693 628E 6047 4F8F CFA4  455E 1C62 A7DC 0255 ECA6
>      >
>      >
>      >
> 
> 


Re: ApacheDS as DNS server

Posted by upasana immidi <up...@gmail.com>.
Going through the source code I could make some (sloooooow) progress.

I will really appreciate if there was some example code showing how to start
Configure and DnsServer and make a simple query to it.

or some simple steps.

I will appreciate some help and once I understand and get to speed with this
I might be able to contribute, to start with document the code and add some
unit tests.

Cheers,
Anna

On 9/5/06, Alex Karasulu <ao...@bellsouth.net> wrote:
>
> Enrique,
>
> Can you lend a hand here since you wrote the DNS server.
>
> Thanks,
> Alex
>
>
> upasana immidi wrote:
> > Hi,
> >
> > since I last sent my post with all the questions,
> >
> > I downloaded apacheds-protocol-dns-1.0.RC3.jar and integrated it with my
> project via Maven's POM
> >
> >
> > I could download source from the following location
> >
> > https://svn.apache.org/repos/asf/directory/trunks/apacheds
> >
> >
> > Now I need to figureout the parameters that need to be sent to
> instantiate DnsServer class,
> >
> >
> > DnsServer(DnsConfiguration config, IoAcceptor acceptor, RecordStore
> store)
> >
> >
> > is there any documentation available?
> >
> > Anna
> >
> >
> > On 9/4/06, *upasana immidi* <upas102@gmail.com
> > <ma...@gmail.com>> wrote:
> >
> >     Hi,
> >
> >     Thanks for the response.
> >
> >     Firstly, how can I download the sorce code , the link that you
> >     specified just lets you view the files. I have Subversion and Maven2
> >     evironment, probably you cna point me to the subversion repository
> >
> >     Do I need to download code for MINA too.
> >
> >     Do I need to configure the JNDI settings somewhere and
> >
> >     Do I need to set some simple schema for DNS.
> >
> >     I would like to use DNS server for failover, if main server is
> >     responding then forwad the traffic to that other wise forward it to
> >     DR site.
> >
> >     Cheers,
> >     Anna
> >
> >
> >
> >     On 9/1/06, *Trustin Lee* < trustin@gmail.com
> >     <ma...@gmail.com>> wrote:
> >
> >         On 9/1/06, *upasana immidi* <upas102@gmail.com
> >         <ma...@gmail.com>> wrote:
> >
> >             Hi,
> >             I would like to use ApacheDS as a DNS server (to start
> >             with). How should I go about doing it?
> >
> >             I have  ApacheDS running and have csuccessfully onfigured
> >             JXplorer to view the ApacheDS directory structure.
> >
> >             Can I configure ApacheDS as a DNS server or do I have to
> >             donwload the code and embed it within my program?
> >
> >             I will appreciate if some one can give me some pointers.
> >
> >             I am new to this list and if this is not an appropriate list
> >             tell me which one is?
> >
> >
> >         For now, DNS protocol is not integrated into ApacheDS
> >         out-of-the-box IIRC, but you can integrate it easily because our
> >         DNS implementation uses JNDI API to access the underlying
> >         storage (ApacheDS in this case).  So.. what you have to do is
> to:
> >
> >         * Start ApacheDS
> >         * Start DNS server within the same VM by instantiating DnsServer
> >         class
> >
> >         The DNS server source code is located here:
> >
> >
> http://svn.apache.org/viewvc/directory/trunks/apacheds/protocol-dns/
> >
> >         You will have to learn how to use MINA a little bit and look
> >         into the source code.
> >
> >         Once we adopt OSGi technology, we could launch the DNS server
> >         just installing DNS OSGi bundle dynamically, but not right now.
> >
> >         HTH,
> >         Trustin
> >         --
> >         what we call human nature is actually human habit
> >         --
> >         http://gleamynode.net/ <http://gleamynode.net/>
> >         --
> >         PGP key fingerprints:
> >         * E167 E6AF E73A CBCE EE41  4A29 544D DE48 FE95 4E7E
> >         * B693 628E 6047 4F8F CFA4  455E 1C62 A7DC 0255 ECA6
> >
> >
> >
>
>

Re: ApacheDS as DNS server

Posted by Alex Karasulu <ao...@bellsouth.net>.
Enrique,

Can you lend a hand here since you wrote the DNS server.

Thanks,
Alex


upasana immidi wrote:
> Hi,
> 
> since I last sent my post with all the questions,
> 
> I downloaded apacheds-protocol-dns-1.0.RC3.jar and integrated it with my project via Maven's POM
> 
> 
> I could download source from the following location
> 
> https://svn.apache.org/repos/asf/directory/trunks/apacheds
> 
> 
> Now I need to figureout the parameters that need to be sent to instantiate DnsServer class,
> 
> 
> DnsServer(DnsConfiguration config, IoAcceptor acceptor, RecordStore store)
> 
> 
> is there any documentation available?
> 
> Anna
> 
> 
> On 9/4/06, *upasana immidi* <upas102@gmail.com 
> <ma...@gmail.com>> wrote:
> 
>     Hi,
> 
>     Thanks for the response.
> 
>     Firstly, how can I download the sorce code , the link that you
>     specified just lets you view the files. I have Subversion and Maven2
>     evironment, probably you cna point me to the subversion repository
> 
>     Do I need to download code for MINA too.
> 
>     Do I need to configure the JNDI settings somewhere and
> 
>     Do I need to set some simple schema for DNS.
> 
>     I would like to use DNS server for failover, if main server is
>     responding then forwad the traffic to that other wise forward it to
>     DR site.
> 
>     Cheers,
>     Anna
> 
> 
> 
>     On 9/1/06, *Trustin Lee* < trustin@gmail.com
>     <ma...@gmail.com>> wrote:
> 
>         On 9/1/06, *upasana immidi* <upas102@gmail.com
>         <ma...@gmail.com>> wrote:
> 
>             Hi,
>             I would like to use ApacheDS as a DNS server (to start
>             with). How should I go about doing it?
> 
>             I have  ApacheDS running and have csuccessfully onfigured
>             JXplorer to view the ApacheDS directory structure.
> 
>             Can I configure ApacheDS as a DNS server or do I have to
>             donwload the code and embed it within my program?
> 
>             I will appreciate if some one can give me some pointers.
> 
>             I am new to this list and if this is not an appropriate list
>             tell me which one is?
> 
> 
>         For now, DNS protocol is not integrated into ApacheDS
>         out-of-the-box IIRC, but you can integrate it easily because our
>         DNS implementation uses JNDI API to access the underlying
>         storage (ApacheDS in this case).  So.. what you have to do is to:
> 
>         * Start ApacheDS
>         * Start DNS server within the same VM by instantiating DnsServer
>         class
> 
>         The DNS server source code is located here:
> 
>         http://svn.apache.org/viewvc/directory/trunks/apacheds/protocol-dns/
> 
>         You will have to learn how to use MINA a little bit and look
>         into the source code.
> 
>         Once we adopt OSGi technology, we could launch the DNS server
>         just installing DNS OSGi bundle dynamically, but not right now.
> 
>         HTH,
>         Trustin
>         -- 
>         what we call human nature is actually human habit
>         --
>         http://gleamynode.net/ <http://gleamynode.net/>
>         --
>         PGP key fingerprints:
>         * E167 E6AF E73A CBCE EE41  4A29 544D DE48 FE95 4E7E
>         * B693 628E 6047 4F8F CFA4  455E 1C62 A7DC 0255 ECA6 
> 
> 
> 


Re: ApacheDS as DNS server

Posted by upasana immidi <up...@gmail.com>.
Hi,

since I last sent my post with all the questions,

I downloaded apacheds-protocol-dns-1.0.RC3.jar and integrated it with
my project via Maven's POM


I could download source from the following location

https://svn.apache.org/repos/asf/directory/trunks/apacheds


Now I need to figureout the parameters that need to be sent to
instantiate DnsServer class,

DnsServer(DnsConfiguration config, IoAcceptor acceptor, RecordStore store)


is there any documentation available?
Anna


On 9/4/06, upasana immidi <up...@gmail.com> wrote:
>
> Hi,
>
> Thanks for the response.
>
> Firstly, how can I download the sorce code , the link that you specified
> just lets you view the files. I have Subversion and Maven2 evironment,
> probably you cna point me to the subversion repository
>
> Do I need to download code for MINA too.
>
> Do I need to configure the JNDI settings somewhere and
>
> Do I need to set some simple schema for DNS.
>
> I would like to use DNS server for failover, if main server is responding
> then forwad the traffic to that other wise forward it to DR site.
>
> Cheers,
> Anna
>
>
>
> On 9/1/06, Trustin Lee <tr...@gmail.com> wrote:
> >
> > On 9/1/06, upasana immidi <upas102@gmail.com > wrote:
> >
> > > Hi,
> > > I would like to use ApacheDS as a DNS server (to start with). How
> > > should I go about doing it?
> > >
> > > I have  ApacheDS running and have csuccessfully onfigured JXplorer to
> > > view the ApacheDS directory structure.
> > >
> > > Can I configure ApacheDS as a DNS server or do I have to donwload the
> > > code and embed it within my program?
> > >
> > > I will appreciate if some one can give me some pointers.
> > >
> > > I am new to this list and if this is not an appropriate list tell me
> > > which one is?
> > >
> >
> > For now, DNS protocol is not integrated into ApacheDS out-of-the-box
> > IIRC, but you can integrate it easily because our DNS implementation uses
> > JNDI API to access the underlying storage (ApacheDS in this case).  So..
> > what you have to do is to:
> >
> > * Start ApacheDS
> > * Start DNS server within the same VM by instantiating DnsServer class
> >
> > The DNS server source code is located here:
> >
> > http://svn.apache.org/viewvc/directory/trunks/apacheds/protocol-dns/
> >
> > You will have to learn how to use MINA a little bit and look into the
> > source code.
> >
> > Once we adopt OSGi technology, we could launch the DNS server just
> > installing DNS OSGi bundle dynamically, but not right now.
> >
> > HTH,
> > Trustin
> > --
> > what we call human nature is actually human habit
> > --
> > http://gleamynode.net/
> > --
> > PGP key fingerprints:
> > * E167 E6AF E73A CBCE EE41  4A29 544D DE48 FE95 4E7E
> > * B693 628E 6047 4F8F CFA4  455E 1C62 A7DC 0255 ECA6
> >
>
>

Re: ApacheDS as DNS server

Posted by upasana immidi <up...@gmail.com>.
Hi,

Thanks for the response.

Firstly, how can I download the sorce code , the link that you specified
just lets you view the files. I have Subversion and Maven2 evironment,
probably you cna point me to the subversion repository

Do I need to download code for MINA too.

Do I need to configure the JNDI settings somewhere and

Do I need to set some simple schema for DNS.

I would like to use DNS server for failover, if main server is responding
then forwad the traffic to that other wise forward it to DR site.

Cheers,
Anna


On 9/1/06, Trustin Lee <tr...@gmail.com> wrote:
>
> On 9/1/06, upasana immidi <up...@gmail.com> wrote:
>
> > Hi,
> > I would like to use ApacheDS as a DNS server (to start with). How should
> > I go about doing it?
> >
> > I have  ApacheDS running and have csuccessfully onfigured JXplorer to
> > view the ApacheDS directory structure.
> >
> > Can I configure ApacheDS as a DNS server or do I have to donwload the
> > code and embed it within my program?
> >
> > I will appreciate if some one can give me some pointers.
> >
> > I am new to this list and if this is not an appropriate list tell me
> > which one is?
> >
>
> For now, DNS protocol is not integrated into ApacheDS out-of-the-box IIRC,
> but you can integrate it easily because our DNS implementation uses JNDI API
> to access the underlying storage (ApacheDS in this case).  So.. what you
> have to do is to:
>
> * Start ApacheDS
> * Start DNS server within the same VM by instantiating DnsServer class
>
> The DNS server source code is located here:
>
> http://svn.apache.org/viewvc/directory/trunks/apacheds/protocol-dns/
>
> You will have to learn how to use MINA a little bit and look into the
> source code.
>
> Once we adopt OSGi technology, we could launch the DNS server just
> installing DNS OSGi bundle dynamically, but not right now.
>
> HTH,
> Trustin
> --
> what we call human nature is actually human habit
> --
> http://gleamynode.net/
> --
> PGP key fingerprints:
> * E167 E6AF E73A CBCE EE41  4A29 544D DE48 FE95 4E7E
> * B693 628E 6047 4F8F CFA4  455E 1C62 A7DC 0255 ECA6
>

Re: ApacheDS as DNS server

Posted by Trustin Lee <tr...@gmail.com>.
On 9/1/06, upasana immidi <up...@gmail.com> wrote:
>
> Hi,
> I would like to use ApacheDS as a DNS server (to start with). How should I
> go about doing it?
>
> I have  ApacheDS running and have csuccessfully onfigured JXplorer to view
> the ApacheDS directory structure.
>
> Can I configure ApacheDS as a DNS server or do I have to donwload the code
> and embed it within my program?
>
> I will appreciate if some one can give me some pointers.
>
> I am new to this list and if this is not an appropriate list tell me which
> one is?
>

For now, DNS protocol is not integrated into ApacheDS out-of-the-box IIRC,
but you can integrate it easily because our DNS implementation uses JNDI API
to access the underlying storage (ApacheDS in this case).  So.. what you
have to do is to:

* Start ApacheDS
* Start DNS server within the same VM by instantiating DnsServer class

The DNS server source code is located here:

http://svn.apache.org/viewvc/directory/trunks/apacheds/protocol-dns/

You will have to learn how to use MINA a little bit and look into the source
code.

Once we adopt OSGi technology, we could launch the DNS server just
installing DNS OSGi bundle dynamically, but not right now.

HTH,
Trustin
-- 
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP key fingerprints:
* E167 E6AF E73A CBCE EE41  4A29 544D DE48 FE95 4E7E
* B693 628E 6047 4F8F CFA4  455E 1C62 A7DC 0255 ECA6