[Pkg-utopia-maintainers] Bug#960942: Bug#960942: Bug#960942: network-manager: only (undocumented) numeric values work for connection.mdns

Michael Biebl biebl at debian.org
Mon May 18 18:02:12 BST 2020


Am 18.05.20 um 18:53 schrieb Michael Biebl:
> Am 18.05.20 um 18:02 schrieb David Bremner:
>> Package: network-manager
>> Version: 1.24.0-1
>> Severity: normal
>>
>> In order to get MulticastDNS working with nm and systemd-resolved, I had to set
>>
>> connection.mdns=1   # for 'resolve'
>> connection.mdns=2   # for 'yes'
>>
>> I'm not sure if I missed something about the config file format. From
>> the documentation it seemed that
> 
> Which documentation?
> 
>> connection.mdns=yes
>>
>> should work, but it did not (i.e. resolvectl status did not show MDNS
>> enabled, and resolvectl query foo.local fails)
> 
> man 5 nm-settings [1] has
> 
> 
>>        │mdns                 │ int32                                │ -1            │ Whether mDNS is enabled for            │
>>        │                     │                                      │               │ the connection. The permitted          │
>>        │                     │                                      │               │ values are: "yes" (2)                  │
>>        │                     │                                      │               │ register hostname and                  │
>>        │                     │                                      │               │ resolving for the connection,          │
>>        │                     │                                      │               │ "no" (0) disable mDNS for the          │
>>        │                     │                                      │               │ interface, "resolve" (1) do            │
>>        │                     │                                      │               │ not register hostname but              │
>>        │                     │                                      │               │ allow resolving of mDNS host           │
>>        │                     │                                      │               │ names and "default" (-1) to            │
>>        │                     │                                      │               │ allow lookup of a global               │
>>        │                     │                                      │               │ default in                             │
>>        │                     │                                      │               │ NetworkManager.conf. If                │
>>        │                     │                                      │               │ unspecified, "default"                 │
>>        │                     │                                      │               │ ultimately depends on the DNS          │
>>        │                     │                                      │               │ plugin (which for                      │
>>        │                     │                                      │               │ systemd-resolved currently             │
>>        │                     │                                      │               │ means "no"). This feature              │
>>        │                     │                                      │               │ requires a plugin which                │
>>        │                     │                                      │               │ supports mDNS. Otherwise the           │
>>        │                     │                                      │               │ setting has no effect. One             │
>>        │                     │                                      │               │ such plugin is                         │
>>        │                     │                                      │               │ dns-systemd-resolved.     
> 
> which seems consistent with what you did.

Oh, are you directly manipulating the settings file via a text editor?
If so, you need to use the type that is specified in the keyfile format
(in this case int32).

I would advice using nmcli though, where you can manipulate the settings
via the symbolic names.

# nmcli connection modify <id> connection.mdns yes|no|resolve|default

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-utopia-maintainers/attachments/20200518/77b40e80/attachment.sig>


More information about the Pkg-utopia-maintainers mailing list