You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Ravshan Kosimov <ra...@linux-online.ru> on 2007/05/18 13:11:21 UTC
HOWTO: start DNS provider? (Version 1.0.1)
Hello,
I'm researching possibility of using Apache DS as DNS server.
How I understood DNS provider should started as standalone application.
I wrote next small program (in attachment).
Apache DS started,
When I start DnsServer, it starts listen 53'th port:
DEBUG [AWT-EventQueue-0] (DnsServer.java:62) - Apache DNS Service
listening on port 53
And command "netstat -anl | grep :::53", reports that 53'th port listens
somebody (it's 100% DnsServer, no one other):
tcp 0 0 :::53 :::*
LISTEN
But command "dig @localhost ya.ru", reports next:
; <<>> DiG 9.3.4 <<>> @localhost ya.ru
; (1 server found)
;; global options: printcmd
;; connection timed out; no servers could be reached
Reports must be different, for instance:
dig noexistent.nodomain
; <<>> DiG 9.3.4 <<>> noexistent.nodomain
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 9446
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;noexistent.nodomain. IN A
;; AUTHORITY SECTION:
. 600 IN SOA A.ROOT-SERVERS.NET.
NSTLD.VERISIGN-GRS.COM. 2007051701 1800 900 604800 86400
;; Query time: 165 msec
;; SERVER: 10.3.0.1#53(10.3.0.1)
;; WHEN: Fri May 18 15:09:04 2007
;; MSG SIZE rcvd: 112
What I'm doing wrong?
Partition "dc=example,dc=com" exists, but it empty, I don't know what
insert to it. If reason in it, can you send me example dns ldif file?
ps: I very new in DNS.
pps: sorry for my English.
Re: HOWTO: start DNS provider? (Version 1.0.1)
Posted by Enrique Rodriguez <en...@gmail.com>.
On 5/18/07, Ravshan Kosimov <ra...@linux-online.ru> wrote:
> ...
> I'm researching possibility of using Apache DS as DNS server.
> How I understood DNS provider should started as standalone application.
> I wrote next small program (in attachment).
I'm impressed. You actually got pretty far with some very alpha code.
If you're looking to run a DNS server, ours is in a very early state.
However, if you want to help with development that would be great and
you are on the right track.
> What I'm doing wrong?
> Partition "dc=example,dc=com" exists, but it empty, I don't know what
> insert to it. If reason in it, can you send me example dns ldif file?
I don't think you are doing anything wrong. You just need to set the
base DN for searches (where resource records will be read from) and
you need to know the relevant objectClass setup or sample LDIF to load
some entries. I will work on finding existing documentation or I will
write something new this weekend.
One note, the DNS server will start and server records just fine but
not many features are implemented beyond that.
Enrique