From owner-freebsd-net@FreeBSD.ORG Thu Jun 16 05:05:10 2011 Return-Path: Delivered-To: net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3855A106566B; Thu, 16 Jun 2011 05:05:10 +0000 (UTC) (envelope-from ume@mahoroba.org) Received: from mail.mahoroba.org (ent.mahoroba.org [IPv6:2001:2f0:104:8010::1]) by mx1.freebsd.org (Postfix) with ESMTP id CEF648FC15; Thu, 16 Jun 2011 05:05:09 +0000 (UTC) Received: from asuka.mahoroba.org (ume@ent.mahoroba.org [IPv6:2001:2f0:104:8010::1]) (user=ume mech=CRAM-MD5 bits=0) by mail.mahoroba.org (8.14.4/8.14.4) with ESMTP/inet6 id p5G53wI8052674 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 16 Jun 2011 14:04:46 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Thu, 16 Jun 2011 14:03:56 +0900 Message-ID: From: Hajimu UMEMOTO To: "Bjoern A. Zeeb" In-Reply-To: <6FE95AC6-CCB2-45B0-8347-AB31283EE144@lists.zabbadoz.net> References: <20110616.015317.781291617533474654.hrs@allbsd.org> <6FE95AC6-CCB2-45B0-8347-AB31283EE144@lists.zabbadoz.net> User-Agent: xcite1.60> Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-2022-JP-2?B?R29qGyQoRCtXGyhC?=) APEL/10.8 Emacs/23.3 (amd64-portbld-freebsd8.2) MULE/6.0 (HANACHIRUSATO) X-Operating-System: FreeBSD 8.2-STABLE X-PGP-Key: http://www.imasy.or.jp/~ume/publickey.asc X-PGP-Fingerprint: 1F00 0B9E 2164 70FC 6DC5 BF5F 04E9 F086 BF90 71FE Organization: Internet Mutual Aid Society, YOKOHAMA X-PGP-Key: http://www.imasy.or.jp/~ume/publickey.asc X-PGP-Fingerprint: 1F00 0B9E 2164 70FC 6DC5 BF5F 04E9 F086 BF90 71FE MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (mail.mahoroba.org [IPv6:2001:2f0:104:8010::1]); Thu, 16 Jun 2011 14:04:46 +0900 (JST) X-Virus-Scanned: clamav-milter 0.97.1 at asuka.mahoroba.org X-Virus-Status: Clean X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, T_RP_MATCHES_RCVD autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on asuka.mahoroba.org Cc: Hiroki Sato , net@FreeBSD.org Subject: Re: [RFC] resolvconf(8) interface id X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jun 2011 05:05:10 -0000 Hi, >>>>> On Wed, 15 Jun 2011 20:21:15 +0000 >>>>> "Bjoern A. Zeeb" said: bzeeb> having helped some friends running penguin OS in the past I have been bzeeb> confronted with what OpenSuse does. Apart from a completely over bzeeb> engineered framework they have the ability to sort entries by ifname bzeeb> or regex at least, which I am not sure our current openresolv.conf bzeeb> provides. I think all policy should go into that one config file as bzeeb> in order of interfaces and order of programs. I'm not sure what OpenSuse does. But, openresolv does sort entries by ifname. You can put /etc/resolvconf.conf to modify the default policy. My /etc/resolvconf.conf is as follows for example: resolv_conf=/etc/resolv.conf resolv_conf_options=edns0 # If you run a local name server, you should uncomment the below line and # configure your subscribers configuration files below. #name_servers=127.0.0.1 #dynamic_order="tap[0-9]* tun[0-9]* ng[0-9]*:* ng[0-9]* vpn vpn[0-9]* ppp[0-9]* ippp[0-9]*" interface_order="lo lo[0-9]* [a-z]*[0-9]*:*" In my environment, dhclient adds the entry as em0, rtsold adds the entry as em0:slaac, and dhcp6c adds the entry as em0:dhcpv6. So, above conf prefer IPv6 over IPv4. The problem is that openresolv distinguish the entries just by an fname. We need to distinguish them by the source or by the address family, too. The proposal from hrs-san addresses this issue. Sincerely, -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan ume@mahoroba.org ume@{,jp.}FreeBSD.org http://www.imasy.org/~ume/