40 Set Domain Name Debian 10 In This Year
Now you can access the apache http server by using your domain name or ip address.
Set domain name debian 10. This post will help you configure dns server on debian 10 debian 9. Sudo nano etc hostname. Set name when called with one argument or with the file option the commands set the host name or the nis yp domain name.
The etc resolv conf is the main configuration file for the dns name resolver library. Open the etc hostname to change the hostname. When you use redhat base systems linux uses etc sysconfig network file and you should set variable hostname to fqdn when you use fqdn linux itself determines domain name.
Hostnamectl set hostname name here for example to change the system hostname to deb10 cyberciti biz in debian 10 you can use the following command. Typically for the server you set it as fqdn fully qualified domain name such as server1 cyberciti biz. If you want to set domain name be sure set fqdn fully qualyfied domain name.
Sudo apache2 v server version. When you hit the domain name or your server s ip address from a web browser it should open a default apache page on the browser. Sudo hostnamectl set hostname deb10 cyberciti biz.
Bind berkeley internet name domain provides the functionality of the name to ip conversion. First set the new hostname using the hostnamectl set hostname command followed by the desired hostname and then update the etc hosts file with the new hostname. I am changing here my hostname from debian to debian10.
It is recommended to use a fully qualified domain name fqdn as the system hostname. The syntax is as follows. There are two steps involved when changing the system hostname on debian 10.