I think the resolfconf has a small typo in code: for N in ${NS} ; do if [[ -n ${DOMAIN} ]] ; then NEWDOMAIN="${NEWDOMAIN} ${DOMAIN},${N}" elif [[ -n ${SEARCH} ]] ; then for S in ${SEARCH} ; do NEWSEARCH="${NEWSEARCH} ${S},${N}" done else NEWNS="${NEWNS} ${NS}" fi done The NEWNS line should be NEWNS="${NEWNS} ${N}", or there is a break command missing.
NEWNS is a space separated list of nameservers without any specific domain or search NEWDOMAIN and NEWSEARCH are space separated lists of nameservers with the domain before it, comma separated. This is how I designed it.
Sorry, you probably do not understand the problem. If there is no domain or search, then for every item in NS you add the FULL (!) NS into NEWNS. So the NS is in NEWNS as many times as the number of name servers. Of course, uniquify will fix the problem, but the problem is still there and this could cause problems in future development...
Fixed in resolvconf-gentoo-0.6 - thanks