Php errros in CWP panel

Started by daro2013, July 17, 2018, 10:28:44 AM

Previous topic - Next topic

bullten

What is output of

yum list installed | grep bind

And

serivce named restart

daro2013

a. Here are the outputs of the commands:

[root@vps196134 ~]# yum list installed | grep bind
bind.x86_64                           32:9.9.4-61.el7                  @base
bind-libs.x86_64                      32:9.9.4-61.el7                  @base
bind-libs-lite.x86_64                 32:9.9.4-61.el7                  @base
bind-license.noarch                   32:9.9.4-61.el7                  @base
bind-utils.x86_64                     32:9.9.4-61.el7                  @base

[root@vps196134 ~]# serivce named restart
-bash: serivce: command not found



b. And here the DNS config I did in CWP panel:

$TTL    38400
@       IN      SOA     ns1.mydomain.com.   admin.mydomain.com. (
                        20170922110026 ; serial
                        90M ; refresh
                        15M ; retry
                        14D ; expire
                        3600 ; default_ttl
                        )

mydomain.com.   14400   IN   NS   ns1.mydomain.com.
mydomain.com.   14400   IN   NS   ns2.mydomain.com.

ns1   14400   IN   A   xxx.xxx.xxx.xxx
ns2   14400   IN   A   xxx.xxx.xxx.xxx

mydomain.com.   14400   IN   A   xxx.xxx.xxx.xxx

localhost   14400   IN   A   127.0.0.1

mydomain.com.   14400   IN   MX   0   mydomain.com.

server   IN   A   xxx.xxx.xxx.xxx
www   IN   A   xxx.xxx.xxx.xxx

mydomain.com.   IN   TXT   "v=spf1 a mx ptr a:mydomain.com ip4:xxx.xxx.xxx.xxx ?all"

_adsp._domainkey.mydomain.com.   IN   TXT   "dkim=all"

_domainkey.mydomain.com.   IN   TXT   "o=~; r=abuse@mydomain.com"

_dmarc.mydomain.com.   IN   TXT   "v=DMARC1; p=quarantine; sp=r; pct=100; aspf=r; adkim=s"


default._domainkey   IN   TXT   ( "v=DKIM1; k=rsa; "
     "p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCCRwGE8OCQk/skzSse3837B4/PLCtW6FfYESiyFshpKlF8bOGl7MfpKXibbTfBdur0puNmGOPhSSPxzEsnHjmYp7xHErzgYVd/Wgqp9HdyQRBfqyVJXmSbhuhjFe7zCYyrp4gZY1maDa5T6p8nIj/acuXrmgJNLOeAcbW7RjS8EQIDAQAB" )  ; ----- DKIM key default for mydomain.com
nh4rtd9f  IN CNAME www.mydomain.com.


Cheers

bullten

Sorry I miss typed Its

service named restart

daro2013

Sorry there is a mistyped command above. Here is a correct one:

[root@vps196134 ~]# service named restart
Redirecting to /bin/systemctl restart named.service
Job for named.service failed because the control process exited with error code. See "systemctl status named.service" and "journalctl -xe" for details.


Cheers

bullten

what is output of this.

systemctl status named.service

daro2013

Here it is:


[root@vps196134 ~]# systemctl status named.service
● named.service - Berkeley Internet Name Domain (DNS)
   Loaded: loaded (/usr/lib/systemd/system/named.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Wed 2018-07-18 03:02:07 EDT; 3h 3min ago
  Process: 3650 ExecStop=/bin/sh -c /usr/sbin/rndc stop > /dev/null 2>&1 || /bin/kill -TERM $MAINPID (code=exited, status=0/SUCCESS)
  Process: 13170 ExecReload=/bin/sh -c /usr/sbin/rndc reload > /dev/null 2>&1 || /bin/kill -HUP $MAINPID (code=exited, status=0/SUCCESS)
  Process: 12029 ExecStart=/usr/sbin/named -u named -c ${NAMEDCONF} $OPTIONS (code=exited, status=0/SUCCESS)
  Process: 3660 ExecStartPre=/bin/bash -c if [ ! "$DISABLE_ZONE_CHECKING" == "yes" ]; then /usr/sbin/named-checkconf -z "$NAMEDCONF"; else echo "Checking of zone files is disabled"; fi (code=exited, status=1/FAILURE)
Main PID: 12031 (code=exited, status=0/SUCCESS)

Jul 18 03:02:07 vps196134.vps.ovh.ca bash[3660]: zone ns2.baiagmumr5g.eu/IN: loaded serial 2013071600
Jul 18 03:02:07 vps196134.vps.ovh.ca bash[3660]: dns_rdata_fromtext: /var/named/baiagmumr5g.eu.db:2: near '20170922110026': out of range
Jul 18 03:02:07 vps196134.vps.ovh.ca bash[3660]: /var/named/baiagmumr5g.eu.db:36: file does not end with newline
Jul 18 03:02:07 vps196134.vps.ovh.ca bash[3660]: zone baiagmumr5g.eu/IN: loading from master file /var/named/baiagmumr5g.eu.db failed: out of range
Jul 18 03:02:07 vps196134.vps.ovh.ca bash[3660]: zone baiagmumr5g.eu/IN: not loaded due to errors.
Jul 18 03:02:07 vps196134.vps.ovh.ca bash[3660]: _default/baiagmumr5g.eu/IN: out of range
Jul 18 03:02:07 vps196134.vps.ovh.ca systemd[1]: named.service: control process exited, code=exited status=1
Jul 18 03:02:07 vps196134.vps.ovh.ca systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
Jul 18 03:02:07 vps196134.vps.ovh.ca systemd[1]: Unit named.service entered failed state.
Jul 18 03:02:07 vps196134.vps.ovh.ca systemd[1]: named.service failed.



Thanks

bullten

Issue in  /var/named/baiagmumr5g.eu.db

Recreate it.

daro2013

Here is the DNS record I have set in CWP panel:

$TTL    38400
@       IN      SOA     ns1.baiagmumr5g.eu.   admin.baiagmumr5g.eu. (
                        20170922110026 ; serial
                        90M ; refresh
                        15M ; retry
                        14D ; expire
                        3600 ; default_ttl
                        )

baiagmumr5g.eu.   14400   IN   NS   ns1.baiagmumr5g.eu.
baiagmumr5g.eu.   14400   IN   NS   ns2.baiagmumr5g.eu.

ns1   14400   IN   A   167.114.98.75
ns2   14400   IN   A   167.114.98.75

baiagmumr5g.eu.   14400   IN   A   167.114.98.75

localhost   14400   IN   A   127.0.0.1

baiagmumr5g.eu.   14400   IN   MX   0   baiagmumr5g.eu.

server   IN   A   167.114.98.75
www   IN   A   167.114.98.75

baiagmumr5g.eu.   IN   TXT   "v=spf1 a mx ptr a:baiagmumr5g.eu ip4:167.114.98.75 ?all"

_adsp._domainkey.baiagmumr5g.eu.   IN   TXT   "dkim=all"

_domainkey.baiagmumr5g.eu.   IN   TXT   "o=~; r=abuse@baiagmumr5g.eu"

_dmarc.baiagmumr5g.eu.   IN   TXT   "v=DMARC1; p=quarantine; sp=r; pct=100; aspf=r; adkim=s"


Can you please what is wrong with that?

Cheers

studio4host

your serial is too long, it can be only 10 characters long
your is
20170922110026 ; serial
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

daro2013

thanks for your advice.

I have changed to the followings:


; Panel %version%
; Zone file for ns1.baiagmumr5g.eu
$TTL 14400
ns1.baiagmumr5g.eu.      86400      IN      SOA      ns1.baiagmumr5g.eu.      admin.baiagmumr5g.eu.      (
                  2013071600 ;serial, todays date+todays
                  86400 ;refresh, seconds
                  7200 ;retry, seconds
                  3600000 ;expire, seconds
                  86400 ;minimum, seconds
      )

baiagmumr5g.eu.   14400   IN   NS   ns1.baiagmumr5g.eu.
baiagmumr5g.eu.   14400   IN   NS   ns2.baiagmumr5g.eu.

ns1   14400   IN   A   167.114.98.75
ns2   14400   IN   A   167.114.98.75

baiagmumr5g.eu.   14400   IN   A   167.114.98.75

localhost   14400   IN   A   127.0.0.1

baiagmumr5g.eu.   14400   IN   MX   0   baiagmumr5g.eu.

server   IN   A   167.114.98.75
www   IN   A   167.114.98.75

baiagmumr5g.eu.   IN   TXT   "v=spf1 a mx ptr a:baiagmumr5g.eu ip4:167.114.98.75 ?all"

_adsp._domainkey.baiagmumr5g.eu.   IN   TXT   "dkim=all"

_domainkey.baiagmumr5g.eu.   IN   TXT   "o=~; r=abuse@baiagmumr5g.eu"

_dmarc.baiagmumr5g.eu.   IN   TXT   "v=DMARC1; p=quarantine; sp=r; pct=100; aspf=r; adkim=s"


But it still does not work.

Cheers

bullten

did you try rebuilding zone?

daro2013

Hi,

Can you give me instruction on how to rebuild zone?

Cheers

daro2013

Update: I have deleted a user I created in CWP panel to remove DNS record. And created it again to rebuild DNS records.

The issue is still the same; binding does not work.

Or I can give you SSH credentials to have a look? Do you have an email address?

Cheers

studio4host

try to check info about the error

service named status

if the is no error info then you can check for bind error in the /var/log/messages file

example
service named restart
tail -n 200 /var/log/messages
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

daro2013

Thanks, studio4host.

Bullen has fixed it. He may put his guides here soon to benefit everyone.

Cheers