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-reversessh

Reverse SSH Tunneling Between Two Linux Hosts

< 1 min read Reverse SSH tunneling allows you to access a host by traversing a firewall / nat router by creating an outbound session from the obfuscated machine.   SSH is a very useful and powerful tool when comes time to access a remote machine or server securely. If you have a machine behind a firewall or NAT router – we can use this method to create a tunnel to a remote server;  from which you can ssh to a port on the remote server to access a local shell session on the server behind the network obstruction. Install AutoSSH with the following: sudo apt install autossh AutoSSH…