Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Edit: Main questions - How do you setup Nameservers? Do I have to setup the DNS, if so, how? I just want to be able to type in and have it point to my server here locally. I don't know which configuration files I have to change to achieve that. I just know that I have to specify nameservers at the domain, so that requests to that domain, send it to the server that holds the sites(My Server).

I've been trying to setup an unused Ubuntu(11.04?) server we have to use as a webhost(Just our business sites to cut costs) but i'm kind of stuck on how to do so. I have the standard apache,php, mysql stuff installed, and i've installed WebMin, which all appears to be working.

What i'm stuck on now is the whole Nameserver/DNS bit. Trying to get my head around it has been difficult. They seem like the same thing, but one is a subset of the other? Or they're dependent on each other, i.e. DNS refers to Nameserver to get it's information. My questions are: We only have one additional IP Address, can a server be setup as a webhost with only 1 IP? How do I change the servers IP? Right now it's just connected to our network as if it were another computer.

In my experience, all hosts have always given two Nameserver IP's, usually sequential, like and which are set in the domain as How do you create the nameservers for your server? DNS appears to be a file in /etc/bind/named.conf and named.conf.local. Is this a package i'll have to install? What order should I do all of this in? Can all of this be put onto one server?

Thanks in advance for any help or suggestions offered.

share|improve this question

closed as off topic by mulaz, mdpc, Alex, Ward, Magellan Jan 5 '13 at 0:45

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

Are you asking how to setup and configure a nameserver? Too many questions, try boiling it down to just one. – h0tw1r3 Jan 3 '13 at 16:11
Usually a system acts as a DNS client asking some nameservers (listed in /etc/resolv.conf) the resolution hostname -> IP. Some system can act as DNS servers, in this case a specific daemon is needed. Are you sure that you want to run your own DNS server? – marcoc Jan 3 '13 at 16:12
@h0tw1r3 I've updated my post, my specific questions should be more clear now. :) And marcoc, I'm not sure if that's what I need? I was just under the impression that I had to have a DNS on my server in order for requests to specific domains on my server to be resolved. – Jonathan Jan 3 '13 at 16:31

Can you answer following questions:

  1. Do you have any registered domain name for this?
  2. Do you have any public IP?

If answer to any of the above question is "NO", you can't do anything without it.

If you just want a demo site which resolves in your machine only, you can use /etc/hosts file in Unix and C:\Windows/system32/drivers/etc/hosts file in Windows

share|improve this answer
Yes, we have multiple domains registered. I just don't have nameservers to give those domains yet, trying to figure out how to create those for my server. And I believe we have a public IP, is there a way to check this? Edit: Just ran wget -O - -q and it returned our IP, not sure if that means it's public or not. – Jonathan Jan 3 '13 at 17:28
Ok. Where you performed domain registration? Do you have any domain control(DNS) panel? – Suku Jan 3 '13 at 17:33
Godaddy. And some of the domains do, but some have "DNS Manager: Not hosted here" The domains which have that are the ones I need pointing to our server. Why I was asking about DNS servers in addition to nameservers. – Jonathan Jan 3 '13 at 17:39… . "Actually, I can help you in this, but conversation will become long here and that I hate." – Suku Jan 3 '13 at 17:55
Hmm. The article tells me where to provide the nameservers for the domain, but not how to create them? What I mean is, I could give it and it would look to my server, but will the server understand? Or do I have to create a dns on it for it to function properly? Though I guess apache would take over once it got the request for the domain? – Jonathan Jan 3 '13 at 18:46

I just want to be able to type in and have it point to my server here locally

You can do that my setting an IP (localhost in this case) to a specific host manually in the /etc/hosts file like this:

You OS then checks the url from this file first before contacting the dns.

share|improve this answer
When I said locally I meant that the server resides in our local office, a server "room" a few doors down from my office. Sorry for the mixup. – Jonathan Jan 3 '13 at 20:05
oh sorry I did not see that. If you want, you can initiate a chat and I might be able to help you with that problem. – lukassteiner Jan 3 '13 at 21:07

Not the answer you're looking for? Browse other questions tagged or ask your own question.