DNS not updating

Discussion in 'General' started by djtremors, Sep 19, 2006.

  1. djtremors

    djtremors New Member

    Hey all, everything on my upgraded 2.5->2.6 was working fine until i realised that when I make a change to the DNS, not only do updates take forever (ie. changes to anywhere) but the DNS doesn't change at all.

    looking at the ispconfig.log file I only get this after the deletion of an A record:
    PHP:
    19.09.2006 20:42:59 => INFO Signalfile Setdelete: do


    19.09.2006 20:45:06 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.phpLine 137cp -fr /etc/postfix/local-host-names /etc/postfix/local-host-names~
    19.09.2006 20:45:06 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.phpLine 284cp -fr /etc/postfix/virtusertable /etc/postfix/virtusertable~
    19.09.2006 20:45:06 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.phpLine 289postmap hash:/etc/postfix/virtusertable
    19.09.2006 
    20:45:06 => INFO - /root/ispconfig/scripts/lib/config.lib.phpLine 1211cp -fr /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf~
    19.09.2006 20:45:07 => INFO - /root/ispconfig/scripts/lib/config.lib.phpLine 1840httpd -&> /dev/null
    19.09.2006 
    20:45:07 => INFO - /root/ispconfig/scripts/lib/config.lib.phpLine 1840httpd -&> /dev/null
    nothing at all after that.

    Is there some sort of conditions that it checks before it does dns updates that could possibly be corrupted or something else where I can search to the problem?
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Which distribution do you use? What's the output of
    Code:
    ls -la /root/ispconfig
    ?
     
  3. djtremors

    djtremors New Member

    PHP:
    drwxr-xr-x   9 root root  4096 Sep 14 15:33 .
    drwxr-x---  16 root root  4096 Sep 19 14:23 ..
    -
    rwxr-xr-x   1 root root 33660 Jul 10 16:25 cronolog
    -rwxr-xr-x   1 root root  9673 Jul 10 16:25 cronosplit
    drwxr
    -xr-x  12 root root  4096 Jul 10 16:14 httpd
    drwxr
    -xr-x  12 root root  4096 Jul 10 16:25 isp
    -rw-r--r--   1 root root     8 Sep 14 15:33 .old_path_httpd_root
    drwxr
    -xr-x   6 root root  4096 Jul 10 16:07 openssl
    drwxr
    -xr-x   6 root root  4096 Jul 10 16:20 php
    drwxr
    -xr-x   4 root root  4096 Jul 12 15:56 scripts
    drwxr
    -xr-x   4 root root  4096 Jul 10 16:25 standard_cgis
    drwxr
    -xr-x   2 root root  4096 Jul 10 16:25 sv
    -rwx------   1 root root  9389 Jul 10 16:25 uninstall
    .old_path_httpd_root contains

    PHP:
    /var/www
    Other weird issues is that my DNS is always overriding my dns path to /etc/bind and i change it in the settings to /var/named/chroot/var/named and it then somehow reverts back to /etc/bind. that is really starting to *&(@*%# me off..
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Please make sure that the directory /var/named/chroot/var/named is world readable. The user ISPConfig tries to validate the directory and if it does not exist or is invisible for him, he reverts the settings to /etc/bind.
     
  5. djtremors

    djtremors New Member

    thats all i get after I make the changes and the changes take minutes to apply, real pain. The DNS worked fine for so long but now doesn't appear to make any changes.

    OK, your right about the permissions on the folder. weird thing is that I had gotten fed up and symlinked /etc/bind to point to /var/named/chroot/var/named and it worked for a while until now... straaange.

    I'll try it out now.. let you know.

    also, any ideas on making a queuing system so we don't get stopped on applied changes and having to wait on the server to apply changes to then make more again? I get annoyed and only 1 person, how's this going to be with 5,10,50+ resellers etc if they use it like this?
     
  6. falko

    falko Super Moderator Howtoforge Staff

    A queuing system might be a good idea. :)
     
  7. djtremors

    djtremors New Member

    I chmod'd all the directories to 755 and the owner of the pri.____ files are named:named.
    Yet i still can't update my dns and there's no errors in the ispconfig.log file. I don't see any mention of updating the dns either in it.
    Is it /home/admispconfig/ispconfig/lib/classes/ispconfig_isp_dns.lib.php where the DNS is updated on file?

    Where is this cron style system which does the update so I can check how it works and where it's failing? it's not in cron itself because nothing is running every x minutes except for */5 checking mysq;_quotas.
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    No, that is only the library for the web interface.

    Please try the tests mentioned in this thread:

    http://www.howtoforge.com/forums/showthread.php?t=3695
     
  9. djtremors

    djtremors New Member

    son of a b*&%@&#%$(*

    I totally forgotten about the seg fault issues... argh!!!! my bad.

    yeah it's segfaulting. even with 5.1.4 there's segfault, is it a php problem since this has been around for a few versions now?

    so where does the /root/ispconfig/scripts/writeconf.php get called from periodically? it's not cron is it.....

    btw, downgrading php.. thx.
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    In my opinion the PHP 5.1 is not as stable as the php 5.0. This segfault issue appears just on some systems, especially fedora linux seems to be affected and the segfault seems to appear on different occasions. But if you look in the PHP bugtracker, there is a long list what may cause a segfault in PHP :(

    It's a shell script named ispconfig_wconf that checks every 10 seconds if a .run file has been set.
     
  11. djtremors

    djtremors New Member

    yeah odd number versions aren't too friendly usually..

    AARGH.. I'm really hating the /etc/bind changes.. I have 755 permissions from /var to /var/named/chroot/var/named and it still reverts back to /etc/bind WHICH DOESN'T EXIST...!! damn thing kills the dns each time. argh! frustrating it is...lol....

    i can understand if it can't access the path do something but not change the /etc/named.conf file to something that doesn't exist. it just kills it even more.
     
  12. till

    till Super Moderator Staff Member ISPConfig Developer

    Please switch to the user admispconfig with the su command and issue a ls for the path you entered in the ISPConfig interface. Do you get a permission denied error?
     
  13. djtremors

    djtremors New Member

    no errors. i've checked these already.
    i can even cat any of the pri.___ domains files.

    which file does the check of all this and that does the change in the database to /etc/bind so I can trace where it fails and why?

    I know /root/ispconfig/scripts/writeconf.php writes it but I don't see anywhere in it where there's an "/etc/bind" being written.

    It seems almost every time i got into the Management->Services->DNS this is when i see it change to /etc/bind and then when i check the /etc/named.conf it's changed again... :'(
     
    Last edited: Sep 23, 2006
  14. till

    till Super Moderator Staff Member ISPConfig Developer

    The file is:

    /root/ispconfig/scripts/lib/classes/ispconfig_bind.lib.php
     
  15. falko

    falko Super Moderator Howtoforge Staff

Share This Page