History: Everything starts with this log entry
postfix/smtpd[10001]: warning: x.x.x.x.list.dsbl.org: RBL lookup error: Host or domain name not found. Name service error for name=x.x.x.x.list.dsbl.org type=A: Host not found, try again
I've tried to resolve it manually, and indeed I've got a timeout. Trying to use Google's public DNS servers works fine, and here the drama begins:
I've configured the bind to allow recursion from localhost, and then switched the DNS server is /etc/resolv.conf
to use 127.0.0.1
as a name server. Also, I've tried to specify google's public DNS servers as forwarders, and without them (asking the root servers). The results are identical:
dig a 1.2.3.4.list.dsbl.org
; <<>> DiG 9.9.5-9+deb8u7-Debian <<>> a 1.2.3.4.list.dsbl.org ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 12810 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ;1.2.3.4.list.dsbl.org. IN A
;; Query time: 0 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Wed Jan 04 12:55:36 UTC 2017 ;; MSG SIZE rcvd: 50
After 3-4 seconds, it fails. Trying the Google's public DNS:
dig a 1.2.3.4.list.dsbl.org @8.8.8.8
; <<>> DiG 9.9.5-9+deb8u7-Debian <<>> a 1.2.3.4.list.dsbl.org @8.8.8.8 ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 62982 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 512 ;; QUESTION SECTION: ;1.2.3.4.list.dsbl.org. IN A
;; Query time: 28 msec ;; SERVER: 8.8.8.8#53(8.8.8.8) ;; WHEN: Wed Jan 04 12:57:28 UTC 2017 ;; MSG SIZE rcvd: 50
while this one works
dig a somedomain.com
; <<>> DiG 9.9.5-9+deb8u7-Debian <<>> a somedomain.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 35713 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 5
;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ;somedomain.com. IN A
;; ANSWER SECTION: somedomain.com. 300 IN A 69.172.201.153
;; AUTHORITY SECTION: somedomain.com. 172800 IN NS sell.internettraffic.com. somedomain.com. 172800 IN NS buy.internettraffic.com.
;; ADDITIONAL SECTION: buy.internettraffic.com. 172800 IN A 64.96.240.54 buy.internettraffic.com. 172800 IN A 64.96.241.73 sell.internettraffic.com. 172800 IN A 176.74.176.176 sell.internettraffic.com. 172800 IN A 176.74.176.175
;; Query time: 49 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Wed Jan 04 12:56:30 UTC 2017 ;; MSG SIZE rcvd: 176
Footnote: Using only google's DNS in /etc/resolv.conf
works fine locally, when I restart postfix, the file is being copied in /var/spool/postfix/etc/resolv.conf
but still the same log that host could not be resolved.
What am I missing?