[lkml]   [2006]   [May]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] Add compile domain (was: Re: [PATCH] Well, Linus seems to like Lordi...)
Yeah, hostname --fqdn is so broken:

joshua@numenor:~$ hostname
joshua@numenor:~$ hostname --fqdn

My normal take is not to use the FQDN as the hostname because it
becomes too long.
If I ever need to know my outside-facing IP address, I connect a UDP
socket to
and to a getsockname(). To get outside-hostname, I do a reverse-lookup on that.
Since will never be allocated, this is gauranteed to work
when there is a way out.
If there's no way out, I'll find that out too.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2006-05-29 22:50    [W:0.066 / U:11.396 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site