Update for anyone who have a problem using own dns.
My domain name are registered at godaddy.com
So I registered my hostname like described here: http://support.godaddy.com/help/arti...meservershosts
then, I changed my ns on godaddy for my own ns and my dns stop working.
I couldn't resolv my domain anymore.
in the bind folder, I had pri.domain.com.err instead of pri.domain.com
to solve this problem I had to modify the MySQL query to this:
$records = $app->db->queryAllRecords("SELECT * FROM dns_rr WHERE zone = ".$zone['id']." AND active = 'Y' AND (data <> 'REMOTE IP' OR name = 'ns1.domain.com.' OR name = 'ns2.domain.com.')");
*domain.com would be my main domain
this way, I create 2 "A" record with ns1 and ns2 and I use ns1 and ns2 as nameserver
as soon as I did that, the .err from my pri.domain.com disappear and my dns start working.
if anyone need more detail of what I did, just reply to this post