How to set your Domain name in Linux

Resume to set a domain name in Linux concepts: FQDN (Fully Qualified Domain Name) eg: hostname = server1 // FQDN = server1.example.com 1. First add FQDN to your hostname in /etc/hosts file. # cat /etc/hosts 10.120.68.23 server1.example.com server1 confirm the FQDN issue the following command: # hostname -f server1.example.com 2.1. Configure domain name (Red Hat RHEL, Fedora and CentOS) From these path add the parameters needs vi /etc/sysconfig/network DOMAINNAME=<domainname> vi /etc/sysctl.conf kernel.domainname = <domainname> 2.2. figure domain name ( Ubuntu, Debian) #vi /etc/hostname server1 Then restart the service: ...

2020-05-31 ยท map[name:Jose Castrillo]

About

Hello there! Iโ€™m a big fan of GNU/Linux ๐Ÿง and all things open-source. By day, I work as a DevOps ๐Ÿ‘จโ€๐Ÿ’ป, wrangling various projects to ensure they run like well-oiled platform. But let me take you back to where my journey began - coding in Assembly language and tinkering with MicroChip, Atmega and embedded devices. That was my playground before I took the leap into the cloud, focusing on CI/CD, GitOps, SRE, and HA zones, my main focus itโ€™s to delivers reliable IDP. ...

Jose Castrillo