Bind9 does not respond (only) over TCP

3

The following dig command on the self server works fine . There is no firewall rule on the server related to this .

#dig @109.110.160.171 shabdiznet.com +tcp
;; communications error to 109.110.160.171#53: end of file

# netstat -lntu
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 0.0.0.0:53              0.0.0.0:*               LISTEN

The IP is public and yourself may test . The problem might not related to firewall because the ported is open from outside . The UDP works fine .

Omid Kosari

Posted 2016-11-21T07:17:44.540

Reputation: 349

Does tcpdump or tshark show TCP handshake packets being received? – user1686 – 2016-11-21T07:42:33.613

Yes they received . You may test yourself . I'll attach the pcap file if needed . – Omid Kosari – 2016-11-21T08:18:03.540

Answers

2

This server was upgraded from 12.04 and i don't know it was the problem or it is ubuntu 16.04 default behavior .

The problem was caused by dnsmasq . Actually the dnsmasq was listening on the port 53 .

/etc/default/dnsmasq

ENABLED=0

Then

service dnsmasq stop
service bind9 restart

Solved my problem .

Omid Kosari

Posted 2016-11-21T07:17:44.540

Reputation: 349