Hi, we use the domain name of the LTSP client for some scripting. Unfortunately the /etc/hosts is in this regard wrong: [email protected]:~# cat /etc/hosts 127.0.0.1 localhost 127.0.0.2 disklesstest 10.20.50.254 server
It should look like this: [email protected]:~# cat /etc/hosts 127.0.0.1 localhost 127.0.0.2 disklesstest.dc1.example.org disklesstest 10.20.50.254 server What is the correct way of patching - DHCP passes the Domain name but in /usr/share/ltsp/ltsp-init-common this seems unavailable. Should I just use a new lts.conf variable (DNS_DOMAIN) and then patch like this? configure_resolver() { hostname=$(cat /proc/sys/kernel/hostname) if [ -z "$hostname" ] || [ "$hostname" = "(none)" ]; then # ensure a default hostname, otherwise /etc/hosts may get borked. hostname=ltsp echo $hostname > /proc/sys/kernel/hostname || true fi cat <<EOF > /etc/hosts 127.0.0.1 localhost 127.0.0.2 $hostname.$DNS_DOMAIN $hostname <-- instead of just $hostname $SERVER server EOF Or is there any way to get the DNS domain name from dhcp into /etc/hosts? Thanks Rainer ------------------------------------------------------------------------------ Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev _____________________________________________________________________ Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto: https://lists.sourceforge.net/lists/listinfo/ltsp-discuss For additional LTSP help, try #ltsp channel on irc.freenode.net
