ISPConfig and named

Discussion in 'General' started by cybereatl, Mar 20, 2007.

  1. cybereatl

    cybereatl Member

    Hi folks,

    A few days ago I've an issue with a new domain, which is was on ISPConfig manager and site was not displaying, later I've check on named.conf and site was not listed and ask around and some one help me to add those records to my DNS and he told me named is not communicating with with ISPConf box. :eek: :eek:

    Now my question is:

    what I need to check to confirm that ISPConfig modify correctly system parameters, such as adding a new site.

    Thank you

    ISPConfig Version: 2.1.2
    Linux Distro: FC4
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Have a look at the file /home/admispconfig/ispconfig/ispconfig.log for errors.
     
  3. cybereatl

    cybereatl Member

    Thank you for your reply Till, actually there is NO errors mostly INFO's and some WARNS!!

    Am looking a named.conf and domain is not listed???

    Thanks
     
  4. mccharlet

    mccharlet Member HowtoForge Supporter

    Hi,

    You find the file genered by ispconf in this folder
    /var/lib/named/etc/bind

    The master file
    /root/ispconfig/isp/conf

    restart named and show syslog for error
    /etc/init.d/bind9 restart
    cat /var/log/syslog
     
  5. cybereatl

    cybereatl Member

    Hi!,

    That path is not valid for my Distro, am using FC4..

    Thanks
     
  6. mccharlet

    mccharlet Member HowtoForge Supporter

    I use a Debain distrib

    I don't now for your distrib
     
  7. falko

    falko Super Moderator ISPConfig Developer

    What's in your named.conf?
    What's the value of Zonefiles Dir in Management -> Server -> Settings -> DNS?
    Is SELinux disabled?
     
  8. cybereatl

    cybereatl Member

    Hi Falko, Thank you for your reply:

    In named.conf contains almost all my sites, except for last site that I've created.

    Zonefiles Dir.: /etc/bind

    I went over the server to see content of bind and I tried to listed and I can't find that file!!! should exist or is a hidden file?? :eek: :eek: :eek:

    SELinux is disable.

    Thank you
     
  9. falko

    falko Super Moderator ISPConfig Developer

    Please do this:
    Code:
    yum install bind-chroot
    chmod 755 /var/named/
    chmod 775 /var/named/chroot/
    chmod 775 /var/named/chroot/var/
    chmod 775 /var/named/chroot/var/named/
    chmod 775 /var/named/chroot/var/run/
    chmod 777 /var/named/chroot/var/run/named/
    cd /var/named/chroot/var/named/
    ln -s ../../ chroot
    chkconfig --levels 235 named on
    /etc/init.d/named start
    as shown on http://www.howtoforge.com/perfect_setup_fedora_core_4_p3

    Afterwards, fill in /var/named/chroot/var/named as the Zonefiles Dir in ISPConfig.
     
  10. cybereatl

    cybereatl Member

    Thank you Falko,

    I've followed your instructions and I got:

    [root@morticia /]# yum install bind-chroot
    Setting up Install Process
    Setting up repositories
    Reading repository metadata in from local files
    Parsing package install arguments
    Nothing to do
    [root@morticia /]#

    Other things we're ok then I got:

    [root@morticia ~]# cd /var/named/chroot/var/named/
    [root@morticia named]# ln -s ../../ chroot
    ln: `chroot/..': cannot overwrite directory
    [root@morticia named]#

    other than that there is no problem also I've change path in ISPConfig.

    Thenk I went to check site and still is not showing up!!

    [root@morticia /]# dig universalcmd.com

    ; <<>> DiG 9.3.1 <<>> universalcmd.com
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49151
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0

    ;; QUESTION SECTION:
    ;universalcmd.com. IN A

    ;; ANSWER SECTION:
    universalcmd.com. 86400 IN A 200.89.230.204

    ;; AUTHORITY SECTION:
    universalcmd.com. 86400 IN NS 200.89.230.204.

    ;; Query time: 56 msec
    ;; SERVER: 200.89.230.204#53(200.89.230.204)
    ;; WHEN: Thu Mar 22 13:08:48 2007
    ;; MSG SIZE rcvd: 78

    What should I check then??

    Thanks
     
  11. falko

    falko Super Moderator ISPConfig Developer

    What's in the Zonefiles Dir field now in ISPConfig?
     
  12. cybereatl

    cybereatl Member

    Thank you for your reply Falko,

    Here is the content:

    /var/named/chroot/var/named

    And site is displaying!!! I got standard website page!!

    Thank you!!
     
  13. falko

    falko Super Moderator ISPConfig Developer

    So the problem is solved?
     
  14. cybereatl

    cybereatl Member

    Yes, Falko problem is solved... thank you!!!
     

Share This Page