One domain name - 2 servers

David Botham dns at botham.net
Fri Feb 14 17:59:36 UTC 2003



> -----Original Message-----
> From: bind-users-bounce at isc.org [mailto:bind-users-bounce at isc.org] On
> Behalf Of bind at col7.metta.lk
> Sent: Friday, February 14, 2003 11:24 AM
> To: bind-users at isc.org
> Subject: One domain name - 2 servers
> 
> Hi all,
> 
> When I do a nslookup on yahoo.com I get several ip's.
> How do I set up that kind of thing.
> 
> I have 2 servers with our website on
> 
> dhamma.metta.lk
> sati.metta.lk
> 
> I want both sites to be found if you do a lookup on
> www.metta.lk or metta.lk
> 
> my zone file of metta.lk is below
> 
> thanks in advance.
> 
> Mettavihari
> ------------------------
> $TTL            86400
> @               IN      SOA
> dhamma.metta.lk.        root.dhamma.metta.lk. (
>                         2003021401 ; serial
>                         3600 ; refresh
>                         900 ; retry
>                         1209600 ; expire
>                         43200 ; default_ttl
>                         )
> @               IN      NS      dhamma.metta.lk.
> @               IN      NS      ns1.secondary.com.
> @               IN      NS      ns2.secondary.com.
> @               IN      A       203.115.29.130
> @               IN      A       203.115.29.146

The two RR's above will perform a round-robin for metta.lk.  From
reading above, I believe this is what you are trying to do.

> @               IN      MX      10      mail.metta.lk.
> dhamma          IN      A       203.115.29.130

  dhamma		IN	  A	    203.115.29.146

Add this RR to get the round-robin for the dhamma.metta.lk domain.


> dhamma          IN      MX      10      dhamma.metta.lk.
> www             IN      CNAME   dhamma.metta.lk.

The record above will point www.metta.lk to dhamma.metta.lk.  I think
this is also what you are going for.

  www.dhamma	IN      CNAME   dhamma.metta.lk.

Add this RR to make www.dhamma.metta.lk point to dhamma.metta.lk.


> WWW             IN      CNAME   dhamma.metta.lk.
The second WWW RR is redundant, you can safely delete it.



I think this should do what you are trying...


Dave...


> mail            IN      A       203.115.29.139
> mail            IN      MX      10      mail.metta.lk.
> sati            IN      A       203.115.29.146
> sati            IN      MX      10      sati.metta.lk.
> col7            IN      A       203.115.29.130
> col7            IN      MX      10      dhamma.metta.lk.
> nc              IN      A       203.115.29.130
> nc              IN      MX      10      dhamma.metta.lk.
> col4            IN      A       203.115.29.130
> col4            IN      MX      10      dhamma.metta.lk.
> narada.col7             IN      A       203.115.29.130
> narada.col7             IN      MX      10      dhamma.metta.lk.
> vajira.col4             IN      A       203.115.29.130
> vajira.col4             IN      MX      10      dhamma.metta.lk.
> modem01         IN      A       10.0.0.1
> daya            IN      A       203.115.29.130
> sati.bps                IN      A       203.115.29.130
> sati.bps                IN      MX      10      dhamma.metta.lk.
> mail1.bps               IN      A       203.115.29.130
> mail1.bps               IN      MX      10      dhamma.metta.lk.
> bps             IN      A       203.115.29.130
> bps             IN      MX      10      dhamma.metta.lk.
> sobhana         IN      A       203.115.29.130
> 
> --
> A saying of the Buddha from http://metta.lk/
> Though little he recites the Sacred Texts, but acts in accordance with
the
> teaching, forsaking lust, hatred and ignorance, truly knowing, with
mind
> well freed, clinging to naught here and hereafter, he shares the
fruits of
> the Holy life.
> Random Dhammapada Verse 20
> 




More information about the bind-users mailing list