Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not create new domains on the slave DNS #31

Open
click0 opened this issue Aug 11, 2018 · 1 comment
Open

Do not create new domains on the slave DNS #31

click0 opened this issue Aug 11, 2018 · 1 comment

Comments

@click0
Copy link

click0 commented Aug 11, 2018

At some point in time, new names were no longer created on the DNS slave.

Information about the DNS master:

# hostname
richhost.org
# plesk version
Product version: Plesk Onyx 17.5.3 Update #53
    Update date: 2018/07/12 23:12
     Build date: 2017/03/17 16:00
     OS version: CentOS 7
       Revision: 55d1b49a272f44666e1920eca8b6e4da449a38cd
   Architecture: 64-bit
Wrapper version: 1.2
# rndc status
WARNING: key file (/etc/rndc.key) exists, but using default configuration file (/etc/rndc.conf)
version: 9.9.4-RedHat-9.9.4-61.el7 (none) <id:8f9657aa>
CPUs found: 8
worker threads: 2
UDP listeners per interface: 2
number of zones: 260
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is OFF
recursive clients: 0/0/1000
tcp clients: 0/100
server is up and running

About Slave-1 DNS:

# rndc status
version: 9.9.4-RedHat-9.9.4-50.el7_3.1 <id:8f9657aa>
CPUs found: 2
worker threads: 2
UDP listeners per interface: 2
number of zones: 102
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is OFF
recursive clients: 0/0/1000
tcp clients: 0/100
server is up and running

About Slave-2 DNS:

# rndc status
version: 9.9.4-RedHat-9.9.4-38.el7_3 <id:8f9657aa>
CPUs found: 3
worker threads: 3
UDP listeners per interface: 3
number of zones: 266
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in progress: 6
query logging is OFF
recursive clients: 0/0/1000
tcp clients: 0/100
server is up and running

Example of a test DNS zone support-od-ua-test-domain.ru:


; *** This file is automatically generated by Plesk ***
$TTL    3600

@       IN      SOA     rich-host.com. hacker20456.ukr.net. (
                        2018081104      ; Serial
                        10800   ; Refresh
                        3600    ; Retry
                        604800  ; Expire
                        10800 ) ; Minimum

support-od-ua-test-domain.ru.            IN NS   rich-host.com.
support-od-ua-test-domain.ru.            IN NS   richhost.in.ua.
support-od-ua-test-domain.ru.            IN NS   richhost.org.
...
support-od-ua-test-domain.ru.            IN A    1.1.1.1
...

Note the incorrect NS in the SOA record field.

At the same time, the console command normally adds a domain to the slave DNS:
rndc -b 1.1.1.1 -s 2.2.2.2 -p 953 -y rndc-key -c /usr/local/psa/var/modules/slave-dns-manager/slave_2.2.2.2.conf addzone support-od-ua-test-domain.ru '{ type slave; file "support-od-ua-test-domain.ru"; masters { 1.1.1.1; }; };'

P.S. on the discrepancies in the number of DNS zones do not pay attention. We are still dealing with this.

@Powie
Copy link

Powie commented Dec 13, 2019

You can set the master dns in Plesk -> Settings -> DNS Template -> SOA Template

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants