fix offbyone
implement pdns_control qtypes