ndjbdns: https://sourceopen.com/index.php/install-djbdns-in-2021-on-ubuntu-20-04-or-other-modern-linux/

Linux に寄り過ぎで使えない。-- ToshinoriMaeno 2023-04-27 01:33:31

1. オリジナル+パッチ

# groupadd djbdns
# useradd dnscache -g djbdns -s /sbin/nologin
# useradd dnslog -g djbdns -s /sbin/nologin

$ sudo dnscache-conf dnscache dnslog /home/dnscache/conf 127.0.0.1

sudo ln -s /home/dnscache/conf/ dnscache

2. dnscache 起動

tinydns, axfrdnsも設定できた。-- ToshinoriMaeno 2022-09-04 09:53:29

3. tinydns

UDP tinydnsでのエラー処理がおかしい。 /発生箇所

tmaeno@ryzen:~$ dig -t txt qmail.jp @c.ns.qmail.jp

; <<>> DiG 9.18.1-1ubuntu1.1-Ubuntu <<>> -t txt qmail.jp @c.ns.qmail.jp
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54172
;; flags: qr aa rd; QUERY: 1, ANSWER: 5, AUTHORITY: 3, ADDITIONAL: 0
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;qmail.jp.                      IN      TXT

;; ANSWER SECTION:
qmail.jp.               600     IN      TXT     "Powered by djbdns - http://cr.yp.to/djbdns.html"
qmail.jp.               86400   IN      TXT     "0123456789abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz"
qmail.jp.               86400   IN      TXT     "0123456789abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz"
qmail.jp.               86400   IN      TXT     "0123456789abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz"
qmail.jp.               86400   IN      TXT     "v=spf1 mx/28 -all"

;; AUTHORITY SECTION:
qmail.jp.               3600    IN      NS      a.ns.qmail.jp.
qmail.jp.               3600    IN      NS      b.ns.qmail.jp.
qmail.jp.               3600    IN      NS      c.ns.qmail.jp.

;; Query time: 7 msec
;; SERVER: 160.16.114.69#53(c.ns.qmail.jp) (UDP)
;; WHEN: Tue Sep 06 11:43:59 JST 2022
;; MSG SIZE  rcvd: 422

tmaeno@ryzen:~$ dig -t txt qmail.jp @c.ns.qmail.jp
;; Warning: ID mismatch: expected ID 49287, got 54172
;; Warning: ID mismatch: expected ID 49287, got 54172
;; Warning: ID mismatch: expected ID 49287, got 54172

; <<>> DiG 9.18.1-1ubuntu1.1-Ubuntu <<>> -t txt qmail.jp @c.ns.qmail.jp
;; global options: +cmd
;; connection timed out; no servers could be reached

以前のIDに対しての返事が再送されている。

新IDへの返事は?

; <<>> DiG 9.18.1-1ubuntu1.1-Ubuntu <<>> -t txt qmail.jp @c.ns.qmail.jp
;; global options: +cmd
;; connection timed out; no servers could be reached

tmaeno@ryzen:~$ dig -t txt qmail.jp @c.ns.qmail.jp
;; Warning: ID mismatch: expected ID 12194, got 54172
;; Warning: ID mismatch: expected ID 12194, got 54172
;; Warning: ID mismatch: expected ID 12194, got 54172

; <<>> DiG 9.18.1-1ubuntu1.1-Ubuntu <<>> -t txt qmail.jp @c.ns.qmail.jp
;; global options: +cmd
;; connection timed out; no servers could be reached


CategoryDns CategoryWatch CategoryTemplate

MoinQ: Ubuntu/22.04LTS/djbdns (last edited 2023-04-27 01:38:02 by ToshinoriMaeno)