[Pdns-users] mysql2ldap anyone?
Joakim Ryden
jryden at thebox.our-own.net
Mon Dec 8 09:54:55 UTC 2003
On 12/8/03 1:21 AM Norbert Sendetzky wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Sunday 07 December 2003 19:09, Joakim Ryden wrote:
>
>>>The easiest way should be to use the "host" program to do an AXFR
>>>request against your current setup and pass the output to
>>>zone2ldap.
>>
>>One thing to note about this - as far as I can tell you still have
>>to craft up a named.conf file for this to work.
>
>
> You can also something like:
>
> for DOMAIN in $DOMAINS; do
> host -t AXFR $DOMAIN $DNSSERVER > $DOMAIN.zone;
> zone2ldap --... --zone-name=$DOMAIN --zone-file=$DOMAIN.zone >
> $DOMAIN.ldif;
> done
Hmm..
I just tried it for fun:
[root at thebox jryden]# /usr/local/bind/bin/host -t AXFR our-own.net >
our-own.zone
[root at thebox jryden]# zone2ldap --zone-name=our-own.net --zone=our-own.zone
dn: dc=our-own,dc=example,dc=org
changetype: add
objectclass: top
objectclass: dcobject
objectclass: dnsdomain
objectclass: domainrelatedobject
dc: our-own
associateddomain: our-own.net.our-own.net
SOARecord: ns.our-own.net. root.thebox.our-own.net. 2003120500 10800
3600 604800 3600
Fatal error: Unknown qtype 'mail' on line 2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2809 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20031208/58c70d25/attachment-0001.bin>
More information about the Pdns-users
mailing list