Date: Thu, 25 Jan 1996 14:47:34 MET
From: Dmitry Kohmanyuk <dk@dog.farm.org>

I use DNS for fidonet routing (Ruslan Belkin <rus@ua.net> has credit
for his ifroute.c and mxlookup.c, I have just ported them to 4.4BSD
and fixed bug with point routing).

I have local named running, and my named.boot has lines:

; FIDOnet pseudo-DNS for routing
primary   fido          primary/fido

my zone file is as follows: (oh well, it's 40 lines, I'd attach it later).


I have my own fidonet mailer (ifmail.sh), which I include there:
(it relies on my path config and DNS routing); here is goes:

<<<<
#!/bin/sh
# usage: $0 first.last@fN.nN.zN

logger -s -i -p mail.info -t ifmail.sh "FIDO mail sent to $*" 2> /var/log/ifmail/mailer

IFHOME=/usr/local/libexec/ifmail
ifroute=$IFHOME/ifroute
ifmail=$IFHOME/ifmail

fdomain=FIDO

exec $ifmail -r`$ifroute -d$fdomain $1` $1
>>>>



ATTACH zone file - it's all evident, "direct" is the magic word
<<<<
;
;       FIDO dns
;

$ORIGIN FIDO.
@                       IN      SOA     relay1.farm.org. hostmaster.relay1.farm.org.
                                1995160904  ; serial number
                                14400     ; refresh     - 4 h
                                1800      ; retry       - 30 min.
                                604800    ; expire      - 1 week
                                86400   ) ; default ttl - 24 h.

                        IN      NS      ns.farm.org.

; my points (doesn't work - point's'not'a'human ;)
;*.f32.n463.z2          MX      100     direct
;p11.f32.n463.z2                MX      100     dog.farm.org.
;p12.f32.n463.z2                MX      100     pig.farm.org.

; direct links
f23.n463.z2             MX      10      direct
f68.n463.z2             MX      10      direct
;f586.n463.z2           MX      10      direct

; specific routing
f62.n463.z2             MX      10      direct
                        MX      20      f68.n463.z2

; mail hub
f690.n463.z2            MX      10      direct

; testing ifroute logic
;#*.n1.z2               MX      10      f1.n1.z2

; external
;#*.n463.z2             MX      100     direct
*.n463.z2               MX      100     f690.n463.z2
*.z2                    MX      100     f690.n463.z2
*                       MX      100     f690.n463.z2
>>>>

