This is a personal note to make a documentation when I use WSL Ubuntu 20.04 LTS on Windows 10.
Edit the default hostname by editing two files below. Replace all the old hostname with the new one.
$ sudo vi /etc/hostname
$ sudo vi /etc/hosts
$ sudo hostname your_new_hostname