On 02/03/2017 22:57, the...@sys-concept.com wrote: > running "ifconfig" is it possible to display hostname, especially with > "tun" interfaces.
No. ifconfig operates at layer 2. Hostnames is a dns/resolver concept operating at a much higher level. DNs relies on layer 2 so using rDNS to display hostnames (or worse, that abomination called /etc/hosts) is logically circular and nonsensical Hostnames are there to abstract addresses when addresses don't matter. Addresses very much do matter at the ifconfig level so if you need them then, you probably shouldn't be looking at ifconfig at all (don't you know your own addresses?) And finally the relationship between address and names is many<->many, so which one you gonna use? -- Alan McKinnon alan.mckin...@gmail.com