dhcpcd-discuss

Re: non-optimal use of -a flag with resolvconf

Roy Marples

Tue Mar 10 10:40:45 2015

Hi

On 09/03/2015 22:24, Joachim Achtzehnter wrote:
> The command line usage of Debian's resolvconf script, with which
> openresolv is supposedly compatible, uses the -a flag with an argument
> of the following format:

Enough of the supposedly.
It is compatible. Prove, in the code, otherwise.

> 
>   <interface_name>.<program_name>
> 
> It seems that dhcpcd uses the following for IPv6:
> 
>   eth0:dhcp6
> 
> and for IPv4 it simply uses the interface name by itself:
> 
>   eth0
> Two comments about this:
> 
> 1. It would be easier for various scripting purposes if dhcpcd
> identified itself as the source of DNS settings for both IPv4 and IPv6
> because there may be other sources of DNS settings for the same
> interface, i.e, add something like dhcp4 in the IPv4 case.

I find it interesting that you want to use the protocol (dhcp) rather
than the program name as requested by the Debian man page ;)
Anyway, aside from upgrading issues I'm happy to do this.

> 2. It would be preferable to use the period as a separator instead of
> the colon, both for compatibility with Debian's resolvconf, and because
> the colon's special meaning in shell scripts makes it more awkward to
> deal with.

The only code change here would be to include the period along with the
colon in the dynamic interface code list in openresolv. Again, how would
upgrades be handled?

Lastly, a colon has no special meaning in shell scripts.
If it did, it would be listed here:
http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html

Roy

Follow-Ups:
Re: non-optimal use of -a flag with resolvconfJoachim Achtzehnter
References:
Multihoming support in dhcpcd (source-dest routing)Baptiste Jonglez
Re: Multihoming support in dhcpcd (source-dest routing)Roy Marples
Re: Multihoming support in dhcpcd (source-dest routing)Baptiste Jonglez
Re: Multihoming support in dhcpcd (source-dest routing)Roy Marples
domain versus search keywords in resolvconfJoachim Achtzehnter
non-optimal use of -a flag with resolvconfJoachim Achtzehnter
Archive administrator: postmaster@marples.name