Thanks! added to my script (cur is the DB handle): cur:close() That appears to have worked! -- View this message in context: http://powerdns.13854.n7.nabble.com/mysql-has-gone-away-tp10974p10978.html Sent from the PowerDNS mailing list archive at Nabble.com.