server-manager -> hostnames and addresses -> add hostname -> fill "hostname","comment" fields, set domain to the right one, choose "local" from Location -> next -> set local ip address and fill the Ethernet address field with the mac address -> next -> save