66 links
  • Ban's links
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
1 results tagged sane x
  • Resolve mDNS/Bonjour local network names from CLI

    ping can resolve .local domains, but e.g. host can't, which is annoying when trying to resolve the IP address of a mDNS host from a e.g. script.
    Fortunately, there is avahi-resolve that can do that, and is easy enough to use in scripts.

    The reason I needed that was to consolidate a setup where a network scanner provides a mDNS name, but it can't be used in the SANE device path, only the IP works. So, replace the IP field in the call with "$(avahi-resolve --name -4 NAME.local | awk '{print $2}')" and voila.

    November 13, 2024 at 15:52:24 GMT+1 * - permalink -
    QRCode
    - https://manpages.debian.org/testing/avahi-utils/avahi-resolve.1.en.html
    mDNS DNS Linux shell Debian Avahi sane cups
Links per page: 20 50 100
Shaarli - The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community - Help/documentation