Nameserver two not responding on powerdns

Discussion in 'Server Operation' started by JACOBKELL, Sep 21, 2010.

  1. JACOBKELL

    JACOBKELL New Member

    When i was first time setting up powerdns with poweradmin,and then checked dns,everything was fine.But now after around year and some time,every powerdns powered server which i check gets error on following field:
    DNS servers responded ERROR: One or more of your nameservers did not respond:
    The ones that did not responded are:
    Ip adress of second nameserver
    I have identical configuration as i have it on bind,but on bind dns report is ok.And it seems this is problem because i was downloading with wget using several poweradmin powered servers,and noticed how sometime i get error "not resolving",but it was fine next second when i started download again.

    Any idea why is this happening ?
    Also here is example of bind zone:
    $ttl 38400
    @ IN SOA ns1.nameserver.com. hostname.hostname.com. (
    1239984845
    7200
    7200
    604800
    86400 )

    nameserver.com. 86400 IN NS ns1.nameserver.com.
    nameserver.com. 86400 IN NS ns2.nameserver.com.

    ns1.nameserver.com. 14400 IN A 127.0.0.1
    ns2.nameserver.com. 14400 IN A 74.206.233.133

    nameserver.com. IN A 127.0.0.1
    www.nameserver.com. IN A 127.0.0.1
    ftp.nameserver.com. IN A 127.0.0.1
    m.nameserver.com. IN A 127.0.0.1
    localhost.nameserver.com. IN A 127.0.0.1
    webmail.nameserver.com. IN A 127.0.0.1
    admin.nameserver.com. IN A 127.0.0.1
    nameserver.com. IN TXT "v=spf1 a mx a:nameserver.com. ip4:127.0.0.1 ?all"
    Only different between bind and powerdns/poweradmin,powerdns has no dot on end of domain.
     
    Last edited: Sep 21, 2010
  2. falko

    falko Super Moderator ISPConfig Developer

    What are the outputs of
    Code:
    netstat -tap
    and
    Code:
    netstat -uap
    on the slave server? Any PowerDNS related errors in the logs on the slave?
     
  3. JACOBKELL

    JACOBKELL New Member

    First command:
    PHP:
    Active Internet connections (servers and established)                                                                                                        Proto Recv-Q Send-Q Local Address               Foreign Address             Stat
    e       PID
    /Program name                                                                                                                                     tcp        0      0 localhost.lo:menandmice-lpm *:*                         LIST
    EN      7917/licenseServer                                                                                                                                   tcp        0      0 hostname.hos:menandmice-lpm *:*                         LIST
    EN      7917/licenseServer                                                                                                                                   tcp        0      0 hostname.hostname.com:943   *:*                         LIST
    EN      19754/python                                                                                                                                         tcp        0      0 *:http                      *:*                         LIST
    EN      1389/nginx                                                                                                                                           tcp        0      0 localhost.localdomain:1232  *:*                         LIST
    EN      7917/licenseServer                                                                                                                                   tcp        0      0 hostname.hostname.com:1232  *:*                         LIST
    EN      7917/licenseServer                                                                                                                                   tcp        0      0 *:ndmp                      *:*                         LIST
    EN      19796/perl                                                                                                                                           tcp        0      0 *:domain                    *:*                         LIST
    EN      11775/pdns_server-i                                                                                                                                  tcp        0      0 localhost.localdomain:smtp  *:*                         LIST
    EN      19689/sendmailacc                                                                                                                                  tcp                                                                                                                                                      tcp        0      0 localhost.localdo:vids-avtp *:*                         LIST
    EN      12165/TradeControlS                                                                                                                                  tcp        0      0 localhost.locald:buddy-draw *:*                         LIST
    EN      12165/TradeControlS                                                                                                                                  tcp        0      0 localhost.locald:cslistener *:*                         LIST
    EN      3182/php-cgi                                                                                                                                         tcp        0      0 localhost.localdomain:904   *:*                         LIST
    EN      19754/python                                                                                                                                         tcp        0      0 localhost.localdomain:905   *:*                         LIST
    EN      19754/python                                                                                                                                         tcp        0      0 localhost.localdomain:906   *:*                         LIST
    EN      19754/python                                                                                                                                         tcp        0      0 *:mysql                     *:*                         LIST
    EN      19484/mysqld                                                                                                                                         tcp        0      0 localhost.localdomain:907   *:*                         LIST
    EN      19754/python                                                                                                                                         tcp        0      0 localhost.localdomain:908   *:*                         LIST
    EN      19754/python                                                                                                                                         tcp        0      0 localhost.localdomain:909   *:*                         LIST
    EN      19754/python                                                                                                                                         tcp        0      0 hostname.hostname.com:52982 99.192.219.98:ssh                                                                                                                                               tcp        0      0 localhost.localdomain:40880 localhost.localdomain:mysql ESTA
    BLISHED 11775
    /pdns_server-i                                                                                                                                  tcp        0      0 localhost.localdomain:40875 localhost.localdomain:mysql ESTA
    BLISHED 11775
    /pdns_server-i                                                                                                                                  tcp        0      0 localhost.localdomain:40874 localhost.localdomain:mysql ESTA
    BLISHED 11775
    /pdns_server-i                                                                                                                                  tcp        0      0 localhost.localdomain:40873 localhost.localdomain:mysql ESTA
    BLISHED 11775
    /pdns_server-i                                                                                                                                  tcp        0      0 hostname.hostname.com:43273 webareverse.net:61412     
                                                                                                                                              tcp        0      0 localhost
    .localdomain:mysql localhost.localdomain:40880 ESTA
    BLISHED 19484
    /mysqld                                                                                                                                         tcp        0      0 localhost.localdomain:mysql localhost.localdomain:40875 ESTA
    BLISHED 19484
    /mysqld                                                                                                                                         tcp        0      0 localhost.localdomain:mysql localhost.localdomain:40874 ESTA
    BLISHED 19484
    /mysqld                                                                                                                                         tcp        0      0 localhost.localdomain:mysql localhost.localdomain:40873 ESTA
    BLISHED 19484
    /mysqld                                                                                                                                         tcp        0                                                                                                                                               tcp        0                                                                                                                                            tcp        0      0 *:64532                     *:*                         LIST
    EN      18367/sshd                                                                                                                                           tcp        0    452 hostname.hostname.com:64532 78.134.129.35-dsl.net:52086 ESTA
    BLISHED 23873
    /3   
    Second command:
    PHP:
    Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name
    udp        0      0 
    *:domain                    *:*                                     11775/pdns_server-i
    udp        0      0 
    *:ndmp                      *:*                                     19796/perl  
    Second nameserver is on same server,no slave servers.
     
  4. falko

    falko Super Moderator ISPConfig Developer

    So you run BIND and PowerDNS on the same server?
     
  5. JACOBKELL

    JACOBKELL New Member

    No,i was saying how i have another server where is bind running with same zone configuration(but different domains,each server is master,no slaves).
    After all i think zone configurations are same for any dns server,after all all you need to add SOA and A record and that's it.
     
  6. JACOBKELL

    JACOBKELL New Member

    I just made test pdns database and added entries with webmin module,and it was same result.Which indicate how problem is definitely in powerdns.Now the question is it problem in zone configuration,or it's some bug in question.Also,i installed it by following tutorial published here for powerdns on centos.
    I even tried this command:
    host -v -t NS domain.com from external server and i getting:
    Trying "domain.com"
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 43991
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0

    ;; QUESTION SECTION:
    ;domain.com. IN NS

    ;; ANSWER SECTION:
    domain.com. 3600 IN NS ns1.domain.com.
    domain.com. 3600 IN NS ns2.domain.com.

    Received 72 bytes from 216.130.161.1#53 in 125 ms
     
    Last edited: Sep 23, 2010
  7. falko

    falko Super Moderator ISPConfig Developer

    How did you create zones and records on PowerDNS? Did you use Poweradmin for it?
     
  8. JACOBKELL

    JACOBKELL New Member

    Yes,i used poweradmin,which is why i also tried webmin module for powerdns,and it generated same result,which indicate how is problem in powerdns.This is really frustrating,i asking same question everywhere and nobody have clue.Starting to wonder do i really need to use pdns,after all it looks like pdns is made for more complex dns configuration like master/slave and mysql replication,and i always use two nameserver per server and both nameservers are always on same server.On the other hand it worked before without problem so this really doesn't have sense.
     
  9. falko

    falko Super Moderator ISPConfig Developer

    Can you post a dump of the PowerDNS MySQL database (if it is not too big) so that I can take a look if the records look right?
     
  10. JACOBKELL

    JACOBKELL New Member

    Over pm or should i just replace domains with domain.com ?You could also if you have vps somewhere simply install fresh pdns and poweradmin and then add same record and you would see same error.
     
  11. falko

    falko Super Moderator ISPConfig Developer

    Yes, send me a PM.

    You could also if you have vps somewhere simply install fresh pdns and poweradmin and then add same record and you would see same error.[/QUOTE]I've never had any problems with PowerDNS and Poweradmin.
     
  12. JACOBKELL

    JACOBKELL New Member

    PM sended.
     
  13. JACOBKELL

    JACOBKELL New Member

    I just noticed one domain even not loading at all-so i have no choice then return to bind since nobody have clue why this error appear.
     

Share This Page