Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

DNS problem

Discussion in 'Bind/DNS/Nameserver' started by lukaschemp, Aug 21, 2008.

  1. lukaschemp

    lukaschemp Active Member

    Joined:
    Nov 6, 2006
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    151
    I have problem:

    Code:
    root@ns203223 [~]# service named start
    Uruchamianie named:
    Błąd w konfiguracji named:
    none:0: open: /etc/named.conf: file not found
                                                               [FAILED]
    But named.conf exist but without zones:

    Code:
    root@ns203223 [~]# cat /etc/named.conf
    include "/etc/rndc.key";
    
    controls {
            inet 127.0.0.1 allow { localhost; } keys { "rndc-key"; };
    };
    So i tried:

    Code:
    root@ns203223 [~]# /scripts/rebuildnamedconf
    /etc/named.conf and /etc/named.conf.prefixrndc are identical at /scripts/cPScript/FileUtils.pm line 264
    [cPScript::FileUtils]: rcopy('/etc/named.conf', '/etc/named.conf.prefixrndc') failed: Niewłaściwy ioctl dla urządzenia
    /etc/named.conf.fixrndc and /etc/named.conf are identical at /scripts/cPScript/FileUtils.pm line 264
    [cPScript::FileUtils]: rcopy('/etc/named.conf.fixrndc', '/etc/named.conf') failed: Niewłaściwy ioctl dla urządzenia
    and..

    Code:
    root@ns203223 [~]# /scripts/fixrndc
    Controls section not found, adding ...
    Adding controls clause ...
    /etc/named.conf and /etc/named.conf.prefixrndc are identical at /scripts/cPScript/FileUtils.pm line 264
    [cPScript::FileUtils]: rcopy('/etc/named.conf', '/etc/named.conf.prefixrndc') failed: Niewłaściwy ioctl dla urządzenia
    /etc/named.conf.fixrndc and /etc/named.conf are identical at /scripts/cPScript/FileUtils.pm line 264
    [cPScript::FileUtils]: rcopy('/etc/named.conf.fixrndc', '/etc/named.conf') failed: Niewłaściwy ioctl dla urządzenia
    I tried /scripts/upcp --force but still nothing.

    RPM:

    bind-libs-9.3.4-6.0.2.P1.el5_2
    bind-libs-9.3.4-6.0.2.P1.el5_2
    bind-utils-9.3.4-6.0.2.P1.el5_2
    bind-devel-9.3.4-6.0.2.P1.el5_2
    bind-9.3.4-6.0.2.P1.el5_2
    bind-devel-9.3.4-6.0.2.P1.el5_2

    System:

    CentOS release 5.2 (Final) 64bit

    Anybody can help with that?
     
    #1 lukaschemp, Aug 21, 2008
    Last edited: Aug 21, 2008
  2. vinoo

    vinoo Registered

    Joined:
    Apr 9, 2007
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    151
    Hi,

    Make sure the zone file should exist for the domain in named.conf which is of the format as follows:

    zone "account.com" {
    type master;
    file "/var/named/account.com.db";
    };

    Also the entries should be there for the domain in the file /var/named/account.com.db such as the nameservers and also the ip to which the domain resolves etc..

    You may then start the named script again which loads.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice