Search Again:

Re: a address to domain internal

From: Global Homes Webmaster
Date: Tuesday, April 9, 2002
Time: 6:42:00 pm

On 04/09/02 at 18:11, rashantha de silva wrote:

> hello
>
> will this work
>
> main_domain.net ns ns1.main_domain.net
> main_domain.net ns ns2.main_domain.net
> ns1.maindomain.net a 64.100.30.60
> ns2.maindomain.net a 229.199.40.75
> maindomain.net a 192.168.0.2

I would expect you to have problems with the above on the face of it. The
NS and A records don't belong in the same zone.

main_domain.net. != maindomain.net.

Also, you've left off the trailing dots on all of the domain names. An
easily overlooked, but very important point.

> i am trying to see if ns1 goes down traffic will still reach ns2 and then
> the web server or vice versa.

As far as resolvers out on the 'net are concerned, ns1 and ns2 are peers --
i.e. there's nothing like a 'main server' / 'back-up server' relationship
between them. So, generally, when a resolver tries to resolve a domain
name, it will first look up the NS records for the zone. It will then query
all of the listed name servers (i.e., both ns1 and ns2 in your example),
and use the first response that comes back. It's a little more complicated
than that in practice. For one thing, some resolvers will remember which
server gave the fastest response for later reference.

Anyway, in your example, if ns1 is down and ns2 is up, a resolver should
query them both. It won't get a response from ns1, but it will get one from
ns2, so you're still good to go.

> in my previous em i forgot to note that the 192.168.0.2 address is an
> internal address.

Well, yes. By definition (RFC 1918), the block 192.168.0.0-192.168.255.255
(192.168/16) is reserved for private networks.

> will the world be able to access my server with the above address.

192.168.0.2? No. It is not a publicly routable address because it's
reserved for private networks.

--
Christopher Bort | cbort@globalhomes.com
Webmaster, Global Homes | webmaster@globalhomes.com
<http://www.globalhomes.com/> | PGP public key available on request



Messages In This Thread:



Return to Digital Point Solutions' Home Page