Author Topic: How to Setup DNS (BIND) on server  (Read 53559 times)

0 Members and 2 Guests are viewing this topic.

Offline
*
Re: How to Setup DNS (BIND) on server
« Reply #15 on: June 01, 2017, 02:32:06 AM »
hi everyone i facing some problems. İ can not use pureftpd and dns. they always failed. when i try to restart ftp the system says

"Job for pure-ftpd.service failed because the control process exited with error code. See "systemctl status pure-ftpd.service" and "journalctl -xe" for details.

and this is how looks like my controlpage.

please someone help me !  :( :( :( :(

Offline
*
Re: How to Setup DNS (BIND) on server
« Reply #16 on: July 25, 2017, 05:24:59 PM »
I think I've set up DNS correctly, but when I go to the registrar for my hosted domain broadey.co.uk I get an unhelpful message "error setting nameservers" when I try to set them to ns1.breit.co.uk and ns2.breit.co.uk (breit.co.uk is my CWP hosting domain name, which is on a PlanetHippo.co.uk VPS) at the registrar for that domain (which is 123-reg.co.uk).

If I do "nslookup broadey.co.uk ns1.breit.co.uk" then I get the right answer, so I must be doing something right.

The tutorials and other info are really poor.  The examples talk about setting your CWP nameservers to "n1.centos-webpanel.com" but that seems plain wrong - surely you need to be using the domain name of your CWP host (which in my case is webpanel.breit.co.uk, though I've added A records for ns1 and ns2 at the registrar for that domain).

I used CWP -> DNS Functions -> Edit Nameservers IPs to set them to ns1.breit.co.uk and ns2.breit.co.uk using the public IP address of my VPS.  In CWP -> DNS Function -> List DNS Zones this gives me zones for ns1.breit.co.uk and ns2.breit.co.uk.

I then created an account for broadey.co.uk.  This gives me a zone file broadey.co.uk.db containing
Code: [Select]
broadey.co.uk.      86400      IN      NS      ns1.breit.co.uk.
broadey.co.uk.      86400      IN      NS      ns2.breit.co.uk.
but in line with the instructions in this post I added
Code: [Select]
ns1     14400   IN      A       78.129.139.89
ns2     14400   IN      A       78.129.139.89
and restarted BIND.  None of this has helped.  I still can't set ns1.breit.co.uk as the nameserver for broadey.co.uk at the registrar 123-reg.co.uk.  What is it that the registrar is looking for that I am failing to provide?

Create a glue record for your ns.

Offline
*
Re: How to Setup DNS (BIND) on server
« Reply #17 on: July 26, 2017, 10:08:39 AM »
hi everyone i facing some problems. İ can not use pureftpd and dns. they always failed. when i try to restart ftp the system says

"Job for pure-ftpd.service failed because the control process exited with error code. See "systemctl status pure-ftpd.service" and "journalctl -xe" for details.

and this is how looks like my controlpage.

please someone help me !  :( :( :( :(

simple restart service and run this command from shell to check error you get
Code: [Select]
journalctl -xe
also service status button should give you some additional info.
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

Offline
*
Re: How to Setup DNS (BIND) on server
« Reply #18 on: August 20, 2017, 10:45:12 PM »
It's required that you have installed CentOS WebPanel and 2 IP addresses.


Settings
- DNS Functions --> Edit NameServers IPs
Add here your subdomains you want to use for NameServers and one IP for each nameserver eg.
ns1.centos-webpanel.com --> 185.4.149.83
ns1.centos-webpanel.com --> 185.4.149.90

- Your Main Domain or Subdomains need's to have A record to this server IPs

How to set A Records for Name Servers
1. Create new account on the server with domain name which you will use for nameservers (example: test.com)
2. Edit DNS zone for this domain go to DNS Functions --> List DNS Zones and click on your domain
3. Add records for your nameservers at end of the file:

ns1     14400   IN      A       NS1_SERVER IP
ns2     14400   IN      A       NS2_SERVER IP

example:

ns1     14400   IN      A       120.130.110.122
ns2     14400   IN      A       120.130.110.123
this will create nameservers: ns1.test.com and ns2.test.com

- Setup Shared IP
WebPanel Settings --> WebPanel Settings --> Shared IP


CASE 1
If you have only A record for main domain set to one IP than you need to make new account on this server and add in DNS records subdomains.

CASE 2
If you have at yours domain register set domain records for each subdomain to IP than you are ready to go and you can start adding DNS zones or creating accounts.

Changing DNS records can take up to 24 hours.

For some domain registers you will need to have your server hostname to have A record to NS1 IP:
eg.  myhostname.centos-webpanel.com --> 185.4.149.83

START DNS (BIND) server
go to Service Config --> Chkconfig manager and click "ON" for named service.
now go to index page and start BIND DNS Server by clicking Start



Don't forget that the nameservers must be registered with your domain registrar.

Godaddy Instructions
https://support.godaddy.com/help/article/12317/setting-custom-nameservers-for-domains-registered-with-us?locale=en

Enom Instructions
http://www.enom.com/help/faq_dns.asp

hi, after a few months, i restart my server and now i have this problem:
BIND DNS SERVER is with red and if i pres start i have this message:

Starting named:
Error in named configuration:
zone localhost.localdomain/IN: loaded serial 0
zone localhost/IN: loaded serial 0
zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 0
zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0
zone 0.in-addr.arpa/IN: loaded serial 0
zone ns1.stiriexacte.ro/IN: loaded serial 2013071600
zone ns2.stiriexacte.ro/IN: loaded serial 2013071600
zone stiriexacte.ro/IN: NS 'ns1.stiriexacte.ro' has no address records (A or AAAA)
zone stiriexacte.ro/IN: NS 'ns2.stiriexacte.ro' has no address records (A or AAAA)
zone stiriexacte.ro/IN: not loaded due to errors.
_default/stiriexacte.ro/IN: bad zone
zone deblocari-usi-metal.ro/IN: loaded serial 2013071600
zone deblocareusa.ro/IN: loaded serial 2013071600
zone deblocariusi.tk/IN: loaded serial 2013071600
zone eternity-roleplay.com/IN: loaded serial 2013071600
zone 1gags.com/IN: loaded serial 2013071600
zone 4fun.gq/IN: loaded serial 2013071600
zone 4fun.ml/IN: loaded serial 2013071600
zone 24bet.ml/IN: loaded serial 2013071600
zone 123up.ga/IN: loaded serial 2013071600
zone dcnews.ga/IN: loaded serial 2013071600
zone gamep.ga/IN: loaded serial 2013071600
zone imgshare.ga/IN: loaded serial 2013071600
zone lapescuit.ga/IN: loaded serial 2013071600
zone mediafax.ga/IN: loaded serial 2013071600
zone newsgames.tk/IN: loaded serial 2013071600
zone repapc.tk/IN: loaded serial 2013071600
zone seoboost.ga/IN: loaded serial 2013071600
zone superfilme.tk/IN: loaded serial 2013071600
zone la-rp.ro/IN: loaded serial 2013071600
[FAILED]

Pls help me coz is not first time when it happen and each time i instal the pannel again, why coz until this restart it work good ?