Hi Daniel,
On Mon, Dec 27, 2010 at 02:06:53AM +0000, Daniel Case wrote:
I am planning to resell hosting accounts on my VPS to
businesses as part of
a web design and programming job that I do now. However, I appear to be
having some problems with bind9, and setting up my own nameservers. I
originally thought that a domain translates to an IP and that was the end of
it.
This is what I know so far:
-I need 2 subdomains,
ns1.mydomain.com and
ns2.mydomain.com
Rather than starting with what you think you need, it might be best
if you said what you actually wanted to do. From your text below it
seems that you have the domain
turasmara.com and you want to point
the A record for
turasmara.com to a specific IP.
This is what I have no idea about:
-Do these subdomains have to be on different servers, or just different
IP's? Can they even use the same IP?
-If they need to be different, can my hosting server be on 1.2.3.4 if my
nameservers are: 1.2.3.4 and 5.6.7.8
Your domain
turasmara.com is going to need at least two nameservers.
You would normally set these nameservers up to be authoritative for
turasmara.com, test them and then tell your registrar (whoever you
bought
turasmara.com from) about them.
It may be possible to "trick" the registrar by having two
nameservers that resolve to the same IP address, or by configuring
two different IP addresses on the same host and giving those as the
nameserver IPs. However, besides the fact that there is a good
reason for needing at least two nameservers (resilience), many
registrars are able to spot these tricks and won't let you get away
with them.
So it would be best to forget about having two nameservers that are
actually the same host.
BitFolk can provide up to three nameservers for you, for up to 50 of
your domains, at no charge.
I have followed this:
https://help.ubuntu.com/10.04/serverguide/C/dns-configuration.html in order
to set up my first nameserver, and it will now ping
example.com if I set the
resolv.conf to use itself.
If I set
turasmara.com to use that nameserver, and ping it from my home box
I do not get anything. However if I ping it from the VPS I get:
root@hostinghaven:~# ping
turasmara.com
PING
turasmara.com (1.2.3.4) 56(84) bytes of data.
64 bytes from
www.domainname.com (1.2.3.4): icmp_seq=1 ttl=64 time=0.018 ms
What have I done wrong...and what do I till need to do to get this to work?
It's very difficult to tell what the problem is when you obscure the
names and IP addresses involved and don't give full reports of
output ("I do not get anything").
You say you've set up a nameserver - what is the hostname of this
nameserver, is it set up to be authoritative for
turasmara.com and
please can you post the zone file that you have for
turasmara.com in
this nameserver?
Cheers,
Andy
--
http://bitfolk.com/ -- No-nonsense VPS hosting