Don Hackett: [BIND-BUGS #1090] [bind bug] leading zero's give bad address
Paul A Vixie
vixie at mibh.net
Fri Sep 1 21:20:53 UTC 2000
i need help with this. it seems like octal interpretation is counterintuitive
but i thought it was the standard long before i came on the scene. if decimal
is how BSD inet_addr() classically behaved, and i broke it, then i'll change
it to decimal.
------- Forwarded Message
Return-Path: don_hackett at adc.com
Received: from box.mfnx.net (box.mfnx.net [204.152.184.227])
by redpaul.mibh.net (8.9.3/8.9.1) via ESMTP id OAA53926
for <vixie at redpaul.mibh.net>; Fri, 1 Sep 2000 14:15:01 -0700 (PDT)
env-from (don_hackett at adc.com)
Received: from bb.rc.vix.com (bb.rc.vix.com [204.152.187.11])
by box.mfnx.net (8.9.3/8.9.1) via ESMTP id OAA16629
for <vixie at mibh.net>; Fri, 1 Sep 2000 14:15:01 -0700 (PDT)
env-from (don_hackett at adc.com)
Received: (from daemon at localhost)
by bb.rc.vix.com (8.9.1/8.9.1) id OAA21544
for bind-bugs-dist at isc.org; Fri, 1 Sep 2000 14:15:00 -0700 (PDT)
env-from (don_hackett at adc.com)
Received: from isrv3.isc.org (isrv3.isc.org [204.152.184.87])
by bb.rc.vix.com (8.9.1/8.9.1) via ESMTP id OAA21536
for <bind-bugs-isc at bb.rc.vix.com>; Fri, 1 Sep 2000 14:14:59 -0700 (PDT)
env-from (don_hackett at adc.com)
Received: from obelisk.adc.com (smtp.adc.com [155.226.10.207])
by isrv3.isc.org (8.9.1/8.9.1) via ESMTP id OAA05228
for <bind-bugs at isc.org>; Fri, 1 Sep 2000 14:14:59 -0700 (PDT)
env-from (don_hackett at adc.com)
Received: from galaxy.aps.adc.com (root at galaxy.aps.adc.com [155.226.6.200])
by obelisk.adc.com (8.9.0/8.9.0) with ESMTP id QAA17988;
Fri, 1 Sep 2000 16:14:54 -0500 (CDT)
Received: from adc.com (dkh at loki.aps.adc.com [155.226.7.127]) by aps.adc.com with ESMTP (8.8.6 (PHNE_17135)/8.7.3) id QAA13117; Fri, 1 Sep 2000 16:14:56 -0500 (CDT)
Message-Id: <39B01C27.48CAF529 at adc.com>
Date: Fri, 01 Sep 2000 16:14:15 -0500
From: Don Hackett <don_hackett at adc.com>
Organization: ADC Telecommunications
X-Mailer: Mozilla 4.72 [en] (X11; U; HP-UX B.10.20 9000/782)
X-Accept-Language: en
Mime-Version: 1.0
To: bind-bugs at isc.org
Cc: ~CASD-Admins <CASD-Admins at adc.com>, bind-bugs at isc.org
Subject: [BIND-BUGS #1090] [bind bug] leading zero's give bad address
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Good morning,
We have found that when you use leading zero's on the last segment
of the IP address (numbers between 10 and 99) -> name resolution,
it returns a different IP address.
This seems to be the case for each of the 8.x and 4.x DNS servers that I have
found.
The biggest effect of this is doing a telnet 155.226.006.010
and ending up on the 155.226.6.8 machine.
(part of one of our product displays an IP address with leading zero's
for now, and people type this in literally)
- -don
supporting DNS queries...
- ---------------------------------------------------------
Using an HP/UX 10.20 named 8.2.2-P5 server:
Sep 1 12:32:20 loki named[5274]: starting. named 8.2.2-P5 Wed Aug 30 19:14:12 CDT 2000
0 dkh loki 12:49pm [~/src/bind/src/bin/named] host 155.226.6.10 loki
Using domain server:
Name: loki.aps.adc.com
Address: 155.226.7.127
Aliases:
10.6.226.155.IN-ADDR.ARPA domain name pointer aegir.aps.adc.com
0 dkh loki 12:48pm [~/src/bind/src/bin/named] host 155.226.6.010 loki
Using domain server:
Name: loki.aps.adc.com
Address: 155.226.7.127
Aliases:
8.6.226.155.IN-ADDR.ARPA domain name pointer bart.aps.adc.com
0 dkh loki 12:49pm [~/src/bind/src/bin/named] host 155.226.6.99 loki
Using domain server:
Name: loki.aps.adc.com
Address: 155.226.7.127
Aliases:
99.6.226.155.IN-ADDR.ARPA domain name pointer bootserver4.aps.adc.com
0 dkh loki 12:49pm [~/src/bind/src/bin/named] host 155.226.6.099 loki
Using domain server:
Name: loki.aps.adc.com
Address: 155.226.7.127
Aliases:
Host not found, try again.
- -----------------------------------------------------------------------
This appears to also show up in other public DNS servers:
0 dkh loki 12:50pm [~/src/bind/src/bin/named] host 155.226.24.010 155.226.10.200
Using domain server 155.226.10.200:
8.24.226.155.IN-ADDR.ARPA domain name pointer dx1530-ud695745.adc.com
0 dkh loki 12:51pm [~/src/bind/src/bin/named] host uranium.chem.umn.edu
uranium.chem.umn.edu has address 128.101.162.10
0 dkh loki 12:53pm [~/src/bind/src/bin/named] host 128.101.162.010
8.162.101.128.IN-ADDR.ARPA domain name pointer x162-8.chem.umn.edu
0 dkh loki 12:53pm [~/src/bind/src/bin/named] host 128.101.162.010 128.101.101.101
Using domain server 128.101.101.101:
8.162.101.128.IN-ADDR.ARPA domain name pointer x162-8.chem.umn.edu
0 dkh loki 12:53pm [~/src/bind/src/bin/named] host 128.101.162.010 209.98.98.98
Using domain server 209.98.98.98:
8.162.101.128.IN-ADDR.ARPA domain name pointer x162-8.chem.umn.edu
- --------------------------------------------------------------------
And run from different platforms:
- ---- RedHat 6.1 linux ---------
0 dkh ventrue 12:36pm [~] host 128.101.162.010
8.162.101.128.IN-ADDR.ARPA domain name pointer x162-8.chem.umn.edu
- ---- Solaris 2.7 --------------
# nslookup
Default Server: pooh.aps.adc.com
Address: 155.226.6.69
> 155.226.6.010
Server: pooh.aps.adc.com
Address: 155.226.6.69
Name: bart.aps.adc.com
Address: 155.226.6.8
- -------------------------------------------------------------------
using a 4.9.7 bind server that comes with HP
0 dkh gizmo 1:04pm [/var/named] host 155.226.6.010 localhost
Name: bart.aps.adc.com
Address: 155.226.6.8
0 dkh gizmo 1:12pm [/var/named] host 207.46.130.014 DNS1.microsoft.com
Nameserver DNS1.microsoft.com not running
207.46.130.014 does not exist at DNS1.microsoft.com (Authoritative answer)
69 dkh gizmo 1:12pm [/var/named] host 207.46.130.14 DNS1.microsoft.com
Name: microsoft.net
Address: 207.46.130.14
- -----------------------------------------------------------------
Microsoft DNS just does not know how to handle this and returns an error.
0 dkh gizmo 1:12pm [/var/named] host 207.46.130.014 DNS1.microsoft.com
Nameserver DNS1.microsoft.com not running
207.46.130.014 does not exist at DNS1.microsoft.com (Authoritative answer)
69 dkh gizmo 1:12pm [/var/named] host 207.46.130.14 DNS1.microsoft.com
Name: microsoft.net
Address: 207.46.130.14
- --
Don Hackett
Phone: (952) 946-2275
Fax: (952) 946-3590
EMail: don_hackett at adc.com
------- End of Forwarded Message
More information about the bind-workers
mailing list