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 |