dhcpcd-discuss

non-optimal use of -a flag with resolvconf

Joachim Achtzehnter

Mon Mar 09 22:24:55 2015

Hi Roy,

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:

  <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.

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.

Thanks,

Joachim


--
joachima@xxxxxxxxxxxxxx http://www.netacquire.com

Follow-Ups:
Re: non-optimal use of -a flag with resolvconfRoy Marples
Re: non-optimal use of -a flag with resolvconfRoy Marples
Re: non-optimal use of -a flag with resolvconfRoy Marples
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
Archive administrator: postmaster@marples.name