• Re: Unable to locate printer "HOSTNAME.local", help with troubleshootin

    From =?UTF-8?Q?Uro=C5=A1_Mikanovi=C4=8D?@21:1/5 to All on Mon Jun 16 19:30:01 2025
    Thanks for the tips, I figured something out.

    Seems like mdns4_minimal is "shy". In the case of the "minimal" version
    of `nss-mdns`, from the README:

    * If the request does not end with `.local` or `.local.`, it is
    rejected. Example: `example.test` is rejected.

    * If the request has more than two labels, it is rejected. Example:
    `foo.bar.local` is rejected. **This is the two-label limit
    heuristic.**

    * If, during a request, the system-configured unicast DNS (specified
    in `/etc/resolv.conf`) reports an `SOA` record for the top-level
    `local` name, the request is rejected. Example: `host -t SOA local`
    returns something other than `Host local not found:
    3(NXDOMAIN)`. **This is the unicast SOA heuristic.**

    * Otherwise, the request is processed.

    The first two points seem satisfied with `BRNBCF4D4182ECD.local`.

    `host -t SOA local` returns:

    ```
    local has SOA record local. nobody.invalid. 1 3600 1200 604800 10800
    ```

    Not sure what to make of that as I don't really understand the point and
    don't understand the function and contents of `resolv.conf`. My
    `resolv.conf` was generated by NetworkManager.


    **Anyway.** I amended `/etc/nsswitch.conf` hosts line to this:

    ```
    hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
    ```

    And created `/etc/mdns.allow`:

    ```
    .local.
    .local
    ```

    Now I can ping `BRNBCF4D4182ECD.local` and print jobs don't get stuck
    anymore. Thank you!

    I am still interested in what in my setup clashes with the way Debian configures `nsswitch.conf` by default.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Teemu Likonen@21:1/5 to All on Tue Jun 17 07:20:01 2025
    * 2025-06-16 00:31:48+0200, Uroš Mikanovič wrote:

    I can't get my network discovered printer to print. CUPS finds and adds
    my printer easily with "Find New Printers" on the web interface. But
    every job fails with:

    Unable to locate printer "BRNBCF4D4182ECD.local".

    That reminds me of issues with one home router-firewall-wlan device.
    After being turned on for several weeks the Avahi system (multicast DNS) started to fail first. Couldn't connect to other devices with .local
    address. Sometimes there were other network problems too. By resetting
    the router things worked again. I can't give very specific information
    but that was definitely the pattern.

    --
    /// Teemu Likonen - .-.. https://www.iki.fi/tlikonen/
    // OpenPGP: 6965F03973F0D4CA22B9410F0F2CAE0E07608462

    --=-=-Content-Type: application/pgp-signature; name="signature.asc"

    -----BEGIN PGP SIGNATURE-----

    iIYEARYIAC4WIQQL23klfGMkeOvdGCt57xklfWtWWwUCaFD54hAcdGxpa29uZW5A aWtpLmZpAAoJEHnvGSV9a1ZbtH4BAPmVZaL7gmFsdlFL0FljZD+DgNvkqVUpgTHM Ol5xiTsxAQCf3xYftvn48GjM6iOoBGpL1w29j4N0SpUZYhMLEXpSBg==g/S0
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)