I follow the instructions in https://askubuntu.com/questions/87665/how-do-i-change-the-hostname-without-a-restart. The host name is changed correctly when I verify using "hostname".
However, there is one issue. Since I only change the host name but not IP address. I continue to test using "nslookup ip_addr", where "ip_addr" is the IP address of the machine. The nslookup still returns the old host name.
Is there any way (without reboot) to let nslookup also return the new host name?
Thanks a lot.
After reboot, nslookup returns the new host name. So in my networking context, DNS performs setting automatically. But I don't want to reboot.