Here is the code I use to retrieve the IP address of eth0 in
nsd.tcl
set my_ip [exec "/sbin/ifconfig" "eth0" "|" "grep" "inet addr" "|"
"awk" "{print $2}" "|" "sed" "-e" "s/.*://"]
0.0.0.0 is probably a better choice for a dynamic IP so you don't
have to restart aolserver when your IP changes. (I think that is how
it works anyways)
I recommend setting ForceHostP to 0 in parameters/.tcl if
you have a dynamic IP so the hostname setting won't affect you.