Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.protocols.dns.bind > #16084

Re: No response from localhost with "allow-query { any; };"

Path csiph.com!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!news.dns-netz.com!news.freedyn.net!nntp.terraraq.uk!nntp-feed.chiark.greenend.org.uk!ewrotcd!usenet-its.stanford.edu!usenet.stanford.edu!not-for-mail
From Petr Menšík <pemensik@redhat.com>
Newsgroups comp.protocols.dns.bind
Subject Re: No response from localhost with "allow-query { any; };"
Date Tue, 1 Sep 2020 16:57:39 +0200
Organization Red Hat
Lines 257
Approved bind-users@lists.isc.org
Message-ID <mailman.854.1598972258.942.bind-users@lists.isc.org> (permalink)
References <E375AF41-87FC-480C-A553-D3731E5F5E46@Chaos1.DE> <A387A919-5751-4706-8972-3A21B395717F@isc.org> <D10D290D-4B8A-4B96-B79E-C6D6CA23DBBF@Chaos1.DE> <7db4a030-e66e-7239-287c-32d463cfbe94@redhat.com>
NNTP-Posting-Host lists.isc.org
Mime-Version 1.0
Content-Type multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="jzSruEzCBtK7zmW5lUSli9D4r72ClJk6f"
X-Trace usenet.stanford.edu 1598972310 17462 149.20.1.60 (1 Sep 2020 14:58:30 GMT)
X-Complaints-To action@cs.stanford.edu
To bind-users@lists.isc.org
Return-Path <pemensik@redhat.com>
X-Original-To bind-users@lists.isc.org
Delivered-To bind-users@lists.isc.org
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1598972293; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=xsvQ4EycVr33rbXfqtjeWx2Zoj/Ro41qsmtyBvxj87k=; b=M9ZcG9AKC0UHXDla4nt4if/0upU/AlknayWoPkccEQw421MZbLludxaCyAIiCWACCTlRsI aUl/zbHQ9oc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CXxSovR441oj/EgzYgqgNSd5+d8SfxYiZnueq+vsdOsN3OjHUGR oBSU6NQjM1VR+fBPAT97jSqKy5k2OyYxg3hfVHhD/si7eGHa3LPtr9I0VXT1XDQOAB/m8Y1M oZr6p/agBSgsux6zCsGnj5aXz5uBaQv8CSl0Xxc2Mn+R9F2ATsxlApAnw1sNfeoZWNwELnUa +rSJlejSH8P/hJOKabtmUGr3uchyGxg1kKAdMmKKBoERH900LZaWrG5iSEjYyaByT2CxuJrW nGMqfzrBfLofgtTpWqVHbgJWBB+r8VqdSi71DEHKzB9oO6oOtdqh65L9cF8+u9ENvU5uYTGy J7BbcbldOw8HJERSfvU8ppZRBRb7X2whlDtQzdhSXjiYT36FD0IqKwYeWivFvfnPDAYQZefH DNvnTlXAgjMFiUCr6XmLteKpihV5OXR6NCKsw/QrMJhc/NzxUtXbIVQDmSpfA9dcYLBsLxOB XNfVUOaSozzvr7VhN4LDWjYkpOc1dq25PFYofxv8/sB0VhgPj4DkoyHNrv7O8tLVN4e8lL6C oNNBGAtjTQwkrJmf5okiJ/YlgPlHtlTC1/EVXFmz98V5TuqTAll4idv1hgcpCBgFp9iDLqu3 gdmYkooSEDiKurqkkvOzaGG5VITpk4uoyRZTeQIu
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0
In-Reply-To <D10D290D-4B8A-4B96-B79E-C6D6CA23DBBF@Chaos1.DE>
X-Scanned-By MIMEDefang 2.79 on 10.5.11.16
Authentication-Results relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=pemensik@redhat.com
X-Mimecast-Spam-Score 0.001
X-Mimecast-Originator redhat.com
X-Spam-Status No, score=-1.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GPG_SIGNED,KAM_ASCII_DIVIDERS, KAM_SHORT,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=disabled version=3.4.2
X-Spam-Checker-Version SpamAssassin 3.4.2 (2018-09-13) on mx.pao1.isc.org
X-BeenThere bind-users@lists.isc.org
X-Mailman-Version 2.1.29
Precedence list
List-Id BIND Users Mailing List <bind-users.lists.isc.org>
List-Unsubscribe <https://lists.isc.org/mailman/options/bind-users>, <mailto:bind-users-request@lists.isc.org?subject=unsubscribe>
List-Archive <https://lists.isc.org/pipermail/bind-users/>
List-Post <mailto:bind-users@lists.isc.org>
List-Help <mailto:bind-users-request@lists.isc.org?subject=help>
List-Subscribe <https://lists.isc.org/mailman/listinfo/bind-users>, <mailto:bind-users-request@lists.isc.org?subject=subscribe>
X-Mailman-Original-Message-ID <7db4a030-e66e-7239-287c-32d463cfbe94@redhat.com>
X-Mailman-Original-References <E375AF41-87FC-480C-A553-D3731E5F5E46@Chaos1.DE> <A387A919-5751-4706-8972-3A21B395717F@isc.org> <D10D290D-4B8A-4B96-B79E-C6D6CA23DBBF@Chaos1.DE>
Xref csiph.com comp.protocols.dns.bind:16084

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

Please include any listen-on { ... } and listen-on-v6 { ... } clauses.

It seems any of 127.0.0.1; ::1; nor localhost; is listed in them.
Because it is not listening on localhost socket, it would not answer any
queries.

If the server should listen on all interfaces, just use:
  listen-on { any; };

If it has addresses on which it should not listen, just add localhost;
to current listen-on.

It might be able to respond to:

dig @91.216.35.21 -b 127.0.0.1 localhost

Which would be technically from localhost, but I guess you are looking
for listen-on change.

Cheers,
Petr

On 9/1/20 4:41 PM, Axel Rau wrote:
> Thanks for answering:
> 
> root@ns5:/ # dig NS lrau.net @91.216.35.21
> 
> ; <<>> DiG 9.16.5 <<>> NS lrau.net @91.216.35.21
> ;; global options: +cmd
> ;; connection timed out; no servers could be reached
> 
> root@ns5:/ # dig NS lrau.net @localhost
> 
> ; <<>> DiG 9.16.5 <<>> NS lrau.net @localhost
> ;; global options: +cmd
> ;; connection timed out; no servers could be reached
> 
> root@ns5:/ # sockstat -p 53
> USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS         FOREIGN ADDRESS
> root     cron       59891 5  dgram  -> /var/run/log
> root     sendmail   59197 3  dgram  -> /var/run/log
> bind     named      47812 3  dgram  -> /var/run/log
> bind     named      47812 137 udp4  91.216.35.21:53       *:*
> bind     named      47812 138 udp4  91.216.35.21:53       *:*
> bind     named      47812 139 udp4  91.216.35.21:53       *:*
> bind     named      47812 140 udp4  91.216.35.21:53       *:*
> bind     named      47812 141 udp4  91.216.35.21:53       *:*
> bind     named      47812 142 udp4  91.216.35.21:53       *:*
> bind     named      47812 143 udp4  91.216.35.21:53       *:*
> bind     named      47812 144 udp4  91.216.35.21:53       *:*
> bind     named      47812 145 udp4  91.216.35.21:53       *:*
> bind     named      47812 146 udp4  91.216.35.21:53       *:*
> bind     named      47812 147 udp4  91.216.35.21:53       *:*
> bind     named      47812 148 udp4  91.216.35.21:53       *:*
> bind     named      47812 149 udp4  91.216.35.21:53       *:*
> bind     named      47812 150 udp4  91.216.35.21:53       *:*
> bind     named      47812 151 udp4  91.216.35.21:53       *:*
> bind     named      47812 152 udp4  91.216.35.21:53       *:*
> bind     named      47812 154 tcp4  91.216.35.21:53       *:*
> bind     named      47812 155 udp6  2a05:bec0:26:5::71:53 *:*
> bind     named      47812 156 udp6  2a05:bec0:26:5::71:53 *:*
> bind     named      47812 157 udp6  2a05:bec0:26:5::71:53 *:*
> bind     named      47812 158 udp6  2a05:bec0:26:5::71:53 *:*
> bind     named      47812 159 udp6  2a05:bec0:26:5::71:53 *:*
> bind     named      47812 160 udp6  2a05:bec0:26:5::71:53 *:*
> bind     named      47812 161 udp6  2a05:bec0:26:5::71:53 *:*
> bind     named      47812 162 udp6  2a05:bec0:26:5::71:53 *:*
> bind     named      47812 163 udp6  2a05:bec0:26:5::71:53 *:*
> bind     named      47812 164 udp6  2a05:bec0:26:5::71:53 *:*
> bind     named      47812 165 udp6  2a05:bec0:26:5::71:53 *:*
> bind     named      47812 166 udp6  2a05:bec0:26:5::71:53 *:*
> bind     named      47812 167 udp6  2a05:bec0:26:5::71:53 *:*
> bind     named      47812 168 udp6  2a05:bec0:26:5::71:53 *:*
> bind     named      47812 169 udp6  2a05:bec0:26:5::71:53 *:*
> bind     named      47812 170 udp6  2a05:bec0:26:5::71:53 *:*
> bind     named      47812 172 tcp6  2a05:bec0:26:5::71:53 *:*
> bind     named      47812 512 udp4  91.216.35.21:53       *:*
> bind     named      47812 513 udp6  2a05:bec0:26:5::71:53 *:*
> root     rsyslogd   45747 0  dgram  /var/run/log
> root     rsyslogd   45747 1  dgram  -> /var/run/log
> root@ns5:/ #
> 
> 
>> Am 01.09.2020 um 16:14 schrieb Ondřej Surý <ondrej@isc.org>:
>>
>> Hi Axel,
>>
>> the `nc` commands you used for testing neither proves that
>> it’s that specific `named` listening on that port nor DNS
>> daemon at all.  FWIW it could be a dummy UDP/TCP server
>> and you would not know.
>>
>> First you need to use a tool from your operating system
>> to check what is listening on those ports, and then use
>> `dig` (or other DNS debugging tool) to send actual DNS
>> queries.
>>
>> Ondrej
>> --
>> Ondřej Surý (He/Him)
>> ondrej@isc.org
>>
>>> On 1. 9. 2020, at 16:11, Axel Rau <Axel.Rau@chaos1.de> wrote:
>>>
>>> Hi!
>>>
>>> this is a new server, which answers external queries, sends notifies and pushes axfrs.
>>> It does not answer any query from localhost nor shows any notifies from master in the logs.
>>>
>>> From local:
>>> root@ns5:/ # nc -v localhost 53
>>> Connection to localhost 53 port [tcp/domain] succeeded!
>>> ^C
>>> root@ns5:/ # nc -vu localhost 53
>>> Connection to localhost 53 port [udp/domain] succeeded!
>>>
>>> From master server:
>>> [hermes:local/etc/namedb] root# nc -v ns5.lrau.net 53
>>> Connection to ns5.lrau.net 53 port [tcp/domain] succeeded!
>>> ^C
>>> [hermes:local/etc/namedb] root#	nc -vu ns5.lrau.net 53
>>> Connection to ns5.lrau.net 53 port [udp/domain] succeeded!
>>>
>>>
>>> Any help greatly appreciated,
>>> Axel
>>>
>>> PS:
>>>
>>> part of named.conf:
>>> 	allow-notify {
>>> 		hermes-ns5;
>>> 	};
>>> 	allow-transfer {
>>> 		full-trusted;
>>> 		ns5-ping;
>>> 		ns4-he;
>>> 		management-hosts;
>>> 	};
>>> 	allow-query { any; };
>>> 	allow-query-cache { recursive-users; };
>>> 	allow-recursion { recursive-users; };
>>>
>>>
>>> root@ns5:/usr/local/etc/namedb/working/slave # named -V
>>> BIND 9.16.5 (Stable Release) <id:c00b458>
>>> running on FreeBSD amd64 12.1-RELEASE-p8 FreeBSD 12.1-RELEASE-p8 GENERIC
>>> built by make with '--disable-linux-caps' '--localstatedir=/var' '--sysconfdir=/usr/local/etc/namedb' '--with-dlopen=yes' '--with-libxml2' '--with-openssl=/usr' '--with-readline=-L/usr/local/lib -ledit' '--with-dlz-filesystem=yes' '--disable-dnstap' '--disable-fixed-rrset' '--disable-geoip' '--without-maxminddb' '--without-gssapi' '--with-libidn2=/usr/local' '--with-json-c' '--disable-largefile' '--with-lmdb=/usr/local' '--disable-native-pkcs11' '--without-python' '--disable-querytrace' 'STD_CDEFINES=-DDIG_SIGCHASE=1' '--enable-tcp-fastopen' '--with-tuning=default' '--disable-symtable' '--prefix=/usr/local' '--mandir=/usr/local/man' '--infodir=/usr/local/share/info/' '--build=amd64-portbld-freebsd12.1' 'build_alias=amd64-portbld-freebsd12.1' 'CC=cc' 'CFLAGS=-O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing ' 'LDFLAGS= -L/usr/local/lib -ljson-c -fstack-protector-strong ' 'LIBS=-L/usr/local/lib' 'CPPFLAGS=-DLIBICONV_PLUG -isystem /usr/local/include' 'CPP=cpp' 'PKG_CONFIG=pkgconf'
>>> compiled by CLANG 4.2.1 Compatible FreeBSD Clang 8.0.1 (tags/RELEASE_801/final 366581)
>>> compiled with OpenSSL version: OpenSSL 1.1.1d-freebsd  10 Sep 2019
>>> linked to OpenSSL version: OpenSSL 1.1.1d-freebsd  10 Sep 2019
>>> compiled with libxml2 version: 2.9.10
>>> linked to libxml2 version: 20910
>>> compiled with json-c version: 0.14
>>> linked to json-c version: 0.15
>>> compiled with zlib version: 1.2.11
>>> linked to zlib version: 1.2.11
>>> threads support is enabled
>>>
>>> default paths:
>>> named configuration:  /usr/local/etc/namedb/named.conf
>>> rndc configuration:   /usr/local/etc/namedb/rndc.conf
>>> DNSSEC root key:      /usr/local/etc/namedb/bind.keys
>>> nsupdate session key: /var/run/named/session.key
>>> named PID file:       /var/run/named/pid
>>> named lock file:      /var/run/named/named.lock
>>>
>>> ---
>>> PGP-Key: CDE74120  ☀  computing @ chaos claudius
>>>
>>> _______________________________________________
>>> Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list
>>>
>>> ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.
>>>
>>>
>>> bind-users mailing list
>>> bind-users@lists.isc.org
>>> https://lists.isc.org/mailman/listinfo/bind-users
>>
> 
> ---
> PGP-Key: CDE74120  ☀  computing @ chaos claudius
> 
> 
> 
> _______________________________________________
> Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list
> 
> ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.
> 
> 
> bind-users mailing list
> bind-users@lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users
> 

-- 
Petr Menšík
Software Engineer
Red Hat, http://www.redhat.com/
email: pemensik@redhat.com
PGP: DFCF908DB7C87E8E529925BC4931CA5B6C9FC5CB

Back to comp.protocols.dns.bind | Previous | Next | Find similar


Thread

Re: No response from localhost with "allow-query { any; };" Petr Menšík <pemensik@redhat.com> - 2020-09-01 16:57 +0200

csiph-web