LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-04-2012, 11:44 AM   #1
mravatar3
LQ Newbie
 
Registered: Feb 2011
Posts: 10

Rep: Reputation: 0
Nameserver Question


Hello everyone,

I have a problem with my domain and I don't know how to get this worked. I have bought a domain from the netherlands and I have setted up my own web server. At my domain control panel I am only able to change the nameserver and I could not set up dns. I use external dns to redirect to my server, but is there a way to create nameserver on my webserver? (centos?)

Thanks in advance!
 
Old 06-04-2012, 12:58 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
There are nameserver packages that can be added to Linux. The most common is BIND which runs the named daemon. Whether it should be on the same server as your web server depends a lot on how much traffic you expect.

Also I wasn't sure if I understood your question properly. Are you wanting to be able to resolve what is on your external nameserver from your web server? If so you would simply modify the /etc/resolv.conf so it knew where the external name server was. (Of course you also have to allow outbound traffic to port 53).

On the other hand if you want to have an internal name server you can do that using BIND or one of the other open source nameservers. It depends a lot on how much you want to find. If the only thing looking for records on the web server are the web server itself you might just want to edit /etc/hosts to add the entries you want. Separate nameservers are typically things you want to do when you have multiple systems that you wish to use the nameserver. You can modify /etc/nsswitch.conf to look at "files" (/etc/hosts) before "dns" (BIND or other nameserver). That way any entry in your /etc/hosts file would be used first and if not there then it would look at what you had configured in /etc/resolv.conf.

Typing "man nsswitch.conf", "man hosts" and "man resolv.conf" should give you information on the 3 files.

Setting up BIND would be something you'd want to check for your distro as it may have precanned packages you can install to get going quickly.

English note: The past tense of set is set rather than setted. It is an irregular verb.
 
Old 06-04-2012, 01:03 PM   #3
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
Quote:
Originally Posted by mravatar3 View Post
Hello everyone,

... but is there a way to create nameserver on my webserver? (centos?)
Of course, that's what servers are meant to do
- example
- another example

but you could / would be able to maintain it only if you have a static IP where your server is connected to internet.
Then you will need to point the DNS servers IP's in your domain control panel to be the IP of your own server...

For example:
- you have your domain registered at some Domain registrar and it has options to set IP's (or names) of the DNS servers - like ns702.godaddy.com, ns703.godaddy.net
- then these two servers need to have the Domain zone records set (which is what you can have on your own server) to point to addresses, for example www.mydomain.net -> IP: 11.22.33.34 etc.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
No Nameserver found - Nameserver (DNS) failure EPS Linux - Networking 10 01-14-2012 09:11 AM
Nameserver help kshazad86 Linux - Server 4 04-15-2011 03:52 PM
How would one specify one's own nameserver? RandomTroll Linux - Networking 2 08-19-2010 10:08 PM
Question about the nameserver? your_shadow03 Linux - Newbie 10 09-02-2009 06:16 AM
nameserver question r.stiltskin Linux - Networking 4 08-11-2004 04:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:39 AM.

Main Menu
Advertisement
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
Twitter: @linuxquestions
Open Source Consulting | Domain Registration