Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Oct 2006 00:18:31 +0900
From:      Hajimu UMEMOTO <ume@freebsd.org>
To:        "Jiawei Ye" <leafy7382@gmail.com>
Cc:        Doug Barton <dougb@freebsd.org>, Kris Kennaway <kris@obsecurity.org>, nork@freebsd.org, "Simon L. Nielsen" <simon@freebsd.org>, freebsd-current@freebsd.org, Joel@freebsd.org, Ion-Mihai IOnut Tetcu <itetcu@freebsd.org>
Subject:   Re: Resolver not always resolving hostnames
Message-ID:  <ygehcxtkaig.wl%ume@mahoroba.org>
In-Reply-To: <c21e92e20610240641k417dd148q333dd75d8478c459@mail.gmail.com>
References:  <20061022095811.GA10743@zaphod.nitro.dk> <ygeiriczkir.wl%ume@mahoroba.org> <1161515330.751.9.camel@localhost> <200610221423.19817.andy@athame.co.uk> <453BFC2A.5010501@FreeBSD.org> <20061023022928.35b7b23c@it.buh.tecnik93.com> <c21e92e20610231850p368221cfx13b107cc6939b4ab@mail.gmail.com> <20061024021919.GA74370@xor.obsecurity.org> <c21e92e20610231924r6d5029d9wc0bacc5a7a5a4078@mail.gmail.com> <453D9B3B.5090000@FreeBSD.org> <c21e92e20610240641k417dd148q333dd75d8478c459@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

>>>>> On Tue, 24 Oct 2006 21:41:44 +0800
>>>>> "Jiawei Ye" <leafy7382@gmail.com> said:

leafy7382> On 10/24/06, Doug Barton <dougb@freebsd.org> wrote:
>
> Try applying the patch, and commenting out the options line. The patch
> fixes things in what should be a more robust way.
>
> Doug
>
> --
>
>      This .signature sanitized for your protection
leafy7382> This is much better. It would be great if this is commited.

I've committed it into 7-CURRENT, and I'll MFC it into RELENG_6 after
3 days.

The fix should help in certain case.  However, it seems doesn't help
for nork-san's case.  He could reproduce it, and sent me his ktrace
output.  As far as I can see his output, his local name server (BIND
9.3.2-P1) returned the response with no answer record.  As a result,
his csup ended up with following error:

	Name lookup failure for "cvsup.jp.freebsd.org": hostname nor
	servname provided, or not known

I suspect that the BIND9's named have some problem.


  3434 csup     CALL  sendto(0x4,0x808f000,0x26,0,0,0)
  3434 csup     GIO   fd 4 wrote 38 bytes
       0x0000 855c 0100 0001 0000 0000 0000 0563 7673  |.\...........cvs|
       0x0010 7570 026a 7007 6672 6565 6273 6403 6f72  |up.jp.freebsd.or|
       0x0020 6700 0001 0001                           |g.....|

  3434 csup     RET   sendto 38/0x26
  3434 csup     CALL  clock_gettime(0,0xbfbfcca8)
  3434 csup     RET   clock_gettime 0
  3434 csup     CALL  kevent(0x3,0xbfbfcda0,0x1,0xbfbfcda0,0x1,0xbfbfcd78)
  3434 csup     RET   kevent 1
  3434 csup     CALL  recvfrom(0x4,0x806f000,0x10000,0,0xbfbfcfc0,0xbfbfcd74)
  3434 csup     GIO   fd 4 read 38 bytes
       0x0000 855c 8180 0001 0000 0000 0000 0563 7673  |.\...........cvs|
       0x0010 7570 026a 7007 6672 6565 6273 6403 6f72  |up.jp.freebsd.or|
       0x0020 6700 0001 0001                           |g.....|

  3434 csup     RET   recvfrom 38/0x26
  3434 csup     CALL  close(0x4)
  3434 csup     RET   close 0
  3434 csup     CALL  close(0x3)
  3434 csup     RET   close 0
  3434 csup     CALL  kqueue
  3434 csup     RET   kqueue 3
  3434 csup     CALL  socket(0x2,0x2,0)
  3434 csup     RET   socket 4
  3434 csup     CALL  connect(0x4,0x402b9490,0x10)
  3434 csup     RET   connect 0
  3434 csup     CALL  sendto(0x4,0x808f000,0x35,0,0,0)
  3434 csup     GIO   fd 4 wrote 53 bytes
       0x0000 855d 0100 0001 0000 0000 0000 0563 7673  |.]...........cvs|
       0x0010 7570 026a 7007 6672 6565 6273 6403 6f72  |up.jp.freebsd.or|
       0x0020 670a 6e69 6e74 682d 6e69 6e65 0363 6f6d  |g.ninth-nine.com|
       0x0030 0000 0100 01                             |.....|

  3434 csup     RET   sendto 53/0x35
  3434 csup     CALL  clock_gettime(0,0xbfbfcca8)
  3434 csup     RET   clock_gettime 0
  3434 csup     CALL  kevent(0x3,0xbfbfcda0,0x1,0xbfbfcda0,0x1,0xbfbfcd78)
  3434 csup     RET   kevent 1
  3434 csup     CALL  recvfrom(0x4,0x806f000,0x10000,0,0xbfbfcfc0,0xbfbfcd74)
  3434 csup     GIO   fd 4 read 104 bytes
       0x0000 855d 8583 0001 0000 0001 0000 0563 7673  |.]...........cvs|
       0x0010 7570 026a 7007 6672 6565 6273 6403 6f72  |up.jp.freebsd.or|
       0x0020 670a 6e69 6e74 682d 6e69 6e65 0363 6f6d  |g.ninth-nine.com|
       0x0030 0000 0100 01c0 2100 0600 0100 0151 8000  |......!......Q..|
       0x0040 2703 6e73 31c0 210a 686f 7374 6d61 7374  |'.ns1.!.hostmast|
       0x0050 6572 c021 7792 15a4 0000 1c20 0000 0384  |er.!w...... ....|
       0x0060 0024 ea00 0001 5180                      |.$....Q.|

  3434 csup     RET   recvfrom 104/0x68
  3434 csup     CALL  close(0x4)
  3434 csup     RET   close 0
  3434 csup     CALL  close(0x3)
  3434 csup     RET   close 0
  3434 csup     CALL  break(0x807e000)
  3434 csup     RET   break 0
  3434 csup     CALL  fstat(0x1,0xbfbfdaf0)
  3434 csup     RET   fstat 0
  3434 csup     CALL  ioctl(0x1,TIOCGETA,0xbfbfdb30)
  3434 csup     RET   ioctl 0
  3434 csup     CALL  write(0x1,0x806e000,0x5d)
  3434 csup     GIO   fd 1 wrote 93 bytes
       "Name lookup failure for "cvsup.jp.freebsd.org": hostname nor servname \
        provided, or not known
       "
Sincerely,

--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
ume@mahoroba.org  ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ygehcxtkaig.wl%ume>