Mydns AXFR : Transfer failed

Discussion in 'Installation/Configuration' started by thibotus01, Oct 28, 2009.

  1. thibotus01

    thibotus01 Member

    Hi,

    It seems that MyDNS can't transfer the IP to my slave dns server.

    I put the IP in the correct field in ispconfig panel :

    Allow zone transfers to
    these IPs (comma separated list)
    : XX.XX.XX.XXX

    in mydns.conf :

    allow-axfr = yes # Should AXFR be enabled?
    allow-tcp = yes # Should TCP be enabled?


    Result :

    ; <<>> DiG 9.5.1-P3 <<>> domain.tld @myserver.com AXFR
    ;; global options: printcmd
    ; Transfer failed.

    I use the last version of Ispconfig. So I presume this thread is solved http://www.howtoforge.com/forums/archive/index.php/t-34373.html
     
    Last edited: Oct 28, 2009
  2. kainam00

    kainam00 New Member

  3. thibotus01

    thibotus01 Member

    Thanks !

    But lol ? That's means, right now, nobody can't use a DNS slave server. And no one cares about? :confused:

    Apprently the bug is only from MyDNS and not ispconfig... see the thread you posted me.
     
    Last edited: Oct 29, 2009
  4. thibotus01

    thibotus01 Member

    Well, I fixed the bug, the domain is now active but I got the same result :

    ; <<>> DiG 9.5.1-P3 <<>> domain.tld @myserver.com AXFR
    ;; global options: printcmd
    ; Transfer failed.
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Anything in the log files?

    mydns servers do not use axfr for synching with ecah other, for mydns you use e.g. mysql replication. It just means that you can not use bind as slave. But as far as I know, the problem in the mydns code was fixed some time ago, maybe they introduced the problem again in theyr code.
     
  6. thibotus01

    thibotus01 Member

    Which log file I have to look into?

    What do you mean by "you can not use bind as slave."
    If BIND is installed on the slave it cannot works ?
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

  8. thibotus01

    thibotus01 Member

    If I stop the daemon :

    Code:
    Oct 29 08:57:24 ksxxx mydns[30351]: terminé
    Oct 29 08:57:24 ksxxxmydns[30351]: ksxxx.domain.tld disponible 2m42s (162s) 35 requêtes (0/s) NOERROR=22 SERVFAIL=0 NXDOMAIN=0 NOTIMP=0 REFUSED=2 (31% TCP, 11 queries)
    Oct 29 08:57:24 kksxxx mydns[30350]: Server pid 30351 died
    Oct 29 08:57:24 ksxxx mydns[30700]: purge_bad_task() bad task 0.0.0.0: 000  (4) NEED_TASK_READ, High Priority IO Driven Task => 2
    Oct 29 08:57:24 ksxxxmydns[30700]: purge_bad_task() bad task 0.0.0.0: 000  (5) NEED_TASK_READ, High Priority IO Driven Task => 4
    Oct 29 08:57:24 ksxxx mydns[30700]: purge_bad_task() bad task 0.0.0.0: 000  (6) NEED_TASK_READ, High Priority IO Driven Task => 6
    Oct 29 08:57:24ksxxx mydns[30700]: purge_bad_task() bad task 0.0.0.0: 000  (7) NEED_TASK_READ, High Priority IO Driven Task => 8
    Oct 29 08:57:24 ksxxx mydns[30700]: purge_bad_task() bad task ::: 000  (8) NEED_TASK_READ, High Priority IO Driven Task => 10
    Oct 29 08:57:24 ksxxx mydns[30700]: accept_tcp_query: accept failed on fd 3 proto IPV4: Mauvais descripteur de fichier
    Oct 29 08:57:24 ksxxx mydns[30700]: accept_tcp_query: accept failed on fd 5 proto IPV4: Mauvais descripteur de fichier
    Oct 29 08:57:24 ksxxx mydns[30700]: accept_tcp_query: accept failed on fd 7 proto IPV4: Mauvais descripteur de fichier
    Oct 29 08:57:24 ksxxx mydns[30700]: accept_tcp_query: accept failed on fd 9 proto IPV4: Mauvais descripteur de fichier
    Oct 29 08:57:24 ksxxx mydns[30700]: accept_tcp_query: accept failed on fd 11 proto IPV6: Mauvais descripteur de fichier
    Oct 29 08:57:24 ksxxx mydns[30350]: terminé
    Oct 29 08:57:24 ksxxx mydns[30350]: ksxxx.domain.tld disponible 2m42s (162s) 4 requêtes (0/s) NOERROR=3 SERVFAIL=0 NXDOMAIN=0 NOTIMP=0 REFUSED=0
    Oct 29 08:57:24 ksxxx mydns[30700]: terminé
    Oct 29 08:57:24 ksxxx mydns[30700]: ksxxx.domain.tld disponible 2m42s (162s) 14 requêtes (0/s) NOERROR=13 SERVFAIL=0 NXDOMAIN=0 NOTIMP=0 REFUSED=0 (35% TCP, 5 queries)
    If I start :

    Code:
    Oct 29 08:57:46 ksxxx mydns[30706]: mydns 1.2.8.25 started Thu Oct 29 08:57:46 2009 (listening on 5 addresses)
    If I Do a DIG. I got nothing.

    Maybe I should install MyDNS-ng 1.2.8.27?
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    If you did not see anything, then the axfr request most likely did not got trough to your server. Please try:

    dig @localhost AXFR yourdomain.tld

    And which mydns-ng version do you use at the moment?
     
  10. thibotus01

    thibotus01 Member

    I got the same error.

    Regarding to the log it's mydns 1.2.8.25
    not NG version
     
  11. till

    till Super Moderator Staff Member ISPConfig Developer

    Thn you should update to the latest mydns-ng version.
     
  12. thibotus01

    thibotus01 Member

    That's what I just did, but I still got the same error with the DIG AXFR... ? :(

    Code:
    wget http://heanet.dl.sourceforge.net/sourceforge/mydns-ng/mydns-1.2.8.27.tar.gz
    tar xvfz mydns-1.2.8.27.tar.gz
    cd mydns-1.2.8
    ./configure
    make
    make install
     
  13. till

    till Super Moderator Staff Member ISPConfig Developer

    Anything in the log? Have you checked the mydns.conf file, it might have been overwritten by the installation.
     
  14. thibotus01

    thibotus01 Member

    the DIG command should output someting in the log ?

    When I start the daemon the new version is mentioned. So I think it's good for the version.
    The config file has not been overwritten.
     
  15. thibotus01

    thibotus01 Member

    I stopped mydns and run it with -d -v

    Code:
    mydns[8002]: AXFR is enabled
    mydns[8002]: TCP ports are enabled
    mydns[8002]: DNS UPDATE is not enabled
    mydns[8002]: DNS NOTIFY is not enabled
    mydns[8002]: DNS IXFR is not enabled
    mydns[8002]: optional 'xfer' column found in 'dns_soa' table
    mydns[8002]: mydns 1.2.8.27 started Thu Oct 29 09:31:53 2009 (listening on 5 addresses)
    mydns[8003]: 29-oct-2009 09:31:58+383495 #12 54889 UDP 213.186.33.199 IN SOA domain.tld. NOERROR - 1 1 2 2 LOG N QUERY ""
    mydns[8003]: 29-oct-2009 09:31:58+396836 #13 4392 TCP 213.186.33.199 IN IXFR domain.tld. REFUSED IXFR_not_enabled 1 0 0 0 LOG N QUERY ""
    mydns[8003]: 29-oct-2009 09:32:31+021607 #14 37677 UDP 213.186.33.199 IN SOA domain2.tld. REFUSED zone introuvable 1 0 0 0 LOG N QUERY ""
    mydns[8003]: 29-oct-2009 09:32:31+034769 #15 48135 TCP 213.186.33.199 IN IXFR domain2.tld. REFUSED IXFR_not_enabled 1 0 0 0 LOG N QUERY ""
    mydns[8003]: 29-oct-2009 09:32:35+727410 #16 38423 UDP 80.12.255.10 IN A www.domain3.tld. NOERROR - 1 1 2 2 LOG N QUERY ""
    mydns[8003]: 29-oct-2009 09:32:53+727692 #17 0 UDP Address unknown 000 000  NOERROR - 0 0 0 0 LOG N QUERY ""
    mydns[8002]: 29-oct-2009 09:32:53+727938 #1 0 UDP Address unknown 000 000  NOERROR - 0 0 0 0 LOG N QUERY ""
    Maybe something interesting?
     
    Last edited: Oct 29, 2009
  16. thibotus01

    thibotus01 Member

    Now I see the log for : dig domain.tld @myserver.tld AXFR



    Code:
    mydns[10515]: 29-oct-2009 10:01:56+164202 #1 0 UDP 0.0.0.0 000 000  NOERROR - 0 0 0 0 LOG N QUERY ""
    mydns[10515]: 29-oct-2009 10:01:56+164609 #2 0 UDP 0.0.0.0 000 000  NOERROR - 0 0 0 0 LOG N QUERY ""
    mydns[10515]: 29-oct-2009 10:01:56+164680 #3 0 UDP 0.0.0.0 000 000  NOERROR - 0 0 0 0 LOG N QUERY ""
    mydns[10515]: 29-oct-2009 10:01:56+164749 #4 0 UDP 0.0.0.0 000 000  NOERROR - 0 0 0 0 LOG N QUERY ""
    mydns[10515]: 29-oct-2009 10:01:56+164811 #5 0 UDP :: 000 000  NOERROR - 0 0 0 0 LOG N QUERY ""
    mydns[10515]: 29-oct-2009 10:01:56+164868 #6 0 TCP 0.0.0.0 000 000  NOERROR - 0 0 0 0 LOG N QUERY ""
    mydns[10515]: 29-oct-2009 10:01:56+164943 #7 0 TCP 0.0.0.0 000 000  NOERROR - 0 0 0 0 LOG N QUERY ""
    mydns[10515]: 29-oct-2009 10:01:56+165005 #8 0 TCP 0.0.0.0 000 000  NOERROR - 0 0 0 0 LOG N QUERY ""
    mydns[10515]: 29-oct-2009 10:01:56+165062 #9 0 TCP 0.0.0.0 000 000  NOERROR - 0 0 0 0 LOG N QUERY ""
    mydns[10515]: 29-oct-2009 10:01:56+165120 #10 0 TCP :: 000 000  NOERROR - 0 0 0 0 LOG N QUERY ""
    mydns[10515]: 29-oct-2009 10:01:56+165179 #11 0 UDP Address unknown 000 000  NOERROR - 0 0 0 0 LOG N QUERY ""
    mydns[10515]: 29-oct-2009 10:01:56+165295 #0 0 UNKNOWN Address unknown 000 000  NOERROR - 0 0 0 0 LOG N QUERY ""
    [B]mydns[8003]: 29-oct-2009 10:01:56+165398 #199 31292 TCP 91.1xxx.1xx.1x7 IN AXFR domain.tld. NOERROR - 1 0 0 0 LOG N QUERY ""
    mydns[10515]: 29-oct-2009 10:01:56+166882 #199 31292 TCP 91.xxx1.1xxx2.1xx7 IN AXFR domain.tld. REFUSED AXFR_disabled 0 0 0 0 LOG N QUERY ""
    [/B]
    The question is : why I have "REFUSED AXFR_disabled" and in mydns.conf it's allow-axfr = yes ?
     
    Last edited: Oct 29, 2009
  17. kainam00

    kainam00 New Member

    What does your table dns_soa table entry look like for domain.tld?
     
  18. thibotus01

    thibotus01 Member

    What do you want to see ? I can't past like that...

    xfer = I.P DNS Slave
    active = Y (I use Mydns-NG)
    serial = 2009102902
     
    Last edited: Oct 29, 2009
  19. kainam00

    kainam00 New Member

    That looks right... and you're running dig from the slave, correct? Does myDNS-ng work fine for everything except the transfer? i.e. regular dig queries
     
  20. thibotus01

    thibotus01 Member

    wops, no i'm runing DIG from the master. I don't have access from the slave...
     

Share This Page