change or set nodename

Christopher Barry christopher.barry at rackwareinc.com
Sat Oct 15 15:15:30 UTC 2011


Greetings,

I have been trying to make uname -n return something other than
"(none)", and for the life of me I just cannot get it to do it. The
reason is syslogd is printing (none) in place of host in the logs and
it's bugging me.

strace shows basically nothing about how uname is getting the nodename
value, and googlage shows that some implementations allow -S to set it
(my BB does not include that option), others will read /etc/nodename to
do so, and still others will allow override via the SYSV3 env var. I've
tried adding the ip and name to /etc/hosts as well.

These do not appear to work for me. Anyone have any ideas?


Thanks,
-C





More information about the busybox mailing list