Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 10-02-2011, 09:48 PM   #1
LQ Newbie
Registered: Oct 2011
Posts: 1

Rep: Reputation: Disabled
Is it possible to run a dns server one IP to host my domain webserver.

Hi all, I'm new to networking. I was wondering if I can run one dns name server to host my domain web server all in one machine? My domain is register at when i try to switch the name servers it asks for 2 name servers. Any ideas?
Old 10-03-2011, 06:56 AM   #2
Registered: Aug 2005
Location: /home/teebones
Distribution: sometimes this, sometimes that..
Posts: 502

Rep: Reputation: 56
You need at least 2 Domain name servers for a domain to operate. That's just how it is. (rules) Officially each Domain name server should be in a different subnet. But it's not required by most.
Reasons for this are mostly, redundancy.

So, to come back to your question:
there are a few scenario's...

- if you have more than one public IP assigned to your connection, you could give your machine both ip's, and than setup the nameserver (both master/slave in one), and make sure changes the DNS server to your IP's.
- If you have only one, you could become the master of the domain, and the slave (i don't think you can set that up through a control panel, and you should ask them to set it up for you (their slave part))
- If you have only one, you could keep the DNS at and change the dns records within the zone, pointing them to your ip, instead of theirs. e.g.
<yourdomain.tld>.   IN A <yourip>
<subdom> IN A <yourip>
<yourdomain.tld>.   IN      MX  10 subdom
etc etc etc
hope this helped you answer your question.

Oh and one thing:

make sure you are allowed to host services on your internet connection. (not every provider allows it.)
And make sure the ports you need are open to the outside world (some providers block e.g. port 80, 21 and 25 (http, ftp connection and smtp respectively))

Last edited by teebones; 10-03-2011 at 10:05 AM.
1 members found this post helpful.


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
Having a dns server and Webserver on the same machine mlandvo Linux - Newbie 1 09-03-2010 05:20 AM
Sendmail vs host.domain, featuring DNS /dev/me Slackware 2 09-09-2008 12:28 AM
Setting up a DNS Server for the webserver bsctov Linux - Networking 3 08-27-2008 08:38 PM
LXer: Host Your Own Domain and Webserver using Apache LXer Syndicated Linux News 0 07-14-2006 10:21 PM
Internal DNS server / Webserver MightyCranium Linux - Networking 6 04-02-2003 01:17 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:14 PM.

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