New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
PowerDNS problems
Anyone seen this before?
I'm lost
I'm following this guide:
http://www.howtoforge.com/installing-powerdns-with-mysql-backend-and-poweradmin-on-debian-squeeze-p2
And get this in Syslog:
Sep 14 06:07:54 anycast pdns[18777]: Guardian is launching an instance
Sep 14 06:07:54 anycast pdns[18777]: Reading random entropy from '/dev/urandom'
Sep 14 06:07:54 anycast pdns[18777]: This is module gmysqlbackend.so reporting
Sep 14 06:07:54 anycast pdns[18777]: Fatal error: Trying to launch unknown backend 'gmysql;'
Sep 14 06:07:55 anycast pdns[18771]: Our pdns instance exited with code 1
Sep 14 06:07:55 anycast pdns[18771]: Respawning
Comments
Be a man, use bind and rsync
@William
Step 1
apt-get install pdns-server pdns-backend-mysql
Step 2
in /etc/powerdns/pdns.conf
launch=gmysql
gmysql-socket=/var/run/mysqld/mysqld.sock
gmysql-user=username
gmysql-dbname=dbname
Step 3
to diagnose instead of
/etc/init.d/pdns start
type
/etc/init.d/pdns monitor
have you installed pdns-backend-mysql?
If you can consider moving from Debian to Ubuntu 12.04 then you can use our custom build from https://launchpad.net/~gbshouse/+archive/pdns version 3.1-4ubuntu1ppa12
dang, i am dumb - had "launch=gmysql;" in it as i'm used to from Nginx and PHP config files, it now works...
@William - Debian uses PowerDNS version 2.X which is not best choice, consider version 3.X from Ubuntu
well what are the major differences?
i only run like 50 zones anyway..
(anyone got a bind zonefile -> powerdns mysql importer?)
Oh the semicolon
@William - 2.X -> 3.0 http://doc.powerdns.com/upgrades.html#from2.9to3.0
3.0 -> 3.1 http://doc.powerdns.com/from3.0to3.1.html
http://doc.powerdns.com/migration.html#zone2sql
Hm interesting:
With similar settings, version 3.0 will most likely use a lot more memory than 2.9.
I am quite limited by my ram.. and will Poweradmin still work with that?
If it's only 50 zones why not just SSH in and use an SQL manager? If they're limited on RAM this may save you needing to run the poweradmin interface.
Optionally, couldn't you just put the poweradmin interface on a larger LEB and just keep the slaves as minimal?
@William - it should work maybe except some DNSSEC stuff
Hm, i stay with 2.X for now but thatnks for the links and the importer @gbshouse (and no, don't worry - this wont be a service like yours, only my personal DNS)
Also, set up MySQL replication, installed the powerdns "slaves" as normal install (same settings as the master, did not install Poweradmin obviously) and only granted the mysql users for them the SELECT privilege so they can't write to the DB or modify anything.
Seems to work fine for now.
Anything else to do?
Keep in mind that i run Master-Master-Master-Master as all DNS servers use the same IPs (anycast) and i dont need to specify them as "slaves"
I did not follow this guide entirely, i don't use Apache - I use Nginx and PHP-FPM which has much less overhead so the Poweradmin does not need much ram (and the Master has 512MB anyway instead of 256MB RAM as vr.org has no 256MB instance sin Hongkong)
if someone wants to test:
dig test.kz @176.124.70.5 ("NS1")
dig test.kz @176.124.70.10 ("NS2")
Nodes currently:
NYC, NY, US (Working)
AMS, Netherlands (Working)
Chennai, India (Not whitelisted yet)
Hongkong, Hongkong (Not whitelisted yet)
Added soon:
LA, CA, US
London, UK
Milan, Italy (if i get my BGP session from Sal :P)
@William - one issue: according to RFC (I don't remember which one) NS1 and NS2 should be from two different class C IP spaces - but it's just theory. From my experience: change the version-string in pdns.conf to your own custom like "My DNS server 1.2.3". In case of nmap-ing or something for holes it can help
next week you will have it :-)
@William - few issues in https://www.centralnic.com/support/doctor?op=diagnose&_PRINTABLE=&domain=test.kz
@gbshouse: This errors are normal, i don't own this domain, i just added it for testing to my DNS
@Chief What client is that? It looks nice.