Sorry if this has already been asked in some other way, I couldn't find out, and have had pretty terrible experiences trying to figure out how to properly use avahi.
avahi working properly, and can use it to detect my wifi enabled
Brother scanner. I can figure out its IP address by issuing
avahi-browse -arp|grep -i brother
So I can then modify my sane config file (technically it's the brother config file that sane uses:
and add the scanner's IP address.
However, if the network goes down, and the scanner is given a new IP address by the router, that means I have to go through this process again. So here I am, thinking, "isn't this the whole point of avahi?? To not have to enter IP addresses?" So I try adding the avahi hostname to the file instead of the IP address:
DEVICE=brother-scanner-avahi , "MFC-avahi" , Unknown , IP-ADDRESS=BRNXXXXXXX.local
DEVICE=brother-scanner-101 , "MFC-101" , Unknown , IP-ADDRESS=192.168.0.101
But this doesn't work. Well,
brsaneconfig4 -p does, because it just hands off the request to
ping which can handle the avahi hostname just fine.
xsane (0.998) just says:
Failed to open device 'brother4:net1;dev2': Invalid argument
So, my thought is to somehow set some internal static IP to "resolve" to the avahi ip. Is there some way to do this? For example, if I wanted:
to just be an alias for the (dynamic) resolved avahi IP address name of the device. Kind of like the reverse of what the
hosts file does. I'm thinking this might involve
squid or something else like those, with which I have no experience, so I wouldn't know where to begin.
This is a fedora linux machine.
Edit: I would like to avoid doing this on the router, by the way, as I want to know if this is even possible to achieve this way.