Hi Eugene,
Eugene Pefti schreef:
Can anybody tell me why this doesn't work:
#dig axfr domain.tld @xxx.xxx.xxx.xxx | zone2sql --gmysql --zone=- | mysql
-u root -D pdns
I do exactly what is said in pdns documentation, my problem is --zone=- is
not understood just because "-" option doesn't work.
Thanks Ton, I figured it too. How would you suggest to use zone2sql to get
rid of the second SOA RR?
Eugene
-Original Message-
From: Ton van Rosmalen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 23, 2008 12:08 AM
To: Eugene Pefti
Cc: pdns-users@mailman.powerdns.com
Subject: Re: [Pdn
Eugene,
I'd suggest some shell-scripting to do the trick
Create a file containing the zones the check. One zone per line, in the
sample below I've used the name 'zonelist'. Then execute the following
script:
for zone in `cat zonelist`; do dig @xxx.xxx.xxx.xxx $zone AXFR >
/tmp/$zone.$$; zone
On Wednesday 23 April 2008 09:38:39 Ton van Rosmalen wrote:
> I'd suggest some shell-scripting to do the trick
Even better way:
Use the "host -l " command to fetch the zone via AXFR. It doesn't
print the SOA record twice to stdout.
Norbert
--
OpenPGP public key
http://www.linuxnetworks.de/nor
Hi Norbert,
That's right but zone2sql doesn't seem to understand the output of
"host -l".
Ton
Norbert Sendetzky schreef:
On Wednesday 23 April 2008 09:38:39 Ton van Rosmalen wrote:
I'd suggest some shell-scripting to do the trick
Even better way:
Use the "host -l "
Hi all,
I'm trying to create a dummy dns server ( respond same IP for all queries).
The following configuration work just fine in bind, but not in PDS:
$TTL 86400
@ IN SOA ns.localhost. admin.localhost. (
2008032714 ; Serial
I would say "host -l blabla.tld" doesn't produce any SOA at all. Just
statement like this:
Blabla.tld has address xxx.xxx.xxx.xxx
Blabla.tld name server ns1.domain.tld.
Blabla.tld name server ns2.domain.tld.
mail.blabla.t
Hi Ton,
This is almost exactly what I do with shell and utilities. My script looks
like this:
#!/bin/bash
DNSSERVER=xxx.xxx.xxx.xxx
DOMAINARRAY=`cat /dist/importlist`
for DOMAIN in $DOMAINARRAY;
do
dig @$DNSSERVER $DOMAIN AXFR > /dist/list/$DOMAIN;
zone2sql --zone=/dist/list/$DOMAI
On Wednesday 23 April 2008 18:26:17 Eugene Pefti wrote:
> I would say "host -l blabla.tld" doesn't produce any SOA at all. Just
> statement like this:
The correct calls are:
host -Z -t SOA 1>domain.tld
host -Z -l 1>>domain.tld
zone2sql --zone-name= --zone=domain.tld
Norbert
--
OpenPGP publ
Hi Eugene,
Eugene Pefti schreef:
Hi
Ton,
This
is almost exactly what I do with shell and utilities. My
script looks like this:
#!/bin/bash
DNSSERVER=xxx.xxx.xxx.xxx
On Tue, 22 Apr 2008 10:36:40 -0700
"Eugene Pefti" <[EMAIL PROTECTED]> wrote:
> Hi folks,
>
> I've just discovered one peculiar bug with dig utility while doing domains
> migration with zone2sql.
>snip<
> I guess dnswalk is a better alternative to dig but just in case is there
> anything that coul
On Wed, Apr 23, 2008 at 2:52 PM, Mick Pollard <[EMAIL PROTECTED]> wrote:
> To migrate from bind to pdns-mysql I plan on just adding all my domains into
> pdns as slaves with the existing bind as master and let it do axfr's and
> populate the db for me.
> Then when it is complete I will just upd
++ 23/04/08 23:20 +0200 - Ton van Rosmalen:
> I've been brushing up my skills using sed and came to the following:
> dig @$DNSSERVER $DOMAIN AXFR | sed -e '/;/d;/SOA/{h; d;};$g'
>
> This strips out comments and pastes one SOA record at the end after
> deleting all occurrences from the dig-o
13 matches
Mail list logo