Re: [Pdns-users] Problem compiling PDNS 3.0 on RHEL 6.1

2011-10-18 Thread Ian Mordey
Any reason for not using the precompiled RPMs here:
http://www.monshouwer.eu/download/3th_party/pdns-server/el6/

They've always been rock solid for me.

Cheers

-Original Message-
From: pdns-users-boun...@mailman.powerdns.com 
[mailto:pdns-users-boun...@mailman.powerdns.com] On Behalf Of k...@rice.edu
Sent: 17 October 2011 22:00
To: pdns-users@mailman.powerdns.com
Subject: [Pdns-users] Problem compiling PDNS 3.0 on RHEL 6.1

Hi PDNS user community.

I am having a problem compiling PDNS 3.0 on RHEL 6. It cannot locate some 
system libraries and I was wondering about the best way to correct the problem. 
It looks like libssl.so.1.0.0 is located in /usr/lib64:

$ ls -l /usr/lib64/libssl.*
lrwxrwxrwx. 1 root root 15 Jun 16 03:48 /usr/lib64/libssl.so.10 - 
libssl.so.1.0.0
-rwxr-xr-x. 1 root root 373008 Jun  8 10:43 /usr/lib64/libssl.so.1.0.0

And here is the configure and make log:

pdns-3.0]$ ./configure --with-modules=gpgsql --with-pgsql=/usr/pgsql-9.1 
--with-pgsql-includes=/usr/pgsql-9.1/include --with-gnu-ld checking for a 
BSD-compatible install... /usr/bin/install -c checking whether build 
environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p 
checking for gawk... gawk checking whether make sets $(MAKE)... yes checking 
build system type... x86_64-unknown-linux-gnu checking host system type... 
x86_64-unknown-linux-gnu checking for style of include used by make... GNU 
checking for gcc... gcc checking whether the C compiler works... yes checking 
for C compiler default output file name... a.out checking for suffix of 
executables... 
checking whether we are cross compiling... no checking for suffix of object 
files... o checking whether we are using the GNU C compiler... yes checking 
whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none 
needed checking dependency style of gcc... gcc3 checking how to run the C 
preprocessor... gcc -E checking for grep that handles long lines and -e... 
/bin/grep checking for egrep... /bin/grep -E checking for ANSI C header 
files... yes checking for sys/types.h... yes checking for sys/stat.h... yes 
checking for stdlib.h... yes checking for string.h... yes checking for 
memory.h... yes checking for strings.h... yes checking for inttypes.h... yes 
checking for stdint.h... yes checking for unistd.h... yes checking whether byte 
ordering is bigendian... no checking for gcc... (cached) gcc checking whether 
we are using the GNU C compiler... (cached) yes checking whether gcc accepts 
-g... (cached) yes checking for gcc option to accept ISO C89... (cached) none 
 needed checking dependency style of gcc... (cached) gcc3 checking for g++... 
g++ checking whether we are using the GNU C++ compiler... yes checking whether 
g++ accepts -g... yes checking dependency style of g++... gcc3 checking for 
bison... bison -y checking for flex... flex checking lex output file root... 
lex.yy checking lex library... -lfl checking whether yytext is a pointer... yes 
checking whether make sets $(MAKE)... (cached) yes checking for a sed that does 
not truncate output... /bin/sed checking for fgrep... /bin/grep -F checking for 
ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... 
yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B 
checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether 
ln -s works... yes checking the maximum length of command line arguments... 
1966080 checking whether the shell understands some XSI constructs... yes 
checking whether the shell understands +=... yes checki
 ng for /usr/bin/ld option to reload object files... -r checking for objdump... 
objdump checking how to recognize dependent libraries... pass_all checking for 
ar... ar checking for strip... strip checking for ranlib... ranlib checking 
command to parse /usr/bin/nm -B output from gcc object... ok checking for 
dlfcn.h... yes checking whether we are using the GNU C++ compiler... (cached) 
yes checking whether g++ accepts -g... (cached) yes checking dependency style 
of g++... (cached) gcc3 checking how to run the C++ preprocessor... g++ -E 
checking for objdir... .libs checking if gcc supports -fno-rtti 
-fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC 
checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag 
-static works... no checking if gcc supports -c -o file.o... yes checking if 
gcc supports -c -o file.o... (cached) yes checking whether the gcc linker 
(/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether 
-lc
  should be explicitly linked in... no checking dynamic linker 
characteristics... GNU/Linux ld.so checking how to hardcode library paths into 
programs... immediate checking whether stripping libraries is possible... yes 
checking if libtool supports shared libraries... yes checking whether to build 
shared libraries... yes checking whether to build static libraries... yes 
checking 

Re: [Pdns-users] PowerDNS Master / Slave

2011-08-05 Thread Ian Mordey
I have powerdns running perfectly using a MySQL cluster to store the data. The 
way I do it is have the pdns servers run a local copy of MySQL and replicate 
from the cluster. This eliminates downtime if the link between the 
geographically separate DNS servers and the master cluster is down. I don't 
have AXFR master/slave setup anywhere as any updates are made to the cluster 
table and this is replicated out to the local mysql instance.

Cheers 
Ian

On 3 Aug 2011, at 15:48, Stefan Schmidt zaph...@zaphods.net wrote:

 Hi There,
 
 On Wed, Aug 3, 2011 at 4:11 PM, Support Desk support.desk@gmail.com 
 wrote:
 I am looking into deploying two powerdns Servers on my Network. I would like
 both to use a mysql cluster that I have setup as their backend. My question
 is, if both servers are letting the MySql cluster do the replication, should
 they both be configured as Masters?
 
 If the backend - in this case mysql - is doing the replication itself
 we are calling it 'Native' mode.
 You would only need to set master=yes in pdns.conf in order to enable
 your name servers sending out DNS NOTIFY messages to all servers
 mentioned as NS records for a zone that has changed recently. In Mysql
 PowerDNS will then update the last notified_serial column of the
 domains table in your database.
 slave=yes will enable PowerDNS to listen to such NOTIFIES and if the
 domain is of type 'SLAVE' it will then try to AXFR the zone and
 subsequently update all entries in the records table.
 Thus enabling either master or slave bears a slight risk that both of
 your PowerDNS servers will try to update the same column at once.
 I am not entirely sure how a MySQL cluster would handle this kind of
 deadlock. Gracefully i'd hope.
 
 Stefan
 ___
 Pdns-users mailing list
 Pdns-users@mailman.powerdns.com
 http://mailman.powerdns.com/mailman/listinfo/pdns-users
 
___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
http://mailman.powerdns.com/mailman/listinfo/pdns-users


Re: [Pdns-users] PowerDNS Authoritative Server 3.0-rc3 (FINAL!) released

2011-07-20 Thread Ian Mordey
So it looks like Kees has built the packages for EL5 and there are available 
here:
http://www.monshouwer.eu/download/3th_party/pdns-server/el5/rc/

Not tested yet but will do when I have some time. 

Cheers
Ian

-Original Message-
From: pdns-users-boun...@mailman.powerdns.com 
[mailto:pdns-users-boun...@mailman.powerdns.com] On Behalf Of Nick Milas
Sent: 20 July 2011 07:55
To: bert hubert
Cc: pdns-users@mailman.powerdns.com
Subject: Re: [Pdns-users] PowerDNS Authoritative Server 3.0-rc3 (FINAL!) 
released

On 20/7/2011 9:36 πμ, bert hubert wrote:

 Kees Monshouwer usually builds CentOS native packages for PowerDNS 
 releases, I hope he'll find the time shortly!

If he also can document (in detail!) the process of building these packages, we 
will appreciate that! This will enable other people to build such packages too, 
so that creation/distribution/testing of such packages may become much easier 
and result in a wider cooperative effort!

In the meantime, I have switched back to 2.9.22 RPMs. (I don't want to use a 
manually compiled version on that machine.)

By the way, if compiling/installing from source, is there a way to do a 
complete uninstall (like make uninstall)? That would be very useful in many 
scenarios.

Thanks,
Nick
___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
http://mailman.powerdns.com/mailman/listinfo/pdns-users
___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
http://mailman.powerdns.com/mailman/listinfo/pdns-users


[Pdns-users] Merging two DNS servers

2011-02-22 Thread Ian Mordey
Hi there

We have two mysql backend DNS servers that we need to merge into one
server. The problem is the domain ids clash so I can't just do a
straight mysqldump and import into the new server. I see I have two
options. Recreate the ids on all domains and update the records table to
match or create the domains on the new server as slaves and zone
transfer all the records in.

 

Can anyone think of another way of doing this? Has anyone attempted
anything like this before?

 

Thanks

Ian

___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
http://mailman.powerdns.com/mailman/listinfo/pdns-users


Re: [Pdns-users] Merging two DNS servers

2011-02-22 Thread Ian Mordey
Cool. Thanks for responses. I'll probably go with the insert of domains
and zone transfer the records in.

Cheers

-Original Message-
From: pdns-users-boun...@mailman.powerdns.com
[mailto:pdns-users-boun...@mailman.powerdns.com] On Behalf Of Thomas
Mieslinger
Sent: 22 February 2011 11:23
To: pdns-users@mailman.powerdns.com
Subject: Re: [Pdns-users] Merging two DNS servers

Am 22.02.2011 11:57, schrieb Ian Mordey:
 Can anyone think of another way of doing this? Has anyone attempted

Nope

 anything like this before?

Not this, but merging 10 bindservers into pdns superslaves.

I'd suggest you just select the zones of one pdns (without domainid)
into an outfile, load the file into the other database and restart the
pdns. It will notice all the missing Zonerecords and transfer them fast.

(2k Zones in under 5 Minutes with Zone lengths up to 20k records)

Hope this helps

Thomas
___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
http://mailman.powerdns.com/mailman/listinfo/pdns-users
___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
http://mailman.powerdns.com/mailman/listinfo/pdns-users


[Pdns-users] pdns 2.9.22 on RHEL6

2010-11-22 Thread Ian Mordey
Hi there

I'm trying to compile PowerDNS 2.9.22 with a MySQL backend on a RHEL 6
x86_64 box. I'm getting this error during the make:

 

if g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../.. -pthread
-D_GNU_SOURCE  -Wall -O2 -MT rcpgenerator.o -MD -MP -MF
.deps/rcpgenerator.Tpo -c -o rcpgenerator.o `test -f
'../../rcpgenerator.cc' || echo './'`../../rcpgenerator.cc; \

then mv -f .deps/rcpgenerator.Tpo
.deps/rcpgenerator.Po; else rm -f .deps/rcpgenerator.Tpo; exit 1; fi

../../rcpgenerator.cc: In member function 'void
RecordTextReader::xfrTime(uint32_t)':

../../rcpgenerator.cc:75: error: 'sscanf' was not declared in this scope

../../rcpgenerator.cc: In member function 'void
RecordTextWriter::xfrTime(const uint32_t)':

../../rcpgenerator.cc:363: error: 'snprintf' was not declared in this
scope

../../rcpgenerator.cc: In member function 'void
RecordTextWriter::xfrHexBlob(const std::string)':

../../rcpgenerator.cc:415: error: 'snprintf' was not declared in this
scope

 

Any ideas how to fix?

 

Thanks

Ian

___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
http://mailman.powerdns.com/mailman/listinfo/pdns-users


Re: [Pdns-users] pdns 2.9.22 on RHEL6

2010-11-22 Thread Ian Mordey
Thanks
I found rebuilding the Fedora 13 SRPM works. It includes this patch:
diff -up pdns-2.9.22/pdns/misc.hh.orig pdns-2.9.22/pdns/misc.hh
--- pdns-2.9.22/pdns/misc.hh.orig   2009-02-26 17:09:41.0 +0100
+++ pdns-2.9.22/pdns/misc.hh2009-02-26 17:09:54.0 +0100
@@ -20,6 +20,7 @@
 #define MISC_HH
 #include stdint.h
 #include cstring
+#include cstdio
 
 #if 0
 #include iostream

Any ideas when pdns 3 will be released?

Thanks
Ian

-Original Message-
From: Maik Zumstrull [mailto:m...@zumstrull.net] 
Sent: 22 November 2010 16:23
To: Ian Mordey
Cc: pdns-users@mailman.powerdns.com
Subject: Re: [Pdns-users] pdns 2.9.22 on RHEL6

On Mon, Nov 22, 2010 at 17:06, Ian Mordey ian.mor...@griffin.com wrote:
 Hi there

 I’m trying to compile PowerDNS 2.9.22 with a MySQL backend on a RHEL 6
 x86_64 box. I’m getting this error during the make:

 ../../rcpgenerator.cc:75: error: ‘sscanf’ was not declared in this 
 scope

 Any ideas how to fix?

Throw in an
#include cstdio
at the top of the .cc file with the other includes. Same problem in 
dnsparser.cc.

Also consider the patch releases 2.9.22.x* here:
http://svn.powerdns.com/snapshots/
2.9.22 is, after all, getting a bit old.
___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
http://mailman.powerdns.com/mailman/listinfo/pdns-users


[Pdns-users] PowerDNS Recursor RRD Cacti

2010-04-29 Thread Ian Mordey
Hi there

We are using the pdns-recursor-rrd package on RHEL5 to graph the
statistics on our recursive DNS nodes and it's working quite nicely. Is
there a way to get these graphs into cacti so we can go back and view
historical data?

 

Thanks

Ian

___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
http://mailman.powerdns.com/mailman/listinfo/pdns-users


Re: [Pdns-users] External CNames

2010-03-02 Thread Ian Mordey
James
Did you ever get an answer to this question? We have the same issue..

Thanks
Ian

-Original Message-
From: pdns-users-boun...@mailman.powerdns.com
[mailto:pdns-users-boun...@mailman.powerdns.com] On Behalf Of James
Devine
Sent: 23 February 2010 16:58
To: pdns-users@mailman.powerdns.com
Subject: [Pdns-users] External CNames

I have a powerdns setup with a mysql backend, if I have a 3rd level
host CNAMEd to an external domain, it answers but the status is
NXDOMAIN, if it CNAMEs to a domain for which it is authoritative for
it returns NOERROR.  The recursor that powerdns is configured with is
an external bind recursor which can resolve the external domains fine.
 Any idea where I might be going wrong?
___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
http://mailman.powerdns.com/mailman/listinfo/pdns-users
___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
http://mailman.powerdns.com/mailman/listinfo/pdns-users