1

Topic: nsblog_query: lookup error for DNS query

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version: Ubuntu 16.04.3 LTS server
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): Mysql
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

I have a lot of warnings like this below in my logs. Why is that and how can I correct this?

mail postfix/dnsblog[25349]: warning: dnsblog_query: lookup error for DNS query 161.170.123.180.zen.spamhaus.org: Host or domain name not found. Name service error for name=161.170.123.180.zen.spamhaus.org type=A: Host not found, try again

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: nsblog_query: lookup error for DNS query

What's the output of command below? Running them on your server:

host 161.170.123.180.zen.spamhaus.org

Are your DNS servers (in /etc/resolv.conf) working well?

3 (edited by kornel 2018-01-09 04:26:24)

Re: nsblog_query: lookup error for DNS query

# host 161.170.123.180.zen.spamhaus.org
;; connection timed out; no servers could be reached

but:

# host google.com
google.com has address 173.194.76.138
google.com has address 173.194.76.113
google.com has address 173.194.76.102
google.com has address 173.194.76.100
google.com has address 173.194.76.139
google.com has address 173.194.76.101
google.com has IPv6 address 2a00:1450:4007:814::200e
google.com mail is handled by 40 alt3.aspmx.l.google.com.
google.com mail is handled by 10 aspmx.l.google.com.
google.com mail is handled by 50 alt4.aspmx.l.google.com.
google.com mail is handled by 30 alt2.aspmx.l.google.com.
google.com mail is handled by 20 alt1.aspmx.l.google.com.

So it looks like the name resolving is just fine...

4

Re: nsblog_query: lookup error for DNS query

My result:

$ host 161.170.123.180.zen.spamhaus.org
Host 161.170.123.180.zen.spamhaus.org not found: 3(NXDOMAIN)

Seems your DNS server was not working reliably?

5

Re: nsblog_query: lookup error for DNS query

No. My DNS work just fine. I can find any host except those x.x.x.spamhaus.org
It happens on every installation of iRedMail and with any DNS put in resolv.conf
I tried Google's 8.8.8.8, 8.8.4.4 and from my ISP. It gives the same result.

However on my home computer (iMac) a query like x.x.x.spamhaus.org return 127.0.0.11  @:-/

6

Re: nsblog_query: lookup error for DNS query

FYI:
http://postfix.1071664.n5.nabble.com/te … node=52056

7

Re: nsblog_query: lookup error for DNS query

Hi @kornel,

is your server busy and exceed the spamhaus.org's limit? According to https://www.spamhaus.org/organization/dnsblusage/ , if you're not a paid customer, it's limited to 300,000 queries per day.

8

Re: nsblog_query: lookup error for DNS query

I have found a solution. This is a problem with public resolvers like google's 8.8.8.8
When I changed to OpenDNS it works.

More info is here: http://www.servaxnet.com/blog/2010/08/0 … king-spam/