Comment # 22 on bug 1003872 from
(In reply to Fabian Vogt from comment #19)
> I wonder whether it might be possible to simply use the kernel's address for
> the active mount, at least as a fallback. It can be obtained via findmnt -t
> nfs,nfs4 -nro OPTIONS / | sed 's/.*,addr=\([^=]*\)/\1/'.

The hint to use findmnt works also in more exotic scenarios like nfsserver
in /etc/hosts only (with static setup) or NIS instead DNS in nsswitch.conf.

It's worth a beer!


You are receiving this mail because: