Hi Patrik,
Than you for the reply. Sorry, I am quite new to this ML and I had
digest-only mode set so that I missed your reply in my mailbox. Please
forgive me if this message appears in a wrong thread chain.
The multi-label partial domain resolution is not an issue, and I know
it's a definition matter. I just noticed its disagreement with
getaddrinfo(3). My personal opinion is that it may make more sense to
expect host.zone to be resolve as if it were host.zone.company.com,
though. Do you know any RFC for this?
As to the sample messages, I could not get tcpdump for my test platforms
for some unknown reason. So, attached are my debug outputs with slightly
offset source code line numbers.
In both cases, resolv.conf is
# Generated by Connection Manager
nameserver 127.0.0.1
nameserver ::1
+++
CASE 1: BIND 9.3.2's "Corrupted packet" for a query for www, which is an
alias for prod-dep-lb-1273907130.us-west-2.elb.amazonaws.com, expected
to resolve as if it were www.netgear.com.
Nameservers = [ 10.20.1.31 ]
Nameservers.Configuration = [ 10.20.1.31 ]
...
Domains = [ netgear.com ]
Domains.Configuration = [ netgear.com ]
+++
CASE 2: BIND 9.7.3's ignored and discarded dns_type of ns_t_ns for a
query for shadow, which is an A record, expected to resolve as if it
were shadow.arkusa.com.
Nameservers = [ 172.16.30.21, 172.16.30.3, 172.16.30.4 ]
Nameservers.Configuration = [ ]
...
Domains = [ arkusa.com ]
Domains.Configuration = [ arkusa.com ]
This zone (arkusa.com)'s primary name server carries the following:
IN NS spice
IN NS mill2
IN NS shadow
IN NS shadow2
IN NS shadow-wlan
...
shadow IN A 172.16.30.4
Both cases resolve expectedly with resolv.conf with an external
nameserver and a search directive or if a query is made with an FQDN.
If you need more information I can provide, please let me know.
Regards,
hiro
ns_resolv:1639
00000000 41 4e 01 00 00 01 00 00 00 00 00 00 03 77 77 77 |AN...........www|
00000010 00 00 01 00 01 |.....|
00000015
ns_resolv:1705
00000000 49 c5 01 00 00 01 00 00 00 00 00 00 03 77 77 77 |I............www|
00000010 07 6e 65 74 67 65 61 72 03 63 6f 6d 00 00 01 00 |.netgear.com....|
00000020 01 |.|
00000021
ns_resolv:1639
00000000 fa b5 01 00 00 01 00 00 00 00 00 00 03 77 77 77 |.............www|
00000010 00 00 1c 00 01 |.....|
00000015
ns_resolv:1705
00000000 fa 9c 01 00 00 01 00 00 00 00 00 00 03 77 77 77 |.............www|
00000010 07 6e 65 74 67 65 61 72 03 63 6f 6d 00 00 1c 00 |.netgear.com....|
00000020 01 |.|
00000021
forward_dns_reply:1949
00000000 56 a0 81 83 00 01 00 00 00 01 00 00 03 77 77 77 |V............www|
00000010 00 00 01 00 01 00 00 06 00 01 00 00 28 19 00 40 |............(..@|
00000020 01 61 0c 72 6f 6f 74 2d 73 65 72 76 65 72 73 03 |.a.root-servers.|
00000030 6e 65 74 00 05 6e 73 74 6c 64 0c 76 65 72 69 73 |net..nstld.veris|
00000040 69 67 6e 2d 67 72 73 03 63 6f 6d 00 78 1a cd a4 |ign-grs.com.x...|
00000050 00 00 07 08 00 00 03 84 00 09 3a 80 00 01 51 80 |..........:...Q.|
00000060
forward_dns_reply:1949
00000000 56 a0 81 80 00 01 00 03 00 0d 00 0a 03 77 77 77 |V............www|
00000010 07 6e 65 74 67 65 61 72 03 63 6f 6d 00 00 01 00 |.netgear.com....|
00000020 01 c0 0c 00 05 00 01 00 00 0b f9 00 31 16 70 72 |............1.pr|
00000030 6f 64 2d 64 65 70 2d 6c 62 2d 31 32 37 33 39 30 |od-dep-lb-127390|
00000040 37 31 33 30 09 75 73 2d 77 65 73 74 2d 32 03 65 |7130.us-west-2.e|
00000050 6c 62 09 61 6d 61 7a 6f 6e 61 77 73 c0 18 c0 2d |lb.amazonaws...-|
00000060 00 01 00 01 00 00 00 17 00 04 36 c8 18 fe c0 2d |..........6....-|
00000070 00 01 00 01 00 00 00 17 00 04 36 44 e6 61 00 00 |..........6D.a..|
00000080 02 00 01 00 02 e0 b1 00 14 01 62 0c 72 6f 6f 74 |..........b.root|
00000090 2d 73 65 72 76 65 72 73 03 6e 65 74 00 00 00 02 |-servers.net....|
000000a0 00 01 00 02 e0 b1 00 04 01 63 c0 8b 00 00 02 00 |.........c......|
000000b0 01 00 02 e0 b1 00 04 01 64 c0 8b 00 00 02 00 01 |........d.......|
000000c0 00 02 e0 b1 00 04 01 65 c0 8b 00 00 02 00 01 00 |.......e........|
000000d0 02 e0 b1 00 04 01 66 c0 8b 00 00 02 00 01 00 02 |......f.........|
000000e0 e0 b1 00 04 01 67 c0 8b 00 00 02 00 01 00 02 e0 |.....g..........|
000000f0 b1 00 04 01 68 c0 8b 00 00 02 00 01 00 02 e0 b1 |....h...........|
00000100 00 04 01 69 c0 8b 00 00 02 00 01 00 02 e0 b1 00 |...i............|
00000110 04 01 6a c0 8b 00 00 02 00 01 00 02 e0 b1 00 04 |..j.............|
00000120 01 6b c0 8b 00 00 02 00 01 00 02 e0 b1 00 04 01 |.k..............|
00000130 6c c0 8b 00 00 02 00 01 00 02 e0 b1 00 04 01 6d |l..............m|
00000140 c0 8b 00 00 02 00 01 00 02 e0 b1 00 04 01 61 c0 |..............a.|
00000150 8b c1 4d 00 01 00 01 00 00 3d 59 00 04 c6 29 00 |..M......=Y...).|
00000160 04 c0 89 00 01 00 01 00 00 3d 59 00 04 c0 e4 4f |.........=Y....O|
00000170 c9 c0 a8 00 01 00 01 00 00 3d 59 00 04 c0 21 04 |.........=Y...!.|
00000180 0c c0 b7 00 01 00 01 00 00 3d 59 00 04 c7 07 5b |.........=Y....[|
00000190 0d c0 c6 00 01 00 01 00 00 3d 59 00 04 c0 cb e6 |.........=Y.....|
000001a0 0a c0 d5 00 01 00 01 00 00 3d 59 00 04 c0 05 05 |.........=Y.....|
000001b0 f1 c0 e4 00 01 00 01 00 00 3d 59 00 04 c0 70 24 |.........=Y...p$|
000001c0 04 c0 f3 00 01 00 01 00 00 3d 59 00 04 80 3f 02 |.........=Y...?.|
000001d0 35 c1 02 00 01 00 01 00 00 3d 59 00 04 c0 24 94 |5........=Y...$.|
000001e0 11 c1 11 00 01 00 01 00 00 3d 59 00 04 c0 3a 80 |.........=Y...:.|
000001f0 1e |.|
000001f1
forward_dns_reply:1949
00000000 e6 0f 81 83 00 01 00 00 00 01 00 00 03 77 77 77 |.............www|
00000010 00 00 1c 00 01 00 00 06 00 01 00 00 28 19 00 40 |............(..@|
00000020 01 61 0c 72 6f 6f 74 2d 73 65 72 76 65 72 73 03 |.a.root-servers.|
00000030 6e 65 74 00 05 6e 73 74 6c 64 0c 76 65 72 69 73 |net..nstld.veris|
00000040 69 67 6e 2d 67 72 73 03 63 6f 6d 00 78 1a cd a4 |ign-grs.com.x...|
00000050 00 00 07 08 00 00 03 84 00 09 3a 80 00 01 51 80 |..........:...Q.|
00000060
forward_dns_reply:1949
00000000 e6 0f 81 80 00 01 00 01 00 01 00 00 03 77 77 77 |.............www|
00000010 07 6e 65 74 67 65 61 72 03 63 6f 6d 00 00 1c 00 |.netgear.com....|
00000020 01 c0 0c 00 05 00 01 00 00 0b f9 00 31 16 70 72 |............1.pr|
00000030 6f 64 2d 64 65 70 2d 6c 62 2d 31 32 37 33 39 30 |od-dep-lb-127390|
00000040 37 31 33 30 09 75 73 2d 77 65 73 74 2d 32 03 65 |7130.us-west-2.e|
00000050 6c 62 09 61 6d 61 7a 6f 6e 61 77 73 c0 18 c0 44 |lb.amazonaws...D|
00000060 00 06 00 01 00 00 00 2f 00 42 06 6e 73 2d 33 33 |......./.B.ns-33|
00000070 32 09 61 77 73 64 6e 73 2d 34 31 c0 18 11 61 77 |2.awsdns-41...aw|
00000080 73 64 6e 73 2d 68 6f 73 74 6d 61 73 74 65 72 06 |sdns-hostmaster.|
00000090 61 6d 61 7a 6f 6e c0 18 00 00 00 01 00 00 1c 20 |amazon......... |
000000a0 00 00 03 84 00 12 75 00 00 00 00 3c |......u....<|
000000ac
ns_resolv:1639
00000000 b8 67 01 00 00 01 00 00 00 00 00 00 06 73 68 61 |.g...........sha|
00000010 64 6f 77 00 00 01 00 01 |dow.....|
00000018
ns_resolv:1705
00000000 1d d3 01 00 00 01 00 00 00 00 00 00 06 73 68 61 |.............sha|
00000010 64 6f 77 06 61 72 6b 75 73 61 03 63 6f 6d 00 00 |dow.arkusa.com..|
00000020 01 00 01 |...|
00000023
ns_resolv:1639
00000000 b8 67 01 00 00 01 00 00 00 00 00 00 06 73 68 61 |.g...........sha|
00000010 64 6f 77 00 00 01 00 01 |dow.....|
00000018
ns_resolv:1705
00000000 1d d3 01 00 00 01 00 00 00 00 00 00 06 73 68 61 |.............sha|
00000010 64 6f 77 06 61 72 6b 75 73 61 03 63 6f 6d 00 00 |dow.arkusa.com..|
00000020 01 00 01 |...|
00000023
ns_resolv:1639
00000000 b8 67 01 00 00 01 00 00 00 00 00 00 06 73 68 61 |.g...........sha|
00000010 64 6f 77 00 00 01 00 01 |dow.....|
00000018
ns_resolv:1705
00000000 1d d3 01 00 00 01 00 00 00 00 00 00 06 73 68 61 |.............sha|
00000010 64 6f 77 06 61 72 6b 75 73 61 03 63 6f 6d 00 00 |dow.arkusa.com..|
00000020 01 00 01 |...|
00000023
forward_dns_reply:1949
00000000 a3 c7 81 83 00 01 00 00 00 01 00 00 06 73 68 61 |.............sha|
00000010 64 6f 77 00 00 01 00 01 00 00 06 00 01 00 00 29 |dow............)|
00000020 5e 00 40 01 61 0c 72 6f 6f 74 2d 73 65 72 76 65 |^[email protected]|
00000030 72 73 03 6e 65 74 00 05 6e 73 74 6c 64 0c 76 65 |rs.net..nstld.ve|
00000040 72 69 73 69 67 6e 2d 67 72 73 03 63 6f 6d 00 78 |risign-grs.com.x|
00000050 1a cd a5 00 00 07 08 00 00 03 84 00 09 3a 80 00 |.............:..|
00000060 01 51 80 |.Q.|
00000063
forward_dns_reply:1949
00000000 a3 c7 81 83 00 01 00 00 00 01 00 00 06 73 68 61 |.............sha|
00000010 64 6f 77 00 00 01 00 01 00 00 06 00 01 00 00 29 |dow............)|
00000020 5e 00 40 01 61 0c 72 6f 6f 74 2d 73 65 72 76 65 |^[email protected]|
00000030 72 73 03 6e 65 74 00 05 6e 73 74 6c 64 0c 76 65 |rs.net..nstld.ve|
00000040 72 69 73 69 67 6e 2d 67 72 73 03 63 6f 6d 00 78 |risign-grs.com.x|
00000050 1a cd a5 00 00 07 08 00 00 03 84 00 09 3a 80 00 |.............:..|
00000060 01 51 80 |.Q.|
00000063
forward_dns_reply:1949
00000000 a3 c7 81 83 00 01 00 00 00 01 00 00 06 73 68 61 |.............sha|
00000010 64 6f 77 00 00 01 00 01 00 00 06 00 01 00 00 29 |dow............)|
00000020 5e 00 40 01 61 0c 72 6f 6f 74 2d 73 65 72 76 65 |^[email protected]|
00000030 72 73 03 6e 65 74 00 05 6e 73 74 6c 64 0c 76 65 |rs.net..nstld.ve|
00000040 72 69 73 69 67 6e 2d 67 72 73 03 63 6f 6d 00 78 |risign-grs.com.x|
00000050 1a cd a5 00 00 07 08 00 00 03 84 00 09 3a 80 00 |.............:..|
00000060 01 51 80 |.Q.|
00000063
forward_dns_reply:1949
00000000 a3 c7 85 80 00 01 00 01 00 05 00 04 06 73 68 61 |.............sha|
00000010 64 6f 77 06 61 72 6b 75 73 61 03 63 6f 6d 00 00 |dow.arkusa.com..|
00000020 01 00 01 c0 0c 00 01 00 01 00 05 7e 40 00 04 ac |...........~@...|
00000030 10 1e 04 c0 13 00 02 00 01 00 05 7e 40 00 08 05 |...........~@...|
00000040 73 70 69 63 65 c0 13 c0 13 00 02 00 01 00 05 7e |spice..........~|
00000050 40 00 02 c0 0c c0 13 00 02 00 01 00 05 7e 40 00 |@............~@.|
00000060 0e 0b 73 68 61 64 6f 77 2d 77 6c 61 6e c0 13 c0 |..shadow-wlan...|
00000070 13 00 02 00 01 00 05 7e 40 00 0a 07 73 68 61 64 |[email protected]|
00000080 6f 77 32 c0 13 c0 13 00 02 00 01 00 05 7e 40 00 |ow2..........~@.|
00000090 08 05 6d 69 6c 6c 32 c0 13 c0 91 00 01 00 01 00 |..mill2.........|
000000a0 05 7e 40 00 04 ac 10 1e 03 c0 3f 00 01 00 01 00 |.~@.......?.....|
000000b0 05 7e 40 00 04 ac 10 1e 15 c0 7b 00 01 00 01 00 |.~@.......{.....|
000000c0 05 7e 40 00 04 ac 10 1e 05 c0 61 00 01 00 01 00 |[email protected].....|
000000d0 05 7e 40 00 04 ac 10 1e 06 |.~@......|
000000d9
_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman