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

0 Members and 1 Guest are viewing this topic.

Offline
*
How to Setup DNS (BIND) on server
« on: December 24, 2013, 07:17:27 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
« Last Edit: January 04, 2015, 01:07:18 AM by Administrator »
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
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 #1 on: September 17, 2014, 06:41:06 AM »
tks worked for me

Offline
*
Re: How to Setup DNS (BIND) on server
« Reply #2 on: October 02, 2014, 06:42:42 PM »
Hello i can't start bind i get this error log

Code: [Select]
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 whoisinfo.biz/IN: loaded serial 2013071600
zone cursuri.pw/IN: NS 'ns2.cursuri.pw' has no address records (A or AAAA)
zone cursuri.pw/IN: not loaded due to errors.
_default/cursuri.pw/IN: bad zone
[FAILED]


and my default domain dns zone is

Code: [Select]
; Panel %version%
; Zone file for cursuri.pw
$TTL 14400
cursuri.pw.      86400        IN      SOA     ns1.cursuri.pw. darius@boun.cr. (
         2013071600      ; serial, todays date+todays
                86400           ; refresh, seconds
          7200            ; retry, seconds
            3600000         ; expire, seconds
           86400 )         ; minimum, seconds

cursuri.pw. 86400 IN NS ns1.cursuri.pw.
cursuri.pw. 86400 IN NS ns2.cursuri.pw.

ns1     14400   IN      A   x51.x36.x9.1x0
ns1     14400   IN      A   x51.x36.x9.1x0

cursuri.pw. IN A x51.x36.x9.1x0

localhost.cursuri.pw. IN A 127.0.0.1

cursuri.pw. IN MX 0 cursuri.pw.

mail IN CNAME cursuri.pw.
www IN CNAME cursuri.pw.
ftp IN CNAME cursuri.pw.
; Add additional settings below this line

Offline
*
Re: How to Setup DNS (BIND) on server
« Reply #3 on: October 03, 2014, 09:53:41 PM »
looks like you have missing ns2 entry for your nameserver
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
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 #4 on: October 04, 2014, 03:42:21 AM »
looks like you have missing ns2 entry for your nameserver

And how should be set can you show me where inside the dns templete to add it and how

Offline
*
Re: How to Setup DNS (BIND) on server
« Reply #5 on: October 05, 2014, 03:30:03 AM »
you can check any tutorial for Bind9

example (add at end of the file)
Code: [Select]
ns1  14400   IN      A       183.4.123.120
ns2  14400   IN      A       183.4.123.120
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
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 #6 on: February 21, 2015, 01:09:09 AM »
It's required that you have installed CentOS WebPanel and 2 IP addresses.

...

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.

This is a little vague.  Do you mean that you can have one IP address as long as you set up your nameservers as subdomains of an "A" record on the webserver where CWP is installed?
« Last Edit: February 21, 2015, 01:11:38 AM by tim@thatpctech »

Offline
*
Re: How to Setup DNS (BIND) on server
« Reply #7 on: March 10, 2015, 07:43:34 PM »
nameservers can be set on one IP address, you can check this example

ns1  14400   IN      A       183.4.123.120
ns2  14400   IN      A       183.4.123.120

However, don't forget to register them with your domain registrar.
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
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 #8 on: August 14, 2015, 06:00:04 PM »
as well as your IP ?! IP my VPS I see in digitalocean? or my ip internet?
ifconfig in the terminal:
inet addr: 48.68.41.4 Bcast: 26.86.61.255
inet addr: my ip VPS
///calm: IP values ​​fake, i modify to post here.

It is for me to repeat the same IP ?? !!
ns1.myrealdomain.com   IP: 48.68.41.4?    ///this IP my VPS ,  each VPS has only one IP !! i can repeat ??
ns2.myrealdomain.com   IP: 48.68.41.4?

same IP for NS1 and NS2?

I need to get? :
ns1.digitalocean.com   which IP?
ns1.digitalocean.com   which IP? can be equal ns1 and ns2?

too confused, because each site teaches in a different way, the site ofical hundreds forum web panel says that each site should put a different IP:

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

and many sites say to put our own IP? and so long a ?? !! each VPS has only one IP !! i can repeat ??

and those IPs that ofical forum inserts? IPs are random? created in the time of our imagination? !!

and because this service is stopped and does not accept that I start?
DNS Server BIND named is stopped

I use debian and fedora and the many years with frequent use of the command line, installed LEMP + wordpress via ssh the terminal, the site was in the air, but without security and without any services mail. and saw that there were many in scripts and issues the same to operate without CP ... then I heard that the web hosting panels already bring with auto installer with the necessary tools for security and mail services. I exclude my VPS and start a new clean instalation with centos 6 I'm starting the CWP and hopefully understand it well.

I ADD domain on the digitalocean control panel. and configured all DNS table there. would not that be the problem? conflicts my table it with this DNS table digitalocean because I create it and add server domain name and set up the table for that domain name in the digitalocean panel ... so he could use the VPS to install hundreds web panel, but now it .. DNS go, DNS here? !! what to do in the middle of so many IPs and DNS if so have an IP is the IP of my droplet (VPS)

I Nothing know about servers. :(  :-[

I can not send or receive email! not arrive at the destination when sending or arrives in my box when I receive.
« Last Edit: August 14, 2015, 08:29:47 PM by herculesnetwork »

Offline
*
Re: How to Setup DNS (BIND) on server
« Reply #9 on: August 14, 2015, 08:23:09 PM »
I created several DNS entries hoping to make the BIND work, and my emails arrive at destinations and arrive in my box, but there is no option in the panel to remove the DNS? !! why? and how do I delete these entries?



« Last Edit: August 14, 2015, 08:34:37 PM by herculesnetwork »

Offline
*
Re: How to Setup DNS (BIND) on server
« Reply #10 on: August 14, 2015, 10:59:59 PM »
Solved the problem not bind the start, I was in a hurry had created a subdomain in the ability to create fields, and then created a field that did not exist and was giving error.

but I need to delete that pile of DNS entries and I find resources on the web hundreds panel to delete them!

and also need to send and receive email and ta giving error in sending and not also receive MESSAGES at all!
SMTP Error (-1) error in the connection to the server

Offline
*
Re: How to Setup DNS (BIND) on server
« Reply #11 on: August 16, 2015, 10:02:43 PM »

What I do to be able to receive and send emails hosting a site on a VPS DigitalOcean?

I already instalai one LAMP + wordpress via comand line, and use debian fedora / a hundred years, since the command line give me better in the intermediate, adminstrava my website without using a control panel, until a hosting week in my VPS drop came across the security issue and the situation of emails, I can not send and receive email without having a mail server (Postfix) and SMTP server (dovecot) and for messages do not go to spam DKIM key (opendkim) not consigui run, segugurança with spammers and (clamv), firewall (CSF) the maiximo I got was receiving email.
so I did extensive research and found that most of the panels of already controls auto install these packages, I did a check and found VestaCP, Ajenti, Webmin-virtualmin, then I encounter CWP - CONTROL WEB PANEL, hundreds web panel, very simple, I found that the more robust cpanel, and already comes with everything anyone could imagine the area in need one day, so make it a heavy panel that uses on average 30% ram, but has a very friendly interface and even robust! does everything and then some, and it is opensource as well as others who have not tested! the CWP activated cheve Kdim and SPF in a Click! amazing! firewall with pre very good settings! I loved it! but also can not send and receive mail!
the manual is very ambiguous, with many interpretations in a lot that say, horrible! I ask in the forum but no one responds, inclusive on the official forum.
I suspect that is the DNS settings that already heard that prevents e-mail services work! then do not understand, we have two tables to configure, DNS table in OF panel and table in CWP! which set?
I think all my ta problem in the DNS settings, I nonsense, everybody teaches in a different way on the Internet, as if no one know in reality and create of nowhere. never needed I give it with accommodations that hired because so need digital server name of the new company in the former company panel: ns1.hostingenterprise.com ns2.hostingenterprise.com and PRINTO. 24 My site is pointing to a new server in another hosting company, simple and always solve all about emails and safety for the hosting support always took care of everything.
teach point on DNS CWP in the following ways:

absurdam way to teach:
http://www.4shared.com/download/d6cOSU1uba/cwp-name-server-semlogica.png?lgfp=3000

It has no logic at all, the guy that site ta saying we use to IPs examples shown in own CWP panel! IPs are non-existent! are not ours, nor are there!

another worst-case sites are saying to use our real domain!

ns1.myrealdomain.com // our IPs! as well as our IPs! each VPS has an IP!
ns2.myrealdomain.com // our IPs! as well as our IPs! each VPS has an IP!

then I saw a crazy woman teaching do with our real domain and our real IP repeated! in both fields ns1 and ns2 !!

http://www.4shared.com/download/8FDZ9FiPce/cwp-edit-ns-dica-doida-IPs_igu.jpg?lgfp=3000

the official site for CWP says we use our DNS and our use their domain as an example! and it is understood that is to use our domain at the time of set up and to say we use a IPs for each name server ?! what do you mean ?? !! if every domain so has our IP! and on the internet teach use the fictitious IPs that the panel shows as an example in front of ns1 and ns2 created with domains of them! but IP does not exist! we only have one IP for each VPS! each domains only have one IP! how I can follow in the footsteps of CWP using an IP to each server name!

And strangest ..'ve seen people using localhost (127.0.0.1) in both NS1 and NS2!

the severe case of person teaching to use the hypothetical IPs that the panel shows as an example! 1

there already thought of using digital DNS ocean:
ns1.digitalocean.com
ns2.digitalocean.com // but do not know which IPs to use the official forum says to use our own IP and each domain name we use our own IPs, but I can repeat ?!
ns1.digitalocean.com // droplet of IP.
ns2.digitalocean.com // Repeat the IP Droplets ?!

but how could use the Digital ocean that CWP DNS settings if everyone says so I use my main domain !! and how can I fix two DNS to IP invented at the time! ns1 and ns2 with my domain! I will invent this IPs with my imagination ?!

My fully configured server with a few clicks:
http://www.4shared.com/download/oE0ScCzQba/meu-servicos-ok333.png?lgfp=3000

My fully configured DKIM keys:

http://www.4shared.com/download/JgDqExrHba/dkim-manager-activate333.png?lgfp=3000

because it does not work e-mail services ?!

I do not understand the instructions:
http://forum.centos-webpanel.com/dns/how-to-setup-dns-%28bind%29-on-server/

and when I create my DNS prorios, I will not be using more of the DO ?!
ns1.digitalocean.com
ns2.digitalocean.com

I am obliged in my CWP panel? can not the names digital digital servers ocean in these fields?

if I create my DNS with ns1.mydomain.com and ns2 ....
I will not be using the digital ocean table settings?

and if I cirar as everyone says to do. ns1.mydomain.com and ns2.mydomain.com have to wait 24 hours or more in order to propagate the server names? work emails ??

I do not wish to use Iremail poque my CWP is already 90% configured. and whether it would be possible to use Iredmail with a panel that already install everything the IRedmail also installs without giving conflicts?


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 #12 on: August 18, 2015, 05:45:28 PM »
Resolved, I am now sending emails, ignored this feature edit name server and nothing did it. lacked the digital ocean unlock my door 25 which is the standard in use SMTP, I found absurd, suffered for 20 days for not notifying them that, not cstava nothing they warn the automatic email we send root access provisiorio how we create a VPS . in a sentence could tell that lock the door by default. I was about to give up having my vps and also use cwp the fault of cluelessness logic of digital ocean, I suggested them to do: these VPS by default starts with smtp locked door, solicitie unlock.
the automatic email does not cost anything, as already fear one domain added to the OF panel using ns1 ns1 and them, so I ignored this feature edit name server, and noticed that the CWP panel has an optimal preconfiguration, and already preconfigured with essences packages, loved the panel.

Offline
*
Re: How to Setup DNS (BIND) on server
« Reply #13 on: February 04, 2017, 12:52:50 AM »
Hello,

How you handled your problem?

I need help who is using Digital Ocean + Centos Web Panel for DNS settings.

If you can send screenshoot from your Digital Ocean, Centes Web Panel and your domain company's nameserver settings, will be great.

I tried more than 3 days but still it doesnt work.

My problem,

Domain: abc.com
my hostname: server.abc.com

Abc.com doesnt work, reason : DNS problems.. But subdomain demo.abc.com works.
Also, ns1.abc.com working.
And which other domains in digital ocean Vps server, ex. 123.com, 345.com  etc. working.

So where I missed?

When i check intodns show everything is okey.

How can I handle with it?

I use,
- Centos 6
- 1 IP
- Centos Web Panel
- Digital Ocean VPS

Offline
*
Re: How to Setup DNS (BIND) on server
« Reply #14 on: April 20, 2017, 08:11:53 AM »
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?