• 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

Resolved DNS Template

Farzanhost

Basic Pleskian
Hello
how can i create a DNS which every account i creat use this DNS as Default
 

Attachments

  • 2016-08-31_102733.png
    2016-08-31_102733.png
    4 KB · Views: 13
i want set nameserver and applying for all host account on plesk
ns2.<domain>.
i want change <domain>.
i cant change <domain> in record..

please help me

for example :
i want set ns1.example.com and ns2.example.com for all host account .
 
Hi Farzanhost,

i cant change <domain> in record..
Pls. remember the difference between VALUE ( "Name server" ) and "Domain name".

EXAMPLE:
Code:
YOUR-DOMAIN.COM. NS ns2.example.com.
YOUR-DOMAIN.COM. NS ns1.example.com.
YOUR-DOMAIN.COM => is the equivalent to the template - placeholder ".<domain>."
ns1.example.com => is the used value for your NS - entry.


Pls. remember as well, that Plesk is not your initial nameserver, when you are not the domain registrar itself - you still have to change the nameserver - entries at the control panel from your domain registrar, because Plesk is not connected to it.
 
Last edited by a moderator:
Error: Unable to remove the NS record from the DNS template: Each DNS zone must have at least one NS record.



i click on Add DNS Record but agian have a .<domain>. valu in form
 
Hi Farzanhost,

pls. ask yourself again, for WHAT this placeholder is used at the DNS - template. If you would change that to for example to "honolulu.com", then your DNS - settings would be:

Code:
honolulu.com. NS ns2.example.com.
honolulu.com. NS ns1.example.com.

which is wrong, when your domain is "YOUR-DOMAIN.COM". The placeholder ".<domain>." can't be removed here, because it would be a false entry, when something different than YOUR-DOMAIN.COM would be defined here.

See other examples please:

Domain Type TTL Answer
disney.com. NS 86400 Orns02.dig.com.
disney.com. NS 86400 huey11.disney.com.
disney.com. NS 86400 Orns01.dig.com.
disney.com. NS 86400 Sens01.dig.com.
disney.com. NS 86400 Sens02.dig.com.
disney.com. NS 86400 huey.disney.com.

Domain Type TTL Answer
google.com. NS 345600 ns1.google.com.
google.com. NS 345600 ns4.google.com.
google.com. NS 345600 ns2.google.com.
google.com. NS 345600 ns3.google.com.
 
Hello
Thank for help

look

is there any way to set a DNS for All Accounts?
for example ns1.ramin.com | ns2.ramin.com if i create an account (host) the new domain or new host get this DNS automatically

how can i set this up?
 
Hi Farzanhost,

sure, you can setup "ns1.ramin.com" and "ns2.ramin.com" instead of your "ns1.example.com" and "ns2.example.com". You just can't change the placeholder ".<domain>.", because this will be replaced with your domain names.
The domain - specific DNS - entries will then look like this:

Code:
YOUR-DOMAIN.COM. NS ns1.ramin.com.
YOUR-DOMAIN.COM. NS ns2.ramin.com.

For "ramin.com" for example, the NS - entries are defined as
Domain Type TTL Answer
ramin.com. NS 300 ns1.rookdns.com.
ramin.com. NS 300 ns2.rookdns.com.
( Check it for example at "https://www.dnswatch.info/dns/dnslookup?la=en&host=ramin.com&type=NS&submit=Resolve" )
 
Hello

Please check attached picture

is taht right?
 

Attachments

  • 2016-09-01_091937.png
    2016-09-01_091937.png
    8.6 KB · Views: 14
  • dnss8.png
    dnss8.png
    19.2 KB · Views: 12
Hi Farzanhost,

no, both pictures show misconfigurations.


The first screenshots shows the DNS - TEMPLATE ( which is a sort of configuration - file, based on pre-definitions ). You modified this template with "asrarweb.com.<domain>." in your HOST - settings, where there only should be ".<domain>.", because this placeholder is used to configure the domain - specific DNS - settings, based on your domains, you added with Plesk.

The correct look of the TEMPLATE would be for example:
Code:
<domain>. NS ns7.asrarweb.com.
<domain>. NS ns8.asrarweb.com.
Pls. delete the FIRST NS - entry on top of your screenshot, because you don't want to have this DNS - configuration, according to your previous posts - or delete the "ns7.asrarweb.com" - entry and modify the FIRST NS - entry with it.


The second screenshot shows your domain - specific DNS - settings and you already marked the wrong entry here in red. Because the DNS entry is for the domain "test.com", the additional manual modification of "asrarweb.com." is false. It should only be:
Code:
test.com. NS ns7.asrarweb.com.


Further more, the initial "A" entry at the "test.com" DNS - setting is missing and the "A" entry for your configured NS - entry is missing as well.
Code:
test.com. A 138.201.149.73
ns7.asrarweb.com. A 138.201.149.73



Pls. be so kind to READ the Plesk documentations before you continue:

 
Back
Top