On Sun, Nov 23, 2025 at 06:25:27PM +0000, [email protected] wrote: > On Sun, 23 Nov 2025, [email protected] wrote: > > > On Sun, Nov 23, 2025 at 05:39:15PM +0000, [email protected] wrote: > >> i've used sshfs with autofs for many years with little or no problems > >> today i added a new server that refuses to work > >> > >> automount[1907]: add_host_addrs: hostname lookup for :sshfs#user@foo-bar > >> failed: Name or service not known > >> > >> the entry in auto.sshfs is exactly the same as 7 others > >> only the host name has a - in it > >> > >> i can use sshfs on the command line with this server just fine > > > > Wait: in the command line that works? Perhaps then name > > resolution isn't working yet at the moment systemd tries > > to do the automount? > > i have no problem accessing this server > the host command returns a correct name > also dig and nslookup > i tried changing the host name entry to ip address > still same error > i believe the problem is the - in the key part > i tried escaping it and quoting it > still not working
Strange. The dash is -- and always has been -- a regular Internet host name character. Just out of kicks: have you made sure that the string in the file is honest ASCII? No em-dash or worse? Have a look at it with hexdump -C. You might try to catch the host query with tcpdump, that might work if the resolver actually doesn't swallow the thing altogether. Cheers -- tomás
signature.asc
Description: PGP signature

