DNS Management errors and blank page... after MY mistake....

wemanageit

New member
Joined
Jun 12, 2022
Messages
7
Trying to setup a domain zone under the DNS Management..... and YES 100% I made a mistake and trying to delete the wrong info, but deleting this out just now gives me a :

BLANK page under USER/DNS Management, and these two REDish popups "Could not execute your request/You do not own that domain" and "Can not view DNS record/Domain Does not belong to you"

There are no DNS zones in ADMIN/DNS Management either.

I just want to delete what ever DA thinks is there to get back to start over, with out reimaging the box..

Thank you in advance.
 
remove it from /etc/named.conf or where in your system it stored, and from /var/named/
 
remove it from /etc/named.conf or where in your system it stored, and from /var/named/

Thanks, but unfotunately there are no zone files in there matching the domain in question

/etc/named.conf

Code:
options {
        allow-transfer { none; };
        listen-on port 53 { any; };
        listen-on-v6 port 53 { any; };
        directory       "/var/named";
        dump-file       "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        memstatistics-file "/var/named/data/named_mem_stats.txt";
        secroots-file   "/var/named/data/named.secroots";
        recursing-file  "/var/named/data/named.recursing";
        allow-query     { any; };

        /*

Looking in /var/named/
Code:
# ls -larth
total 44K
drwxrwx---. 2 named named 4.0K Oct 11 2021 slaves
-rw-r-----.  1 root  named  168 Oct 11  2021 named.loopback
-rw-r-----.  1 root  named  152 Oct 11  2021 named.localhost
-rw-r-----.  1 root  named  152 Oct 11  2021 named.empty
-rw-r-----.  1 root  named 2.3K Oct 11  2021 named.ca
-rw-r--r--.  1 root  root   513 Mar 24 05:15 localhost.zone
-rw-r--r--.  1 root  root   433 Mar 24 05:15 named.local
drwxr-xr-x. 23 root root 4.0K Mar 24 05:17 ..
drwxrwx---. 2 named named 4.0K Jun 19 03:40 data
drwxrwx--T. 5 root named 4.0K Jun 25 00:41 .
drwxrwx---. 2 named named 4.0K Jun 25 00:41 dynamic

in data?
# ls -larth
total 100K
drwxrwx---. 2 named named 4.0K Jun 19 03:40 .
-rw-r--r--. 1 named named  41K Jun 19 03:40 named.run-20220619
drwxrwx--T. 5 root named 4.0K Jun 25 00:41 ..
-rw-r--r--  1 named named  39K Jun 25 00:41 named.run
[root@localhost data]#

Any ideas???? Thanks.
 
try to remove it from /etc/virtual/domains and domainowners files and add it again to DA panel
 
try to remove it from /etc/virtual/domains and domainowners files and add it again to DA panel

Thank you .... but

Still no joy....

Code:
# ls -larth
total 44K
drwx--x--x. 2 mail mail 4.0K Mar 24 05:14 localhost.localdomain
-rw-r--r--.  1 mail      mail      5 Mar 24 05:15 limit
-rw-r--r--.  1 mail      mail      2 Mar 24 05:15 limit_unknown
-rw-r--r--.  1 mail      mail      4 Mar 24 05:15 user_limit
drwxr-x---. 2 mail mail 4.0K Mar 24 05:15 usage
-rw-------.  1 mail      mail      0 Mar 24 05:15 domainowners
-rw-------.  1 mail      mail      0 Mar 24 05:15 blacklist_domains
-rw-------.  1 mail      mail      0 Mar 24 05:15 whitelist_from
-rw-------.  1 mail      mail      0 Mar 24 05:15 bad_sender_hosts
-rw-------.  1 mail      mail      0 Mar 24 05:15 bad_sender_hosts_ip
-rw-------.  1 mail      mail      0 Mar 24 05:15 blacklist_senders
-rw-------.  1 mail      mail      0 Mar 24 05:15 whitelist_domains
-rw-------.  1 mail      mail      0 Mar 24 05:15 whitelist_hosts
-rw-------.  1 mail      mail      0 Mar 24 05:15 whitelist_hosts_ip
-rw-------.  1 mail      mail      0 Mar 24 05:15 whitelist_senders
-rw-------.  1 mail      mail      0 Mar 24 05:15 skip_av_domains
-rw-------.  1 mail      mail      0 Mar 24 05:15 skip_rbl_domains
drwxr-x---. 5 majordomo daemon 4.0K Mar 24 05:15 majordomo
lrwxrwxrwx. 1 mail mail 7 Mar 24 05:27 use_rbl_domains -> domains
-rw-------.  1 mail      mail     32 Mar 24 05:38 domains
drwxr-xr-x. 90 root root 12K Jun 26 00:10 ..
-rw-r--r--.  1 root      root      0 Jun 26 17:02 pophosts_user
-rw-------.  1 mail      mail      0 Jun 26 17:02 pophosts
drwxr-xr-x. 5 mail mail 4.0K Jun 26 18:02 .
[root@localhost virtual]# cat domains  
localhost
localhost.localdomain
[root@localhost virtual]# cat domainowners  
[root@localhost virtual]#


I think this is borq'd beyond recovery at this point and reimage it back to base is probably the best case... as what ever setup DA does, seems to be nuked already...
 
If you know the usernames, you could try to use this script:
/usr/local/directadmin/scripts/fix_da_user.sh

Usage: ./fix_da_user.sh <username> <user|reseller|admin> (<domain>)

<username> is required.
<user|reseller|admin> is to specify that this user is a reseller, or an admin.
(<domain>) is an optional 3rd argument to speicfy if there is supposed to be a domain under this account.

Note: the creator in the user.conf will be set to 'admin'. If it should be something else, edit the CREATOR value in this script
 
OK.. I have reinstalled the system from the VPS providers image, not a backup, not a snapshot, from the base image the VPS provides..

STILL PERSISTS.. can't access the USER/DNS Management page, same errors... and blank page...

Actually put a different image, Ubuntu 22.04, from the VPS on it, and then reimaged from that to the AlmaLinux image.. and STILL PERSISTS!

What is DA reading from where after a reimage??????????? This is ridiculous a reimage should have corrected this! Back to a clean slate... something DA is reading from some place other than the server... which is probably what started this mess....

Any hints here???? Thank you.
 
OK.. I have reinstalled the system from the VPS providers image, not a backup, not a snapshot, from the base image the VPS provides..
Any hints here???? Thank you.
As i know DA didn't have official VM images, so better to install clean OS, update all packages, install DA manually.
 
Back
Top