• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

DNS Problem

bokken

Basic Pleskian
My server ran out of space by partitioning a disk problem, since then the DNS began to fail.

When I start the DNS service, I get an error about not finding the files of the DNS zones.

---

[root@server]# /etc/init.d/named start
Starting named:
Error in named configuration:
zone xxxxxxxx.com/IN: loading master file xxxxxxxx.com: file not found
_default/xxxxxxxx.com/IN: file not found
zone xxxxxxxx.net/IN: loading master file xxxxxxxx.net: file not found
_default/xxxxxxxx.net/IN: file not found
zone xxxxxxxx.org/IN: loading master file xxxxxxxx.org: file not found
_default/xxxxxxxx.org/IN: file not found
[FAILED]


---

As I can restore these files again?

Thanks!

Raul Lozano.
 
Try to update DNS records for these domains via Plesk interface.
 
In Control Panel - Websites & Domains - DNS Settings.
 
Hi!

Not works.

I turned on and off the dns for all domains, I got a new dns record, and I've changed between master and slave.

None of these options causes DNS to regenerate the file.


The DNS appear correctly on the panel, but the file is not generated and the service will not start.


[root@server ~]# /etc/init.d/named start
Starting named:
Error in named configuration:
zone xxx.es/IN: loading master file xxx.es: file not found
_default/xxx.es/IN: file not found
zone xxx.es/IN: loading master file xxx.es: file not found
_default/xxx.es/IN: file not found
zone xx.xxx.xxx.in-addr.arpa/IN: loading master file xx.xxx.xxx.in-addr.arpa: file not found
_default/xx.xxx.xxx.in-addr.arpa/IN: file not found
[FAILED]

The zone in-addr.arpa have the same error.

:(
 
The repair command can restore the DNS without any loss data?


/usr/local/psa/bin/repair --help

Usage: repair command

Available commands:
--run or -r Restores configuration files of web,
mail and DNS servers.
--help or -h Displays this help page.

Version: 10.1.1_build1010110120.18 os_CentOS 5
 
Yes, I have checked it. I have removed one zone file:

# rm -f /var/named/run-root/var/newplesk10.com

And then repaired it with

# /usr/local/psa/bin/repair -r
-- Restoring DNS server configuration started.
newplesk10.com: Ok

# ll /var/named/run-root/var/newplesk10.com
-rw-r--r-- 1 root root 980 Jul 21 17:52 /var/named/run-root/var/newplesk10.com
 
Hi IgorG!

I just run the command and tells me to restore everything, in fact the areas are well on your directory, but the service still does not start.

[root@server var]# /usr/local/psa/bin/repair -r
-- Restoring DNS server configuration started.
domain.es: Ok
restart service:dnsmng: Service /etc/init.d/named failed to restart
dnsmng: Service /etc/init.d/named failed to restart
Error
-- Restoring DNS server configuration done: Ok
-- Restoring mail server configuration started.
==> Checking for: mail_spam_restore... ok
==> Checking for: mailsrv_conf_init... ok
==> Checking for: mail_mailbox_restore... ok
==> Checking for: mailsrv_entities_dump... ok
==> Checking for: mail_admin_aliases... ok
==> Checking for: mail_auth_dump... ok
==> Checking for: mailman_lists_dump... ok
==> Checking for: mail_responder_restore... ok
==> Checking for: mail_drweb_restore... ok
==> Checking for: mail_kav8_restore... ok
==> Checking for: mail_spf_restore... ok
==> Checking for: mail_dk_restore... ok
==> Checking for: mail_grey_restore... ok
-- Restoring mail server configuration done: Ok
-- Restoring web server configuration started.
-- Restoring web server configuration done: Ok
FAILED: Failed to fully restore the configuration files.

The permisions its correct?:

[root@server var]# pwd
/var/named/run-root/var
[root@server var]# ls -lah
total 132K
drwxr-xr-x 3 named named 4.0K Jul 21 13:41 .
drwxr-xr-x 6 root root 47 Jan 8 2007 ..
-rw-r--r-- 1 root root 1.2K Jul 21 13:41 xx.xxx.xxx.in-addr.arpa
-rw-r--r-- 1 root root 711 Jul 21 13:41 domain.es


The service not start, the same error:

[root@server var]# /etc/init.d/named start
Starting named:
Error in named configuration:
zone domain.es/IN: loading master file domain.es: file not found
_default/domain.es/IN: file not found
zone xx.xxx.xxx.in-addr.arpa/IN: loading master file xx.xxx.xxx.in-addr.arpa: file not found
_default/xx.xxx.xxx.in-addr.arpa/IN: file not found
[FAILED]


Where are the master file?¿


Thanks!
 
Permissions on my test environment:

# stat /var/named/run-root/var
File: `/var/named/run-root/var'
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 18h/24d Inode: 20582426 Links: 4
Access: (0755/drwxr-xr-x) Uid: ( 25/ named) Gid: ( 25/ named)

# ll /etc/named.conf
lrwxrwxrwx 1 root root 34 Jul 21 09:14 /etc/named.conf -> /var/named/run-root/etc/named.conf

I think that you should check content of named.conf
 
Hi IgorG!

My permisions:

[root@server]# stat /var/named/run-root/var
File: `/var/named/run-root/var'
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: fd01h/64769d Inode: 4199204 Links: 3
Access: (0755/drwxr-xr-x) Uid: ( 25/ named) Gid: ( 25/ named)

[root@server]# ls -lah /etc/named.conf
lrwxrwxrwx 1 root root 34 Jan 8 2007 /etc/named.conf -> /var/named/run-root/etc/named.conf


Just compare the named.conf file to another server, and the beginning of the file is different, actually begins in the area as if he were around the beginning of the file.

Just a fresh start file with data from the other server gives me error:

[root@server]# /etc/init.d/named start
Starting named:
Error in named configuration:
/etc/named.conf:333: unexpected end of input
[FAILED]


But just to review the file and exit successfully, exactly like the other server with plesk.

Is there any way to self-regenerate this file? Or pass me a blank template where are all the necessary data?

Thanks!
 
In attach named.conf from my test Plesk 10 environment.
 

Attachments

  • file.txt
    4.7 KB · Views: 31
DNS Server (BIND) not starting

I have a DNS problem also.

In "Server Tools", it says that the DNS Server (BIND) is not running. When I click on the Green Play button, it does not start the DNS Server (BIND).

What could be the problem?

I am current running BIND 9.7.0-P2 on CentOS-6 64-bit.

In SSH, when I type in the command "service named start" it says that it is "already running [OK]".

Since I can access and view my website, I am assuming that BIND is working properly.

Please advise.
 

Attachments

  • DNSproblem.jpg
    DNSproblem.jpg
    68 KB · Views: 9
hi
I have the same problem in plesk 9.x
did the above solution can used for fix the problem in pleak 9
 
Back
Top