Received: from mail-lj1-f173.google.com (mail-lj1-f173.google.com [209.85.208.173]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id A1CCE78187F for ; Wed, 19 Feb 2020 09:40:57 +0000 (UTC) Received: by mail-lj1-f173.google.com with SMTP id h23so26340005ljc.8 for ; Wed, 19 Feb 2020 01:40:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=S4nBXQXMDji/ebcNZx5J//fUBxULdQyqIJltx58KCcw=; b=URvqmYHUMufXlOLt2FwtaBQMo0QaMDhA2qFs/8K/5QpklMLuiH3oSAd/hI1+i1N6aF UfEpkkxK2zwB3gVRcJITlJVCxINOrC+JiRNoSXrNH0TvZkjsVmR9iI5zqn8LW+lk3xCG b/zn/Uv+3nQaNFBcW5mog8cUkZq3ViUIBwW4vp7qOHvu5mqjb0k/KxH3H6y+wrDKjLbq z1E38GWY5JCCgxV1XlcgKnjV29TBcTNKG1RGocYTUW0yzAOGHh/GnebRE9ZbZaanGZad biDSE1ZRqC081sjV+/TxbDLr3ts2I7r6PS22f3ms3JnpU4xKEvWQNRj+trs5Cw7drCwL ui1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=S4nBXQXMDji/ebcNZx5J//fUBxULdQyqIJltx58KCcw=; b=ZMBn/zGEGIXYM1eO6446XpMeC1ce8U5Cqk79rBSLirp8DEb4lkg6Rxne7OL7HLcOXL FmsNFm/CPXk2lBz13nfuU+LL+YxL3mhdChD6P92X74crk5ljiBZt7UkoInwagONsatYY nirHqbcOLdo+mcAqtFs2xBN4P6PMDLYbD5jd3kRVWZT7r9ols8Fm6I1GhrI31hJI/Wn2 3cNMWfcKyZdjUSMh8BZSoAjBKaKGngaNChjYfkMYzXHfvzd+js38//fHNRRwo7yXnr5S R38TOUFt2A5oz7fLjoIw7kwM9guM80OPzcy8HQmyxfcqZ4Q5aWiAihEWW1HHPpXtGBIE S0dw== X-Gm-Message-State: APjAAAVXN+lT8wY18cUiIENNgDyxApFQI6CmxQ25spPnZtNXVubfljzP KQeVDcaN75I+V4nLrgsswoSNrr3fTt+bNmhM+opeOpRvodU= X-Google-Smtp-Source: APXvYqzfIK4c7ctR3BHc5lyegK7TBTlR+MCQdofoGxcXoI4nlyNNHfY9ND07aGg15lYWgATG6B+tTGxEYj7CDEYhEA0= X-Received: by 2002:a2e:9b95:: with SMTP id z21mr15408343lji.291.1582105256225; Wed, 19 Feb 2020 01:40:56 -0800 (PST) MIME-Version: 1.0 From: =?UTF-8?Q?Pawe=C5=82_Szafer?= Date: Wed, 19 Feb 2020 10:40:45 +0100 Message-ID: Subject: DNS lookup resolve order To: alpine-user@lists.alpinelinux.org Content-Type: multipart/alternative; boundary="000000000000cb731d059eea951b" --000000000000cb731d059eea951b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, In network we have 2 dns servers. - pfsense unbound / dns resolver - 10.1.0.1 - Windows Server DC1 - 10.1.0.8 Alpine IP - 10.1.0.14 resolv.conf file on Alpine looks like this: search domain.local nameserver 10.1.0.1 nameserver 10.1.0.8 DC1 is used for Windows clients and pfsense dhcp leases are registered in dns resolver. *This setup works on every linux distro so far except Alpine.* Anyway I want to resolve hostname01.domain.local, which is registered only in 10.1.0.1 No. Time Source Destination Protocol Length Info 1 0.000000 10.1.0.14 10.1.0.1 DNS 97 Standard query 0x9956 A hostname01.domain.local 2 0.000041 10.1.0.14 10.1.0.8 DNS 97 Standard query 0x9956 A hostname01.domain.local 3 0.000072 10.1.0.14 10.1.0.1 DNS 97 Standard query 0x9a84 AAAA hostname01.domain.local 4 0.000088 10.1.0.14 10.1.0.8 DNS 97 Standard query 0x9a84 AAAA hostname01.domain.local 5 0.000483 10.1.0.1 10.1.0.14 DNS 97 Standard query response 0x9a84 AAAA hostname01.domain.local 6 0.000487 10.1.0.1 10.1.0.14 DNS 113 Standard query response 0x9956 A hostname01.domain.local A 10.18.0.13 7 0.000699 10.1.0.8 10.1.0.14 DNS 169 Standard query response 0x9956 No such name A hostname01.domain.local SOA dc1.domain.local 8 0.000740 10.1.0.8 10.1.0.14 DNS 169 Standard query response 0x9a84 No such name AAAA hostname01.domain.local SOA dc1.domain.local #Second attempt 9 0.163182 10.1.0.14 10.1.0.1 DNS 97 Standard query 0xb19a A hostname01.domain.local 10 0.163221 10.1.0.14 10.1.0.8 DNS 97 Standard query 0xb19a A hostname01.domain.local 11 0.163242 10.1.0.14 10.1.0.1 DNS 97 Standard query 0xb2cf AAAA hostname01.domain.local 12 0.163263 10.1.0.14 10.1.0.8 DNS 97 Standard query 0xb2cf AAAA hostname01.domain.local 13 0.163568 10.1.0.8 10.1.0.14 DNS 169 Standard query response 0xb2cf No such name AAAA hostname01.domain.local SOA dc1.domain.local 14 0.163573 10.1.0.8 10.1.0.14 DNS 169 Standard query response 0xb19a No such name A hostname01.domain.local SOA dc1.domain.local 15 0.163634 10.1.0.1 10.1.0.14 DNS 113 Standard query response 0xb19a A hostname01.domain.local A 10.18.0.13 16 0.163639 10.1.0.1 10.1.0.14 DNS 97 Standard query response 0xb2cf AAAA hostname01.domain.local My question is - why response "No such name A ..... SOA ..." is more important than response with IP? ----- Best regards, Pawe=C5=82 Szafer --000000000000cb731d059eea951b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

In network we have 2 dns servers= .
  • pfsense unbound / dns resolver - 10.1.0.1
  • Windo= ws Server DC1 - 10.1.0.8
Alpine IP - 10.1.0.14
reso= lv.conf file on Alpine looks like this:
search domain.local
= nameserver 10.1.0.1
nameserver 10.1.0.8
DC1 is used=C2=A0for Windows clients and pfsense dhcp leases a= re registered in dns resolver.
This setup works on every li= nux distro so far except Alpine.

Anyway I = want to resolve hostname01.domain.local, which is registered only in 10.1.0= .1

No. Time Source Destination Protocol Length Inf= o
1 0.000000 10.1.0.14 10.1.0.1 DNS 97 Standard query 0x9956 A hostname01.do= main.local
2 0.000041 10.1.0.14 10.1.0.8 DNS 97 Standard query 0x= 9956 A hostname01.domain.local
3 0.000072 10.1.0.14 10.1.0.1 DNS = 97 Standard query 0x9a84 AAAA hostname01.domain.local
4 0.000088 = 10.1.0.14 10.1.0.8 DNS 97 Standard query 0x9a84 AAAA hostname01.domain.loca= l
5 0.000483 10.1.0.1 10.1.0.14 DNS 97 Standard query response 0x= 9a84 AAAA hostname01.domain.local
6 0.000487 10.1.0.1 10.1.0.14 D= NS 113 Standard query response 0x9956 A hostname01.domain.local A 10.18.0.1= 3
7 0.000699 10.1.0.8 10.1.0.14 DNS 169 Standard query response 0= x9956 No such name A hostname01.domain.local SOA dc1.domain.local
8 0.000740 10.1.0.8 10.1.0.14 DNS 169 Standard query response 0x9a84 No su= ch name AAAA hostname01.domain.local SOA dc1.domain.local
#Seco= nd attempt
9 0.163182 10.1.0.14 10.1.0.1 DNS 97 Standard query = 0xb19a A hostname01.domain.local
10 0.163221 10.1.0.14 10.1.0.8 D= NS 97 Standard query 0xb19a A hostname01.domain.local
11 0.163242= 10.1.0.14 10.1.0.1 DNS 97 Standard query 0xb2cf AAAA hostname01.domain.loc= al
12 0.163263 10.1.0.14 10.1.0.8 DNS 97 Standard query 0xb2cf AA= AA hostname01.domain.local
13 0.163568 10.1.0.8 10.1.0.14 DNS 169= Standard query response 0xb2cf No such name AAAA hostname01.domain.local S= OA dc1.domain.local
14 0.163573 10.1.0.8 10.1.0.14 DNS 169 Standa= rd query response 0xb19a No such name A hostname01.domain.local SOA dc1.dom= ain.local
15 0.163634 10.1.0.1 10.1.0.14 DNS 113 Standard query r= esponse 0xb19a A hostname01.domain.local A 10.18.0.13
16 0.163639= 10.1.0.1 10.1.0.14 DNS 97 Standard query response 0xb2cf AAAA hostname01.d= omain.local

My question is - why resp= onse "No such name A ..... SOA ..." is more important than respon= se with IP?

-----
Best regards= ,
Pawe=C5=82 Szafer

--000000000000cb731d059eea951b--