Türkce » WHM cPanel

Setup/Create your own/private nameservers in cPanel

http://forum.whmdestek.com/

Go Back   WHM/cPanel Support Platform » Türkce » WHM cPanel
 

Reply
 
LinkBack (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1  
Old 09.11.07, 00:50
CaLViN's Avatar
Sevgi güctür.
 
Join Date: Apr 2007
Location: Outta nation
Age: 28
Posts: 2,083
Rep Power: 100000
CaLViN has a reputation beyond reputeCaLViN has a reputation beyond reputeCaLViN has a reputation beyond reputeCaLViN has a reputation beyond reputeCaLViN has a reputation beyond reputeCaLViN has a reputation beyond reputeCaLViN has a reputation beyond reputeCaLViN has a reputation beyond reputeCaLViN has a reputation beyond reputeCaLViN has a reputation beyond reputeCaLViN has a reputation beyond repute
Setup/Create your own/private nameservers in cPanel

This guide will show you the ropes in how to setup cpanel nameservers and configure them properly so you can run ns1 and ns2.yoursite.com. Once your nameservers are setup clients can then use your own private nameservers for their domains.

1. Regiser your domain

Register the domain name you would like to use, you can register a domain here if you need one.This domain will be used as your nameservers - eg ns1.yourdomain.com and ns2.yourdomain.com

2. Additional IPs

Have 2 available IP addresses for your server that aren't in use.You will need to contact you provider to obtain these IP addreses.

3. Registering the Nameservers


Now login to your domain management page for the domain you registered and register ns1.newdomain.com and ns2.newdomain.com as nameservers (registries normally have a special facility for doing that). The registry may also have a facility to propogate these nameservers around the foreign registries - if so, you should use this facility.


These registrations may take a few days to propagate (often as many as 3 days).

4. Reverse DNS

You may also need to get your data centre to enter a reverse DNS pointer for your nameservers. You'll need to let them know each nameserver and its IP address. Sometimes you can suffer non-delivery of mail if you don't so this. Reverse DNS pointers can take a while to propagate.
Setup a reverse on the IP address for your domain


5. Broken NDC/BIND

My version of WHM/CPanel came with a broken NDC. To fix this:
SSH into your box as root.
(a) Type: cd /scripts
(b) Type: ./updatenow
(c) Type: ./fixndc
Go back into WHM, go to the Restart Services section in the left menu and click DNS/Nameserver (BIND).
You will need to do this if you start getting 'ndc' errors when you are doing anything DNS related in WHM.


6. Setup Nameservers In WHM

Go into WHM (Web Host Manager) and select Edit Setup from the Server Setup menu on the left. Enter ns1.newdomain.com in the Primary Nameserver field. Hit 'Assign IP Address', then hit 'Add an A Entry for this nameserver'.
Repeat this process for the Secondary Nameserver field.


7. Tidy Up Junk Nameservers

Go into WHM (Web Host Manager) and select Manage Nameserver IPs from the Server Setup menu on the left. Remove any nameservers you don't recognise. This is just a tidy up exercise in case anyone's set anything up on the box before you.


8. Initial Nameserver Setup

Go into WHM (Web Host Manager) and select Initial NameServer Setup from the Server Setup menu on the left. Run this.


9. Restart BIND

Restart BIND (step 7 restarts BIND, but we've known it to need a proper stop and start for it to work) from SSH with:
service named stop
service named start


10. Manual Checks

I don't know what it is about this process, but it doesn't always work, so there are some things you can check manually via SSH.
/etc/wwwacct.conf
Check that the nameservers are correctly specified on NS, NS2 etc.


EG: scroll to the name servers section.....
NS ns1.yournameserver.com
NS2 ns2.yournameserver.com
/etc/resolv.conf

Check that there are nameserver entries for each IP. There may also be one for 127.0.0.1 - this is okay. I'm led to believe (by the 'man' entry for resolv.conf) that this isn't a particularly important file, but I changed mine to read:
domain mybox.com
search mybox.com
nameserver 127.0.0.1
nameserver 111.111.111.111
nameserver 222.222.222.222


Where 'mybox.com' is the main domain of my server, and '111.111.111.111' and '222.222.222.222' are the IP addresses of my primary and secondary nameservers.
resolv.conf is used to lookup names that are not in FQDN format.
/etc/nameserverips
Check that there are entries for each IP acting as a nameserver.


EG:
IPHERE=ns1.yournameserver.com
IPHERE=ns2.yournameserver.com


Thanks to S. Leggett
__________________
1.)Lütfen destek talebinde bulunmak icin özel mesaj ile iletisime gecmeyiniz.
2.)Ücretsiz destek almak icin forum sayfalarimizi kullanmaniz ayni sorunu yasayan diger üyelerin cevaplara en kisa sürede ulasabilmesi ve sizlere yardimci olmak isteyen bizlerin ve diger üyelerimizin zaman kazanmalari acisindan cok önemlidir.
3.)Forumlarimizda sorunlarinizi anlatirken mümkün oldugunca cok detay vermeniz en kisa sürede sorununuza cözüm bulmaniz acisindan mühimdir.

Daha cok ögrenmek ve ögretmek dilegiyle..
Sevgiler..
The Platform.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old 12.06.09, 00:32
Sempron
 
Join Date: May 2009
Location: Döner sandalye.
Posts: 37
Rep Power: 0
tutkun is on a distinguished road
Where is the Turkish?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old 30.06.09, 17:46
KasperSky's Avatar
proturkey.com.tr
 
Join Date: Jun 2008
Location: Kayseri
Posts: 258
Rep Power: 1003
KasperSky has a reputation beyond reputeKasperSky has a reputation beyond reputeKasperSky has a reputation beyond reputeKasperSky has a reputation beyond reputeKasperSky has a reputation beyond reputeKasperSky has a reputation beyond reputeKasperSky has a reputation beyond reputeKasperSky has a reputation beyond reputeKasperSky has a reputation beyond reputeKasperSky has a reputation beyond reputeKasperSky has a reputation beyond repute
Quote:
Originally Posted by tutkun View Post
Where is the Turkish?
you can change
Google ceviri
__________________
Professional IRC DNS Stuff
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old 28.01.10, 06:18
Atari
 
Join Date: Jan 2010
Posts: 1
Rep Power: 0
geek4nyc is on a distinguished road
I am stuck at step 6..
HTML Code:
<pre>6. Setup Nameservers In WHM

Go into WHM (Web Host Manager) and select Edit Setup from the Server Setup menu on the left. Enter ns1.newdomain.com in the Primary Nameserver field. Hit 'Assign IP Address', then hit 'Add an A Entry for this nameserver'.
Repeat this process for the Secondary Nameserver field.</pre> 
When I click on Assign IP Address, a little box pops out and keeps loading with no result..

I put ns1.mydomain.com and ns2.mydomain.com. The nameservers were registered at enom. In fact, when I set the DNS of a domain name with with these nameservers, it works and I can see my nameservers when I whois the domain name a couple hours laters. But when I go back to WHM and create a new hosting account for newdomain.com, the account gets created. But when I type newdomain.com in my browser, nothing happens

Please help!
THANKS!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


LinkBacks (?)
LinkBack to this Thread: http://forum.whmdestek.com/whm-cpanel/782-setup-create-your-own-private-nameservers-cpanel.html
Posted By For Type Date
Nameserver and Named DNS Problems in WHM/Cpanel - Dedicated Serv - DNSstuff Forums This thread Refback 13.02.08 13:43



netinternet

Navigasyon
Menü