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 www.mydomain.com 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 255.255.255.21 and 255.255.255.22 which are set in the domain as ns1.domain.com/ns2.domain.com. 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.