On Sat, 11 Dec 1999 [EMAIL PROTECTED] wrote:

> On Wed, Nov 17, 1999 at 12:35:42PM +0100, Nagy Balazs wrote:
> 
> > ;; ANSWER SECTION: 
> > col7.metta.lk.  3h21m IN NS server1.tradenetsl.lk.
> > col7.metta.lk.  3h21m IN NS dhamma.metta.lk. 
> > col7.metta.lk.  3h31m35s IN MX 10 metta.lk. 
> > col7.metta.lk.  23h58m23s IN A 172.16.1.1 
> > // **** This is a problem.  You have to erase the A record from the
> > // outer metta.lk zone.  That server can store all messages which come
> > // to col7 to a folder (ie. ~alias/172.16.1.1/), but qmail doesn't have
> > // to have that dns entry.
> 
> Without the A record in the zone file
> when I do a "nslookup col7.metta.lk" I get host not found
> If i put the A record back in the zone file then it is ok

Yes, it's OK for you and just for you only.  You have to have two zone
files.  One is for you and one is for the others.  For you you can put the A
record into the zone field, but for others you have to use just an MX record
for that domain.

> Below is my col7.metta.lk zone file.
> Would it be ok to put the ip of metta.lk as an A record 
> inplace of the 172.16.1.1 entry.
> Please see the sample below.

If you give outer (eg. to the internet) name service, *don't put* local IP
addresses to zone file.

> $ORIGIN col7.metta.lk.
> $TTL    86400
> @               IN      SOA     narada.col7.metta.lk.
> hostmaster.col7.metta.lk. (
>                         1999120601 ; serial
>                         3600 ; refresh
>                         900 ; retry
>                         1209600 ; expire
>                         43200 ; default_ttl
>                         )
>                 IN      NS      metta.lk.
>                 IN      NS      server1.tradenetsl.lk.
>                 IN      MX      10      metta.lk.
> //***                IN      A       172.16.1.1
> //***                IN      A       203.115.29.130
> narada.col7.metta.lk.   IN      CNAME   col7.metta.lk.

Which is the latter A record?  Is that your outer port?

My opinion is to do like this:

      +--------+       +--------+
      |172.16. |       |203.115.|
      |  1.1   |-modem-|29.130  |=======> internet
      |        |       |        |
      +--------+       +--------+

Put col7.metta.lk MX 10 metta.lk to 203.115.29.130's metta.lk zone file, and
put a col7.metta.lk:172.16.1.1 line (or sort of) to metta.lk's
/var/qmail/control/smtproutes.  You can do anything else too but don't
forget not to mention col7.metta.lk for 172.16.1.1.

Then, at your site you can do any record as you like as long as none of your
name service zones are delegated.

> I could also remove the col7.metta.lk zone file 
> and make a  CNAME in the  metta.lk zone file.
> 
> Which of the 2 ways is the correct way ?

It depends on what you like.
-- 
Regards: Kevin (Balazs) @ synergon

Reply via email to