On 27/12/2010 4:06 ??, Daniel Case wrote:
Hi guys,
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 <http://ns1.mydomain.com> and
ns2.mydomain.com <http://ns2.mydomain.com>
This is one option.
You can have name servers on totally different domains if you want, too.
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?
Ideally the two (at least) NS
that you have for each domain would be on
not only different IPs, but also on different networks, commonly one in
Europe, one in the US and possibly one in Asia. Depends on your
users/visitors.
You can have the same 2 (or more) NS for all domains, yes. Using
ns1.domain and ns2.domain, just point them all to the same 2 IPs.
Having one server with two IPs and setting those two IPs as ns1+ns2 both
is allowed, I guess, but is rather pointless cause then it's practically
one NS, isn't it? If you only have one NS, just use that.
-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
You can run NS daemons and web daemons on
the same machine, yes.
Although I would go with something much lighter than bind, nsd for example.
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
<http://example.com> if I set the resolv.conf to use itself.
Test using dig
or drill (guess with bind you have dig). E.g.
dig @localhost
example.com
dig @localhost mx
example.com
dig @localhost ns
example.com
If I set
turasmara.com <http://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 <http://turasmara.com>
PING
turasmara.com <http://turasmara.com> (1.2.3.4) 56(84) bytes of data.
64 bytes from
www.domainname.com <http://www.domainname.com>
(1.2.3.4): icmp_seq=1 ttl=64 time=0.018 ms
Can't tell you much without knowing
what 'i do not get anything'
means.... and how you "set
turasmara.com to use that nameserver". How
did you configure things?
What have I done wrong...and what do I till need to do to get this to
work?
Why don't you post your zone file so we can see?
Thank you,
Daniel
Just a user
--G