[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-users:36353] Re: tinydns で exim の準備をしたい



お休み中の所、お手を煩わしてます、竹島です。

自分に基礎学力が無いために、松田様、yamyas 様のお言葉が理解できない点が多々あります。
時間があれば dnsmx dnsq  の具体的な方法をご教示ください。
実は
http://www.naney.org/personal/diary/2002/02/c.html
の情報を *勝手に* 書き換えて使いました。

以下は元の[debian-users:36346] の
debian を   debian-1
nakajinを   nakajin-1
に替えました。

したがってシェルスクリプトも
debian:/etc/tinydns/root# cat /root/djb.bat 
---------------------------------
rm -rf /etc/tinydns
rm -rf /etc/dnscache
rm -rf /service/tinydns
rm -rf /service/dnscache

tinydns-conf    tinydns dnslog  /etc/tinydns    127.0.0.1
ln -s /etc/tinydns /service
cd  /etc/tinydns/root
./add-ns nakajin-1              127.0.0.1
./add-ns 0.168.192.in-addr.arpa 127.0.0.1
./add-mx nakajin-1              127.0.0.1
./add-host debian-1.nakajin-1      192.168.0.100
make

#ここから下を追加:
######################
dnscache-conf dnscache dnslog /etc/dnscache 192.168.0.100
ln -s /etc/dnscache /service
#
echo '127.0.0.1' > /etc/dnscache/root/servers/debian-1.nakajin-1
echo '127.0.0.1' > /etc/dnscache/root/servers/1.0.0.127.in-addr.arpa
echo '127.0.0.1' > /etc/dnscache/root/servers/0.168.192.in-addr.arpa
ーーーーーーーーーーーーーーーーーー
に替えました。


こうして、これを実行してからcd /etc/tinydns/rootして
tinydns-get mx nakajin-1 を実行すると、
15 nakajin-1:
99 bytes, 1+1+1+2 records, response, authoritative, noerror
query: 15 nakajin-1
answer: nakajin-1 86400 MX 0 a.mx.nakajin-1
authority: nakajin-1 259200 NS a.ns.nakajin-1
additional: a.mx.nakajin-1 86400 A 127.0.0.1
additional: a.ns.nakajin-1 259200 A 127.0.0.1
でした。

なお
tuyosi@debian:~$ cat /root/tasikame.batが
ーーーーーーーーーーーーーーーーーー 
echo 1-------------------
host debian-1.nakajin-1 127.0.0.1
echo 2--------------------
cat /etc/tinydns/root/data
echo 3-----------------------
tinydns-get a debian-1.nakajin-1
echo 4----------------------
svstat /service/tinydns
echo 5-----------------------
cat /service/tinydns/env/IP
#telnet 127.0.0.1
echo 6------------------------
dnsq a debian-1.nakajin-1 127.0.0.1
echo 7-----------------------
dnsqr a debian-1.nakajin-1
echo 8----------------------
tinydns-get mx nakajin-1
echo 9----------------------:
nslookup debian-1.nakajin-1
ーーーーーーーーーーーーーーーーーー
として実行すると


1-------------------
Using domain server:
Name: 127.0.0.1
Address: 127.0.0.1#53
Aliases: 
debian-1.nakajin-1 has address 192.168.0.100

2--------------------
.nakajin-1:127.0.0.1:a:259200
.0.168.192.in-addr.arpa:127.0.0.1:a:259200
@nakajin-1:127.0.0.1:a::86400
=debian-1.nakajin-1:192.168.0.100:86400

3-----------------------
1 debian-1.nakajin-1:
87 bytes, 1+1+1+1 records, response, authoritative, noerror
query: 1 debian-1.nakajin-1
answer: debian-1.nakajin-1 86400 A 192.168.0.100
authority: nakajin-1 259200 NS a.ns.nakajin-1
additional: a.ns.nakajin-1 259200 A 127.0.0.1

4----------------------
/service/tinydns: up (pid 368) 2060 seconds

5-----------------------
127.0.0.1

6------------------------
1 debian-1.nakajin-1:
87 bytes, 1+1+1+1 records, response, authoritative, noerror
query: 1 debian-1.nakajin-1
answer: debian-1.nakajin-1 86400 A 192.168.0.100
authority: nakajin-1 259200 NS a.ns.nakajin-1
additional: a.ns.nakajin-1 259200 A 127.0.0.1

7-----------------------
1 debian-1.nakajin-1:
87 bytes, 1+1+1+1 records, response, authoritative, noerror
query: 1 debian-1.nakajin-1
answer: debian-1.nakajin-1 86400 A 192.168.0.100
authority: nakajin-1 259200 NS a.ns.nakajin-1
additional: a.ns.nakajin-1 259200 A 127.0.0.1

8----------------------
15 nakajin-1:
99 bytes, 1+1+1+2 records, response, authoritative, noerror
query: 15 nakajin-1
answer: nakajin-1 86400 MX 0 a.mx.nakajin-1
authority: nakajin-1 259200 NS a.ns.nakajin-1
additional: a.mx.nakajin-1 86400 A 127.0.0.1
additional: a.ns.nakajin-1 259200 A 127.0.0.1

9----------------------:
Note:  nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead.  Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
Server:         127.0.0.1
Address:        127.0.0.1#53

Name:   debian-1.nakajin-1
Address: 192.168.0.100
---
でした。

tuyosi@debian:~$ telnet debian-1.nakajin-1 25 
すると
Trying 192.168.0.100...
Connected to debian-1.nakajin-1.
Escape character is '^]'.
220 debian.nakajin.dyndns.org ESMTP Exim 3.35 #1 Sat, 22 Feb 2003 15:41:55 +0900
helo xyz
250 debian.nakajin.dyndns.org Hello tuyosi at debian-1.nakajin-1 [192.168.0.100]
mail from: tuyosi@xxxxxxxxxxxxxxxxxx
250 <tuyosi@xxxxxxxxxxxxxxxxxx> is syntactically correct
rcpt to: tuyosi@xxxxxxxxxxxxxxxxxx
550 relaying to <tuyosi@xxxxxxxxxxxxxxxxxx> prohibited by administrator
と 叱られました。
なお、192.168.0.100から 192.168.0.100にメールサーバーの上でメールしてるのが悪いのでしょうか?

また
tuyosi@debian:~$ telnet debian-1.nakajin-1 110
Trying 192.168.0.100...
telnet: Unable to connect to remote host: Connection refused
と全然だめなのは、 ひょっとしたらeximの機能には postfixと違ってpopサーバーの機能が
ないからでしょうか?

長々とした記載になってしまったのは、学力が無いため、自分では正否の判断がつかないからです。
貴重なMLのスペースを潰しました。