what-is-dns

Setup Bind on CentOS 8 / RHEL8

4 min read Lab setup: Server :            CentOS 8 (minimal server) IP address :    192.168.43.35 Hots Name :   dns-primary.mydomain.com Domain :         mydomain.com Step 1: Install bind DNS on CentOS 8 / RHEL 8 We begin with the installation of the bind and bind-utils package. These packages constitutes dns server and its utilities responsible for querying name servers or DNS servers. Execute the command: # dnf install bind bind-utils Once successfully installed, start the DNS server using the command below: # systemctl start named Next, enable it so that it can kick in even after a reboot # systemctl enable named Just to…

servercheap-letsencrypt-nginx-centos8

Configure Nginx with Let’s Encrypt on CentOS 8

3 min read Step 1 – Install the required software Install the git, wget, curl and bc packages with the yum command:sudo yum install git bc wget curl socat Step 2 – Install acme.sh Let’s Encrypt client Clone the repo:cd /tmp/git clone https://github.com/Neilpang/acme.sh.git Install acme.sh client on to your system, run:cd acme.sh/sudo -i ## be root user ##./acme.sh –install After install, you must close current terminal and reopen again to make the alias take effect. Or simply type the following source command:sudo source ~/.bashrcVerify installation by printing version number:acme.sh –versionhttps://github.com/Neilpang/acme.shv2.8.4 Step 3 – Basic nginx config for http server I am going to create a…

servercheap-linux-touch

The Linux “Touch” Command

2 min read In this article we will cover some useful practical examples of Linux touch command. The touch command is a standard program for Unix/Linux operating systems, that is used to create, change and modify timestamps of a file. Before heading up for touch command examples, please check out the following options. Touch Command Options -a, change the access time only -c, if the file does not exist, do not create it -d, update the access and modification times -m, change the modification time only -r, use the access and modification times of file -t, creates a file using a specified time 1. How to Create an…