Web Hosting Forum | Lunarpages
News: July 14, 2008 - New Contest! - Submit Your WordPress Theme Designs, Win BIG!
June 30, 2008 - Submit Your Site for the July 08 Site of the Month Award!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 25, 2008, 05:43:33 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Setting up Private Nameserver with Cpanel  (Read 7965 times)
eLi
SysAdmin Supervisor
Trekkie
*****
Offline Offline

Posts: 17


« on: May 03, 2005, 09:59:32 AM »

This will allow your site to point to your own nameservers: ns1.yoursite.com and ns2.yoursite.com.

1. Registering domain (if you don't have one already)
Register your domain if you do not have one.  This domain will be used as your nameserver.  (eg. ns1.domain.com and ns2.domain.com)

2. Will need 2 available IPs
Lunarpages provides 2 IPs with the dedicated server.  One is for the server itself and one of the nameservers, and the other IP can be used for the other nameserver. You can have your primary domain and one nameserver both on the same IP address.

3. Register the nameservers.
You will need to contact your registrar to register your domain as a nameserver.  In most cases, you can login to your domain management page to set this up.  An example can be found at the following link: http://www.webhostingtalk.com/showthread.php?s=&threadid=237604

note: registrations can take up to 3 days to propagate.

4. Fix NDC
SSH into your server as root and run the following:
/scripts/updatenow
/scripts/fixndc

In WHM, restart DNS/Nameserver (BIND) - it is on the left window pane.

5. Setup nameservers in WHM
In WHM, select Basic cPanel/WHM Setup near the top in the left window pane.
Set the Primary Nameserver to ns1.yourdomain.com (the domain you registered).  Then click Assign IP Address.  Repeat this for the Secondary Nameserver section, using ns2.yourdomain.com.

On the bottom of the page, click Save.

note: the IPs will be set incorrectly, this must be changed in shell

6. Edit files in Shell
SSH into your server as root and open the following 2 files and edit (you can open a file using nano).  Check the key below.

file 1 - type:
nano /etc/resolv.conf
The file should be edited to look like this:
     domain yourdomain.com
     search yourdomain.com
     nameserver 127.0.0.1
     nameserver IP1
     nameserver IP2

Save (ctrl+o and enter) and close the file (ctrl+x).

file 2 - type:
nano /etc/nameserverips
The file should be edited to look like this:
     IP0=0
     IP1=ns1.yourdomain.com
     IP2=ns2.yourdomain.com

Save (ctrl+o and enter) and close the file (ctrl+x).

Keys used  above is explained below,

IP0=server ip
yourdomain = main domain of your server
IP1 = ip of nameserver 1
IP2 = ip of nameserver 2
ns1.yourdomain.com = nameserver 1 that you registered
ns2.yourdomain.com = nameserver 2 that you registered

7. Setup nameservers in WHM - final
In WHM, select Basic cPanel/WHM Setup near the top in the left window pane.
Set the Primary Nameserver to ns1.yourdomain.com (the domain you registered).  Then click Assign IP Address (should be the correct IP now).  Then click Add an A entry for this nameserver.  Repeat this for the Secondary Nameserver section, using ns2.yourdomain.com.

On the bottom of the page, click Save.

In WHM, select Manage Nameserver IPs.  You should see the correct 2 IPs and 2 nameservers.

8. Reboot server
SSH into server as root and type: reboot
When the server comes back and is set to your liking, you will have to contact your registrar and point your domain to your nameservers.  Until then, your domain will not point to the dedicated server.


Thanks to the following sites for reference:
http://www.webhostgear.com/11.html
« Last Edit: October 10, 2007, 03:01:27 PM by Danielle » Logged
thegreekrow
Trekkie
**
Offline Offline

Posts: 16


« Reply #1 on: April 20, 2006, 12:05:07 PM »

I just sign up for a dedicated account, and I changed my openSRS data to point to ns1.thegreekrow.com and ns2.thegreekrow.com with the correct IPs and everything.
I was looking through my server, and realized that resolv.conf file already existed, but not the nameserverips file. Do I need to create that file?!

as for the last step, how can i do that with webmin?
Logged
stephan
Berserker Poster
*****
Offline Offline

Posts: 5587



WWW
« Reply #2 on: April 20, 2006, 01:40:22 PM »

Hi,

This tutorial is for setting up private nameservers with Cpanel.

From your other posts, I guess you are using Webmin, which doesn't have the nameserverips file (and doesn't need it)

When we hand over the Webmin servers they typically are setup with nameservers running for your private domain.
Logged

thegreekrow
Trekkie
**
Offline Offline

Posts: 16


« Reply #3 on: April 21, 2006, 10:08:48 AM »

So.. if I have completed the aforementioned steps, am I ok? do i need to do anything else? I made the changes a little over 24 hours ago, and I know it takes 3 days to propagate, but i dont want to wait 3 days to find out that i screwed up.
So, I have webmin. what else do i need to do?!

What bothers me is that in my BIND DNS Server > thegreekrow.com Master DNS Zone, there is nothing.  By nothing i mean that there are no nameservers loaded. (screenshot attached)


* dns-webmin.gif (67.92 KB, 640x461 - viewed 2135 times.)
« Last Edit: April 21, 2006, 10:15:40 AM by thegreekrow » Logged
stephan
Berserker Poster
*****
Offline Offline

Posts: 5587



WWW
« Reply #4 on: April 21, 2006, 01:29:01 PM »

You might need to create an A record. It looks blank to me.

You can check if your nameservers are working by using this tool http://centralops.net/co/NsLookup.vbs.asp

Put your domain in one box and ns1.yourdomain in the other box.

If you have trouble, please check out the Webmin documentation, or contact our support. We can't really help through the forum.
Logged

thegreekrow
Trekkie
**
Offline Offline

Posts: 16


« Reply #5 on: April 21, 2006, 11:21:14 PM »

I have created a support ticket. The only problem is that the standard turn around time is 24 hours for a single question, and the answers arent very specific... I expected more from the people who claimed to be the #1 in customer support...
Logged
thegreekrow
Trekkie
**
Offline Offline

Posts: 16


« Reply #6 on: April 21, 2006, 11:37:36 PM »

So, I have found the following: http://www.premianet.com/english/tutorials/dedi-webmin.phtml

Do these look like the appropriate steps to create a name server, cause i just followed them.
Logged
stephan
Berserker Poster
*****
Offline Offline

Posts: 5587



WWW
« Reply #7 on: April 23, 2006, 10:31:28 AM »

I have created a support ticket. The only problem is that the standard turn around time is 24 hours for a single question, and the answers arent very specific... I expected more from the people who claimed to be the #1 in customer support...


Webmin is meant for people who are experienced Linux administration, our support doesn't necessarily cover this. It depends on your definition of "managed hosting" When we hand over the webmin servers they come pre-configured with private nameservers setup already, so as long as you don't make any changes, it will be fine.

If you have made a mistake, please contact support and we can check over it for you. Our managed hosting doesn't have to include this though, managed hosting includes monitoring of your server, security updates to the control panel etc. We set up private nameservers for you as a convenience to get you started, however, if you change the configuration, you can contact support and we can put it back again, although this isn't something we would officially have to do as part of the managed hosting.
« Last Edit: April 23, 2006, 10:36:07 AM by stephan » Logged

thegreekrow
Trekkie
**
Offline Offline

Posts: 16


« Reply #8 on: April 23, 2006, 12:53:16 PM »

Well, thats the thing, the name servers were not setup. Which means the config was left to me. I can take care of pretty much any other aspect of my server, but I have never had to deal with nameservers before....
as for as technical support, the answers have been vague and short. If the turn around time is 24 hours, maybe the tech support should answer questions with a little more detail, which would reduce the amount of repeat questions, and thereby reduce turn around time.

Update: So, tried to call tech support during working hours. Got forwarded to a mailbox, which in turn hung up on me while I was trying to leave a message. Yeah, me not so happy. Are you telling me that this wouldnt be an issue if I had cPanel?!
« Last Edit: April 23, 2006, 01:10:52 PM by thegreekrow » Logged
stephan
Berserker Poster
*****
Offline Offline

Posts: 5587



WWW
« Reply #9 on: April 24, 2006, 03:51:30 PM »

Hi,

The turnaround time on average is much less than 24 hours.

The nameservers should always be setup, I apologise if this wasn't done on your server.

As for the mailbox, I guess you could call back, I don't know why you were disconnected because I can't trace the call.

Cpanel is a lot easier to set up and the instructions above are for Cpanel, so in a way yes, it would have been easier, as the instructions are above. We can send you out instructions on creating nameservers on Webmin if you don't have them yet, just e-mail support.
Logged

thegreekrow
Trekkie
**
Offline Offline

Posts: 16


« Reply #10 on: April 24, 2006, 04:39:52 PM »

Ok, i think i figured out where I screwed up. I was contacting support@lunarpages.com through lunarpages.com/support.php. I just recently called and talked to someone, and I was directed to dedicated@lunarpages.com and dedicated@lunarpages.com. So, I think I was going to the wrong people about the problem, which might have caused the delay. Now im just sitting and waiting for my server to come back up from that massive outage to contact them again and figure out what is going on with my nameservers....

So, note to all: if you pay for a dedicated server, go to dedicated@lunarpages.com =)
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM