Help - Search - Members - Calendar
Full Version: Setting Nameservers for Plesk Reloaded 7
The Planet Forums > Control Panels > Plesk
madsere
I had a look at the "Setting Nameservers for Plesk" by LadyHawk, but it just confused me, so I had to find out for myself how to do this in Plesk Reloaded 7.1.2 (edit: this is still valid for 7.5.4):

1) Request 2 IP's from RS for Nameservers

2) Go to your registrar and register the nameservers.
Example:
ns1.mynameserver.com (first IP)
ns2.mynameserver.com (second IP)
(Look for something like "create hosts" or "create nameservers". It's often hidden and with warnings not to touch it unlike you know what you're doing. Well now you do)

3) Create a domain to hold the nameservers, i.e. www.mynameserver.com. If you're a webhosting company this is usually the "Shop URL".

4) Login to that domain, (Domains -> click the link to it under "domain name") then

click Services -> DNS.

ADD A: Records
ns1.mynameserver.com (first IP)
ns2.mynameserver.com (second IP)

ADD NS: Records:
mynameserver.com ns1.mynameserver.com
mynameserver.com ns2.mynameserver.com

DELETE the A and NS records for ns.mynameserver.com, they're not used.

5) Go to SERVER -> DNS

CREATE NS records for your nameservers

[]. ns1.mynameserver.com
[]. ns2.mynameserver.com

DELETE the A and NS records for ns. - again, they're not used.

THAT'S IT. It's that simple, it's all there is to it. Nice huh icon_biggrin.gif
Shazmandur
Hello madsere!

Thanks, i've done as you have written, but now i have this Error (was also before)

Server >
ERROR Up LevelUp Level

Unable to make action: Unable to manage service by dnsmng: dnsmng: Service named failed to start

--------------------------------------------------------------------------------

0: /usr/local/psa/admin/htdocs/server/restart_services.php:19 psaerror(string "Unable to make action: Unable to manage service by dnsmng: dnsmng: Service named failed to start")

Do you have an idea to correct this?

greetings
Chris
madsere
Doesn't say much, just that named (nameserver demon) failed to start for some unknown reason. Have a look in /var/log/messages for possible reasons.
Shazmandur
Hello madsere!

The /var/log/messages llok like this:

Mar 21 01:51:50 named[28588]: starting BIND 9.2.3 -u named -t /var/named/chroot
Mar 21 01:51:50 named[28588]: using 1 CPU
Mar 21 01:51:50 named[28588]: loading configuration from '/etc/named.conf'
Mar 21 01:51:50 named[28588]: listening on IPv4 interface lo, 127.0.0.1#53
Mar 21 01:51:50 named[28588]: listening on IPv4 interface eth0, 216.69.162.73#53
Mar 21 01:51:50 named[28588]: listening on IPv4 interface eth0:1, 216.69.162.152#53
Mar 21 01:51:50 named[28588]: listening on IPv4 interface eth0:2, 216.69.162.153#53
Mar 21 01:51:50 named[28588]: couldn't add command channel 127.0.0.1#953: not found
Mar 21 01:51:50 named[28588]: couldn't add command channel ::1#953: not found
Mar 21 01:51:50 named[28588]: zone 162.69.216.in-addr.arpa/IN: loading master file 162.69.216.in-addr.arpa: file not found
Mar 21 01:51:50 named[28588]: zone shazmandur.com/IN: loading master file shazmandur.com: file not found
Mar 21 01:51:50 named[28588]: running
Mar 20 18:51:51 named: named startup succeeded

greetings
Christian
madsere
Well it seems that named IS indeed starting on your server. Perhaps it's the "not found" lines throwing off Plesk. Have a look at the files under /var/named, probably some corruption somewhere in that area.
ravio
Hi madsere,

I have Plesk 7.5.2...

I assume most things are the same however my difference is that my Name server domain will not be hosted on this server. I have created dns3 and dns4.domain.net for use with this server. My actual domain points to ns1. and ns2.domain.net.

What will I do different? Here is what I have in my DNS server config:
CODE
<domain>. A <ip>  

<domain>. MX (10) mail.<domain>.  

<domain>. NS dns3.domain.net  

<domain>. NS dns4.domain.net.  

<ip> / 24 PTR <domain>.  

dns3.<domain>. A 207.44.***.***  

dns4.<domain>. A 207.44.***.***

ftp.<domain>. CNAME <domain>.  

mail.<domain>. A <ip>  

webmail.<domain>. A <ip>


Thank you in advance!



QUOTE (madsere)
I had a look at the "Setting Nameservers for Plesk" by LadyHawk, but it just confused me, so I had to find out for myself how to do this in Plesk Reloaded 7.1.2:

1) Request 2 IP's from RS for Nameservers

2) Go to your registrar and register the nameservers.
Example:
ns1.mynameserver.com (first IP)
ns2.mynameserver.com (second IP)
(Look for something like "create hosts" or "create nameservers". It's often hidden and with warnings not to touch it unlike you know what you're doing. Well now you do)  

3) Create a domain to hold the nameservers, i.e. www.mynameserver.com. If you're a webhosting company this is usually the "Shop URL".

4) Login to that domain, (Domains -> click the link to it under "domain name") then  

click Services -> DNS.  

ADD A: Records
ns1.mynameserver.com (first IP)
ns2.mynameserver.com (second IP)

ADD NS: Records:
mynameserver.com ns1.mynameserver.com
mynameserver.com ns2.mynameserver.com

DELETE the A and NS records for ns.mynameserver.com, they're not used.

5) Go to SERVER -> DNS

CREATE NS records for your nameservers

[]. ns1.mynameserver.com
[]. ns2.mynameserver.com

DELETE the A and NS records for ns. - again, they're not used.

THAT'S IT. It's that simple, it's all there is to it. Nice huh icon_biggrin.gif
Hodjat
Hello,

QUOTE
Hello madsere!

Thanks, i've done as you have written, but now i have this Error (was also before)

Server >
ERROR Up LevelUp Level  

Unable to make action: Unable to manage service by dnsmng: dnsmng: Service named failed to start

--------------------------------------------------------------------------------

0: /usr/local/psa/admin/htdocs/server/restart_services.php:19 psaerror(string "Unable to make action: Unable to manage service by dnsmng: dnsmng: Service named failed to start")

Do you have an idea to correct this?

greetings  
Chris


Follow below steps to solve the error:

Type:

#pico /etc/named.conf
Press CTRL+W, Type Named

you should found a line that "Named" is there,

Goto that line and Press CTRL+K,

Press CTRL+X and type Y, Press Enter,

Now type:

#service named restart

Hope your problem solve,

Good Luck,

Hodjat
dave.merwin
If I have multpile ns names, do I need to enter an instance of the domain for each ns?

Ie:
youdomain.com : ns1.mydomain.com
youdomain.com : ns2.mydomain.com
youdomain.com : ns3.mydomain.com

So that they can "failover" to the next name server.

Please advise.

Thanks.
eMWu
ok but what to do when I want a domain hosted on another server to use DNSes configured on plesk on my primary server?
Where do I enter all the DNS records for that domain?
Squire
dave.merwin: Yes. You'll need an NS entry for each if you want everything to always resolve correctly.

eMWu: If I understand your question correctly, you'll want to set it up at both locations. Although one of those can certainly be 100% automated when a new domain is created.

ie you have the nameserver info in the domain registration pointing to ns(x).primaryserver.com, but the site actually exists on secondaryserver.com. With the domain registration you point the nameserver fields over to ns1.primaryserver.com and ns2.primaryserver.com.

On that server you'll want to tweak the "A" records in the DNS of each domain so that they all point to the IP of secondaryserver.com.

Then on secondaryserver.com you can set up a template to automatically have the DNS pointing at that same server like normal.

It will work like this...

Someone tries to go to Xdomain.com and the global DNS servers are queried and find that it can be found at ns1.primaryserver.com. The primaryserver.com gets queried and an A record is returned leading to the IP number of secondaryserver.com, so the user is sent to that IP number. When they reach that IP, secondaryserver.com resolves everything so that the user connects to the site, email, etc.
dave.merwin
Please add this as a final step:

QUOTE
The problem with this is that you do not have A records for ns1, ns2, or ns3 in our nameservers, which is where the yourdomain.com domain is pointing to for dns queries. I have added the appropriate A records to our nameservers for you. Please allow upto 8 hours for these new records to become fully active. Once this is complete you should be able to resolve your domains without issue.


I had ev1 check my settings several times and even they missed it. The problem was that some ISP's were not resolving the domain (comcast) and with this additional step they now are.
tarik
I'm new at ev1 and I'm confused about DNS. In the mail that ev1 send after registration there are 2 ips as DNS servers and ns1.ev1servers.net as nameservers.
Will I use these ip DNS address for the nameservers. Or request new ips ?
Squire
Usually you're going to use at least one of those IP numbers for your DNS. However if you're hosting any sites that need their own individual IP number (eg for e-commerce transactions with an SSL cert) you'll need to request some additional IP numbers too.
pedrodj
i'm confused: i have activated a VPS yesterday with domain (for example) domain1.com (registred from idotz.net, so i have asked it to change name server to ns1.ev1servers.net and ns2.ev1servers.net). now this domain1.com is working correctly.

but i need to configure my OWN 2 nameserver with other domain (for example domain2.it): this domain2.it is registered with ARUBA and is resolving on another server.

to make domanin2.it working on my VPS, which nameserver i have request to change to ARUBA ? i have to pointing domain2.it to ns1.ev1servers.net and ns2.ev1servers.net or i have to create first my own ns with domain1.com (ns1.domain1.com and ns2.domain.com), then pointing domain2.it to ns1.domain1.com and ns2.domain.com and then create ns1.domain2.it and ns2.domain.it ?

thank you icon_smile.gif
Squire
I'm confused by the question pedrodj. Are you trying to set up domain1.com so that it will function as your nameserver?

If so, you first need to set this up at your registrar. You can name them something like ns1.domain1.com and ns2.domain1.com. Typically the Registrar will also require that you tie an IP number to each of these.

Then in the EV1 members area set up a reverse record for these two IP numbers, pointing them to the correct NS address.

Then you can set these as your namesevers in the WhoIs record for your main domain, instead of using the EV1 nameservers. You can also use them with any other domain on your server. And set up your DNS templates in the control panel so your two ns addresses are automatically used when a new domain is added to the server.
pedrodj
thank you squire for your help.

nevermind, now i', trying to setup my default domain associated with VPS registration.

i have registered domain on idotz.net, pointed it on ns1.ev1servers.net and ns2.ev1servers.net and the domain works correctly but i'm unable to make my domain works for my own nameserver.

this is my zone configuration for default domain (01.jpg)

then i have created a pshysical hosting for my default domain, and added in it's zone ns1 and ns2 with 2 ip addressed (02.jpg)

03.jpg is a screenshot of my ip addressed on my VPS.

but ns1 and ns2 doesn't work (i have tryed to ping it and it's unable to resolve).

some ideas ?
DRYALLS
  1. I have today informed my registrar that mydomain.com has nameservers at nsx.ev1servers.net
  2. In servercommand.net I have added the dns zone for mydomain.com. This has produced a long list of DNS records including NS entries
    mydomain.com. NS ns1.ev1servers.net

    mydomain.com. NS ns2.ev1servers.net
  3. mydomain.com has successfully resolved to the new server from the old
  4. At the old host I have another domain, mydomain2.com
  5. At the registrar, mydomain2.com has nameservers nsX.mydomain.com
  6. ev1 have given me 2 ips for me to use for nsX.mydomain.com
  7. What do I do next:



    a) in PLESK (to mydomain and mydomain2 DNS settings),

    b) in servercommand,

    c) at my registrar (I have never told my registrar in the past about nsX.mydomain.com and all worked fine).
DRYALLS
Got it working! Thanks to the original poster for setting me on the right path. To answer my own questions:

7a) In PLESK in mydomain.com add A records for nsX.mydomain.com using the IPs given to me by ev1.

In PLESK in mydomain2 add NS records

mydomain2.com. NS nsX.mydomain.com

7b) In servercommand add A records for nsX.mydomain.com using the IPS given to me by ev1.

7c) (The difficult piece) Contact my registrar and ask them to add the custom name servers nsX.mydomain.com using the IPs given me by ev1. This was the difficult piece because my registrar (Easyspace) has nothing in their systems to do this automatically, I had to raise a trouble ticket.

[My previous hosts had somehow set up custom name servers for nsX.mydomain.com, (bypassing my registrar) so I had to ask for these to be removed.]
Jolives
Any word on Plesk 8 setup?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.