Date: Thu, 16 Jun 2011 14:03:56 +0900 From: Hajimu UMEMOTO <ume@mahoroba.org> To: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net> Cc: Hiroki Sato <hrs@FreeBSD.org>, net@FreeBSD.org Subject: Re: [RFC] resolvconf(8) interface id Message-ID: <ygelix2qseb.wl%ume@mahoroba.org> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, >>>>> On Wed, 15 Jun 2011 20:21:15 +0000 >>>>> "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net> 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/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ygelix2qseb.wl%ume>