Hi All.
My server using dns/bind912 provide domain name resolve service (Domain name: epopen.com, DNS server: dns.epopen.com)
Nearly new feature(package) added, it update DNS zone TXT record via TCP( dns.query.tcp() @ python) .
But it won't work.
Bind listen TCP port confirmed by
And result:
Note: Bind running in jail, so fd00::ffff:a00:1 and 10.0.0.1 is jail address.
Manual query test in server machine as below:
1.TCP test by
And result:
2.UDP test by
And result:
My /usr/local/etc/namedb/named.conf (options section) show below for reference.
Look like DNS server work fine via UDP only.
But I can't find any directive about TCP.
Can help me for debug?
Thanks very much.
My server using dns/bind912 provide domain name resolve service (Domain name: epopen.com, DNS server: dns.epopen.com)
Nearly new feature(package) added, it update DNS zone TXT record via TCP( dns.query.tcp() @ python) .
But it won't work.
Bind listen TCP port confirmed by
sockstat |grep bind
.And result:
Code:
bind named 16858 23 tcp4 10.0.0.1:953 *:*
bind named 16858 21 tcp6 fd00::ffff:a00:1:53 *:*
bind named 16858 22 tcp4 10.0.0.1:53 *:*
bind named 16858 512 udp6 fd00::ffff:a00:1:53 *:*
bind named 16858 513 udp4 10.0.0.1:53 *:*
Manual query test in server machine as below:
1.TCP test by
dig +tcp @dns.epopen.com www.epopen.com
.And result:
Code:
;; communications error to 10.0.0.1#53: host unreachable
2.UDP test by
dig @dns.epopen.com www.epopen.com
.And result:
Code:
; <<>> DiG 9.12.1-P2 <<>> @dns.epopen.com www.epopen.com
; (2 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 15052
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; WARNING: recursion requested but not available
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; COOKIE: a719c728b73c85fe8e41323d5b320882d1a2b560249f42c5 (good)
;; QUESTION SECTION:
;www.epopen.com. IN A
;; ANSWER SECTION:
www.epopen.com. 3600 IN A 122.117.86.253
;; Query time: 2 msec
;; SERVER: 10.0.0.1#53(10.0.0.1)
;; WHEN: 週二 6月 26 17:33:54 CST 2018
;; MSG SIZE rcvd: 87
My /usr/local/etc/namedb/named.conf (options section) show below for reference.
Code:
options {
directory "/usr/local/etc/namedb/working";
pid-file "/var/run/named/pid";
dump-file "/var/dump/named_dump.db";
statistics-file "/var/stats/named.stats";
listen-on { any; };
listen-on-v6 { any; };
disable-empty-zone "255.255.255.255.IN-ADDR.ARPA";
disable-empty-zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA";
disable-empty-zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA";
recursion no;
allow-transfer { "none"; };
};
Look like DNS server work fine via UDP only.
But I can't find any directive about TCP.
Can help me for debug?
Thanks very much.