From nobody@FreeBSD.org  Tue Dec 20 18:04:17 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 3701C1065672
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 20 Dec 2011 18:04:17 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 083738FC0A
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 20 Dec 2011 18:04:17 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id pBKI4GEE066164
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 20 Dec 2011 18:04:16 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id pBKI4GR5066141;
	Tue, 20 Dec 2011 18:04:16 GMT
	(envelope-from nobody)
Message-Id: <201112201804.pBKI4GR5066141@red.freebsd.org>
Date: Tue, 20 Dec 2011 18:04:16 GMT
From: Eugen Konkov <kes-kes@yandex.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: IP address  is not round robined if DNS name has many IPs
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         163482
>Category:       kern
>Synopsis:       IP address  is not round robined if DNS name has many IPs
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    dougb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 20 18:10:11 UTC 2011
>Closed-Date:    Fri Jan 20 01:42:01 UTC 2012
>Last-Modified:  Fri Jan 20 01:42:01 UTC 2012
>Originator:     Eugen Konkov
>Release:        
>Organization:
ISP FreeLine
>Environment:
>Description:
# nslookup
> set debug
> vpn.in
Server:         127.0.0.1
Address:        127.0.0.1#53

------------
    QUESTIONS:
        vpn.in, type = A, class = IN
    ANSWERS:
    ->  vpn.in
        internet address = 10.11.19.54
        ttl = 10
    ->  vpn.in
        internet address = 10.5.0.17
        ttl = 10
    AUTHORITY RECORDS:
    ->  vpn.in
        nameserver = vpn.in.
        ttl = 10800
    ADDITIONAL RECORDS:
------------
Name:   vpn.in
Address: 10.11.19.54
Name:   vpn.in
Address: 10.5.0.17
> ^C
# date
Tue Dec 20 19:56:31 UTC 2011
# ping vpn.in
PING vpn.in (10.11.19.54): 56 data bytes
64 bytes from 10.11.19.54: icmp_seq=0 ttl=64 time=0.173 ms
64 bytes from 10.11.19.54: icmp_seq=1 ttl=64 time=0.167 ms
^C
--- vpn.in ping statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.167/0.170/0.173/0.003 ms

# date
Tue Dec 20 19:57:04 UTC 2011
flux# ping vpn.in
PING vpn.in (10.11.19.54): 56 data bytes
64 bytes from 10.11.19.54: icmp_seq=0 ttl=64 time=0.149 ms
64 bytes from 10.11.19.54: icmp_seq=1 ttl=64 time=0.194 ms
^C
--- vpn.in ping statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.149/0.171/0.194/0.023 ms

but if I ping vpn.in with interval 15 sec from Windows (that machine has same DNS server as this one)
I get different IPs for domain name vpn.in
>How-To-Repeat:

>Fix:
add 
 zone "vpn.in" {
     type master;
     file "/etc/namedb/master/vpn.in.fwd";
     };
to /etc/namedb/named.conf

create file /etc/namedb/master/vpn.in.fwd
$TTL 3h                 ;Serial, Refresh, Retry, Expire, Neg. TTL

@       SOA     localhost. nobody.in.   2011122001      1d 2h 100d 3h
                NS      @

        10      A       10.5.0.17
        10      A       10.11.19.54

set resolve.conf
nameserver 127.0.0.1
or set the IP address the bind is listening on.
On windows host add DNS server to host with this bind.

Try to ping from FreeBSD and Windows

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: eadler 
Responsible-Changed-When: Mon Dec 26 01:51:26 UTC 2011 
Responsible-Changed-Why:  
assign 

http://www.freebsd.org/cgi/query-pr.cgi?pr=163482 

From: =?windows-1251?B?yu7t/Oru4iDF4uPl7ejp?= <kes-kes@yandex.ru>
To: bug-followup@FreeBSD.org, kes-kes@yandex.ru
Cc:  
Subject: Re: kern/163482: IP address  is not round robined if DNS name has many IPs
Date: Thu, 19 Jan 2012 09:07:20 +0200

 Answer from: Mark Andrews via RT <bind9-bugs@isc.org>
 
 
 3261.   [func]          RRset ordering now defaults to random. [RT #27174]
 
 3260.   [bug]           "rrset-order cyclic" could appear not to rotate
                         for some query patterns.  [RT #27170/27185]
 
 We committed a different fix to the one I sent you earlier.   The above
 will be in 9.9.0 final.
 
 
 
State-Changed-From-To: open->closed 
State-Changed-By: dougb 
State-Changed-When: Fri Jan 20 01:40:42 UTC 2012 
State-Changed-Why:  

Bug is fixed in later versions of BIND. The fix will be imported when it's 
available from the vendor. 


Doug 


Responsible-Changed-From-To: freebsd-net->dougb 
Responsible-Changed-By: dougb 
Responsible-Changed-When: Fri Jan 20 01:40:42 UTC 2012 
Responsible-Changed-Why:  

BIND is my area. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=163482 
>Unformatted:
