Control Web Panel
WebPanel => DNS => Topic started by: Administrator 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
-
tks worked for me
-
Hello i can't start bind i get this error log
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
; 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
-
looks like you have missing ns2 entry for your nameserver
-
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
-
you can check any tutorial for Bind9
example (add at end of the file)
ns1 14400 IN A 183.4.123.120
ns2 14400 IN A 183.4.123.120
-
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?
-
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.
-
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.
-
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?
(http://www.4shared.com/download/YiRShVPBce/entrada-dns-deletar-edited2.png?lgfp=3000)
-
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
-
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
-
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.
-
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
-
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
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
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?
-
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.(https://i.hizliresim.com/VM53NB.png)
please someone help me ! :( :( :( :(
-
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
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
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.
-
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
journalctl -xe
also service status button should give you some additional info.
-
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 ?
-
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
-
Is this your IP address in the A records?
[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.
-
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.
-
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
-
Hi,
How to configure if I have only one IP?
Just use one IP and your NS's.
-
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 (https://www.awsmonster.com/2019/01/cwp-dns-part-1-how-to-configure-dns.html)
Part 2 : How to Configure DNS properly for CentOS WebPanel on CentOS 7.6 (https://www.awsmonster.com/2019/01/cwp-dns-part-2-how-to-configure-dns.html)
Part 3 : How to Update ROOT Hints DNS ? (https://www.awsmonster.com/2019/01/how-to-update-root-hints-dns.html)
Part 4 : How to hide Nameserver software version on Centos 7 (https://www.awsmonster.com/2019/01/how-to-hide-nameserver-software-version.html)
-
Thank you so much for this great tutorial, it worked for me.
-
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?
-
yes you need to change some DNS entries like ns of domains after you changed the name servers.
-
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.
-
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.
-
I wanted to know one thing. I have created two nameservers but I don't understand how and which IP addresses I have to associate.
can you give me directions?
-
Hello,
When i add a new domain, that responde to network ip, how can resolve that?
; Generated by CWP
; Zone file for example.pt
$TTL 14400
@ 86400 IN SOA ns1.example.agency. postmaster.example.pt. (
2020070947 ; serial, todays date+todays
3600 ; refresh, seconds
7200 ; retry, seconds
1209600 ; expire, seconds
86400 ) ; minimum, seconds
@ 86400 IN NS ns1.example.agency.
@ 86400 IN NS ns2.example.agency.
@ IN A 172.30.0.1
localhost.example.pt. IN A 127.0.0.1
@ IN MX 0 example.pt.
mail 14400 IN CNAME example.pt.
smtp 14400 IN CNAME example.pt.
pop 14400 IN CNAME example.pt.
pop3 14400 IN CNAME example.pt.
imap 14400 IN CNAME example.pt.
webmail 14400 IN A 172.30.0.1
cpanel 14400 IN A 172.30.0.1
cwp 14400 IN A 172.30.0.1
www 14400 IN CNAME example.pt.
ftp 14400 IN CNAME example.pt.
_dmarc 14400 IN TXT "v=DMARC1; p=none"
@ 14400 IN TXT "v=spf1 +a +mx +ip4:172.30.0.1 ~all"
-
This Standard fix process was useful and fixed my problem also,when i Controlled Named.conf i found out that there where some incomplete records in this file out of standard format like :
tahead.biz
zone "datahead.biz" {type master; file "/var/named/datahead.biz.db";};
// zone_end datahead.biz
and these kind of records made bind server fail to start.as i deleted and corrected this records in file, Bind Server Started normally.
for experience and addressing the issue :
problem started when i changed Host name,and deleted former host name record in DNS Zone, Bind Sever started to fail.
Thanks for Sharing knowledge.