change ip address to domain name in ubuntu code example
Example: ubuntu server change ip address
# edit the file in /etc/netplan/file.yml and set the desired addresses
sudo nano /etc/netplan/01-netcfg.yaml
network:
version: 2
ethernets:
eth0:
dhcp4: no
addresses:
- 192.168.31.16/24
wifis:
wlan0:
addresses:
- 192.168.31.16/24
# run this command to apply changes
sudo netplan apply