Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] ifconfig - display/list hostname with IP address
Date: Thu, 02 Mar 2017 21:15:12
Message-Id: 70d8fbb9-729a-f8e0-f4e2-b4d92ddf79dc@gmail.com
In Reply to: [gentoo-user] ifconfig - display/list hostname with IP address by thelma@sys-concept.com
1 On 02/03/2017 22:57, thelma@×××××××××××.com wrote:
2 > running "ifconfig" is it possible to display hostname, especially with
3 > "tun" interfaces.
4
5 No.
6
7 ifconfig operates at layer 2.
8 Hostnames is a dns/resolver concept operating at a much higher level.
9
10 DNs relies on layer 2 so using rDNS to display hostnames (or worse, that
11 abomination called /etc/hosts) is logically circular and nonsensical
12
13 Hostnames are there to abstract addresses when addresses don't matter.
14 Addresses very much do matter at the ifconfig level so if you need them
15 then, you probably shouldn't be looking at ifconfig at all (don't you
16 know your own addresses?)
17
18 And finally the relationship between address and names is many<->many,
19 so which one you gonna use?
20
21 --
22 Alan McKinnon
23 alan.mckinnon@×××××.com

Replies

Subject Author
Re: [gentoo-user] ifconfig - display/list hostname with IP address thelma@×××××××××××.com