Author Topic: How to Setup DNS (BIND) on server  (Read 196180 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 ?

Offline
*
Re: How to Setup DNS (BIND) on server
« Reply #19 on: November 06, 2017, 12:54:48 PM »
I have done

- DNS Functions --> Edit NameServers IPs
- set A Records for Name Servers
- Setup Shared IP

and I see this

ns1.test.com resolves to
ns2.test.com resolves to

When i use my nameservers  on godaddy they says

The modifications you requested for the domain tempo4transport.in have failed.

Error: Object does not exist


Offline
***
Re: How to Setup DNS (BIND) on server
« Reply #20 on: November 07, 2017, 05:33:45 AM »
Is this your IP address in the A records?
Code: [Select]
[root@server ~]# dig NS tempo4transport.in

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.62.rc1.el6_9.4 <<>> NS tempo4transport.in
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 23467
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 2

;; QUESTION SECTION:
;tempo4transport.in.            IN      NS

;; ANSWER SECTION:
tempo4transport.in.     86385   IN      NS      ns2.tempo4transport.in.
tempo4transport.in.     86385   IN      NS      ns1.tempo4transport.in.

;; ADDITIONAL SECTION:
ns2.tempo4transport.in. 86385   IN      A       64.237.56.119
ns1.tempo4transport.in. 86385   IN      A       64.237.56.119

;; Query time: 274 msec
;; SERVER: 192.168.1.102#53(192.168.1.102)
;; WHEN: Tue Nov  7 07:32:02 2017
;; MSG SIZE  rcvd: 104

[root@server ~]#
If yes, then you are ok. If no - you have problem.
UNIX is a very simple OS, but you have to be a GENIUS to understand it ...

Offline
*
Re: How to Setup DNS (BIND) on server
« Reply #21 on: November 08, 2017, 12:49:13 AM »
I faced the same BIND DNS Server Error. But stopping the service and then starting again fixed it. Altough the DNS Server running but my custom nameservers are still not working.

Offline
*
Re: How to Setup DNS (BIND) on server
« Reply #22 on: November 30, 2018, 09:44:41 PM »
How to configure if I have only one IP?

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

Offline
*****
Re: How to Setup DNS (BIND) on server
« Reply #23 on: April 03, 2019, 07:36:08 AM »
Hi,

Quote
How to configure if I have only one IP?

Just use one IP and your NS's.
You can ask me to solve any problem with your server for some money in pm  ;)
Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor
Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: How to Setup DNS (BIND) on server
« Reply #24 on: April 24, 2019, 10:18:15 AM »
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


In Latest version of CWP, the hostname url can't accessible via web even i create manually A records and there is no dns error , i have checked dns status using
# systemctl status named

It is okay , So how do i resolve the issue . Suppose your parent domain is datahead.biz and required records is missing on   /etc/named.conf

Below the line is missing :
66 // zone datahead.biz
67 zone "datahead.biz" {type master; file "/var/named/datahead.biz.db";};
68 // zone_end datahead.biz


To get the Proper Solutions: follow the Step 3: DNS
Part 1 : How to Configure DNS properly for CentOS WebPanel on CentOS 7.6
Part 2 : How to Configure DNS properly for CentOS WebPanel on CentOS 7.6
Part 3 : How to Update ROOT Hints DNS ?
Part 4 : How to hide Nameserver software version on Centos 7

Offline
*
Re: How to Setup DNS (BIND) on server
« Reply #25 on: August 24, 2019, 08:09:45 AM »
Thank you so much for this great tutorial, it worked for me.
Cheapest Web Hosting $4.99 Yearly - FREE SSL, Daily Backups, Wordpress Auto Installation, Cpanel and all other premium features.

Offline
*
Re: How to Setup DNS (BIND) on server
« Reply #26 on: March 06, 2020, 11:16:13 AM »
Hi, sorry for asking. I’m a newbie and I forgot to add name servers. But if I create name servers after I create user account. Can I add the new name servers afterwards now to the user account? It looks like I can open the settings for the user account, but will that work?

Offline
*****
Re: How to Setup DNS (BIND) on server
« Reply #27 on: March 06, 2020, 11:28:31 AM »
yes you need to change some DNS entries like ns of domains after you changed the name servers.

Offline
*
Re: How to Setup DNS (BIND) on server
« Reply #28 on: March 07, 2020, 09:39:04 AM »
But after I have set new DNS and I’m trying to point a domain from an other domain provider to my server to this DNS, that doesn’t working.

Offline
*****
Re: How to Setup DNS (BIND) on server
« Reply #29 on: March 07, 2020, 01:27:47 PM »
unfortunately i don't know what you're doing and what is wrong, if you're unable to find the issue it is better to contact our support service.