LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General
User Name
Password
Linux - General This forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Thread Tools
Old 11-04-2009, 02:53 AM   #1
k_oudom
Member
 
Registered: Aug 2009
Posts: 178
Thanked: 0
How to Create Custom Name Server


[Log in to get rid of this advertisement]
Hi everyone. I bought a web hosting account(cPanel) and I want to create my own name server(ns1 and ns2.mydomain.com). So when I want to host addon domain, I can point them to my name server instead of hosting company name server. Do you know how?
windows_xp_2003 k_oudom is offline     Reply With Quote
Old 11-05-2009, 12:00 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 33,330
Thanked: 182
well you need to learn how to configure and administer the name server of your choice, e.g. bind.
linuxfedora acid_kewpie is offline     Reply With Quote
Old 11-05-2009, 08:16 PM   #3
k_oudom
Member
 
Registered: Aug 2009
Posts: 178
Thanked: 0

Original Poster
I think I don't need to learn about bind because I'm not using the server I installed. I just buy account from hostee. But I know about how to control domain over domain control panel. I understand about record type such as A, NS, CNAME. Can we use domain control panel to create name server ns1 and ns2?
windows_xp_2003 k_oudom is offline     Reply With Quote
Old 11-05-2009, 09:49 PM   #4
jmc1987
Member
 
Registered: Sep 2009
Location: Tampa, FL USA
Distribution: Slackware, CentOS, windows xp
Posts: 181
Thanked: 16
you have to ad name record like

ns1 A exmaple.com
ns2 A example.com
ns1.example.com NS x.x.x.x
ns2.example.com NS x.x.x.x

Somthing like that

Keep in mind if you do this and they take the server down for updates it will take time for your server to comeback online because it has to re propagate. Your host should have redundant DNS another words the have DNS hosted outside of your local server that way if the server goes down when the server comes back up it will be online almost right away and mail will still continue trying as long as their is dns servers available. If the server goes down and DNS is not available a mail server will give up and return the mail.(this is what happens when dns is hosted on the same server.) if you do decide to do this you only need 1 name server. Unless your register will only allow 2+ name servers to be put in their data base.
windows_xp_2003 jmc1987 is offline     Reply With Quote
Old 11-05-2009, 10:18 PM   #5
k_oudom
Member
 
Registered: Aug 2009
Posts: 178
Thanked: 0

Original Poster
Quote:
Originally Posted by jmc1987
ns1.example.com NS x.x.x.x
ns2.example.com NS x.x.x.x
Something I misunderstand. As I know NS record can not point to IP address. If we point to hostee name server, when people whois our name server, they will see hostee name server.
windows_xp_2003 k_oudom is offline     Reply With Quote
Old 11-05-2009, 10:30 PM   #6
jmc1987
Member
 
Registered: Sep 2009
Location: Tampa, FL USA
Distribution: Slackware, CentOS, windows xp
Posts: 181
Thanked: 16
Quote:
Originally Posted by k_oudom View Post
Something I misunderstand. As I know NS record can not point to IP address. If we point to hostee name server, when people whois our name server, they will see hostee name server.
When you set your name servers up at your registar you have to do something like ns1, ns2.

These are subdomains of your domain.
ns1.exmaple.com
ns2.example.com.

Now in order to know where to point these records to they need to know the ip. Now your register is point your name servers to the server the DNS server needs to know what to do with them. So you have to give the name servers an alias record.
windows_xp_2003 jmc1987 is offline     Reply With Quote
Old 11-05-2009, 10:35 PM   #7
k_oudom
Member
 
Registered: Aug 2009
Posts: 178
Thanked: 0

Original Poster
Sorry, I'm not sure if you are explain me related to "NS record can not point to ip address". On the other hand, can do test it on co.cc domain
windows_xp_2003 k_oudom is offline     Reply With Quote
Old 11-05-2009, 10:47 PM   #8
jmc1987
Member
 
Registered: Sep 2009
Location: Tampa, FL USA
Distribution: Slackware, CentOS, windows xp
Posts: 181
Thanked: 16
Your right it should look like this. I had it backward

ns1 A x.x.x.x
ns2 A x.x.x.x
ns1.example.com NS example.com
ns2.example.com NS example.com
windows_xp_2003 jmc1987 is offline     Reply With Quote
Old 11-06-2009, 02:54 PM   #9
wisdom
Member
 
Registered: Feb 2004
Distribution: Fedora 9
Posts: 226
Thanked: 2
check out http://www.dyndns.com/ they might be of use or be helpful as I use them for my home webservice
windows_xp_2003 wisdom is offline     Reply With Quote
Old 11-08-2009, 09:15 PM   #10
k_oudom
Member
 
Registered: Aug 2009
Posts: 178
Thanked: 0

Original Poster
Does any have domain which support creation of ns1 and ns2? Can you make screenshots for me to take a look?
windows_xp_2003 k_oudom is offline     Reply With Quote
Old 11-11-2009, 07:04 PM   #11
jmc1987
Member
 
Registered: Sep 2009
Location: Tampa, FL USA
Distribution: Slackware, CentOS, windows xp
Posts: 181
Thanked: 16
Quote:
Originally Posted by k_oudom View Post
Does any have domain which support creation of ns1 and ns2? Can you make screenshots for me to take a look?
You have to add the ns1 and ns2 at your Registar. then you add them to your server.
windows_xp_2003 jmc1987 is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create a custom MSI on a LAMP server for windows clients? jholovacs Linux - Software 1 06-17-2009 08:33 PM
How to custom create a service Scrag Linux - General 2 02-07-2006 08:50 PM
Create custom CD crimsontide Debian 1 07-21-2005 03:40 PM
how to create a custom installer? bonzai-panthera Linux From Scratch 0 01-19-2004 05:04 AM
create custom log pravash Linux - General 2 10-03-2003 02:48 AM


All times are GMT -5. The time now is 01:21 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration