Skip to main content

Posts

Showing posts from December, 2021

DNS —Introduction & Tutorial

In this tutorial, I will explain what DNS is and How DNS works? How to configure DNS?. It will help you understand how DNS works under the hood and solve DNS related issues in your server and configure DNS for you. DNS: DNS(Domain Name System) is an internet system used to identify a machine/server(IP address) in the world. For example, if we type www.google.com or www.amazon.com in our browser. DNS resolver will help us by sending back the IP address of www.google.com  — 142.251.40.196. So the browser will send the HTTP request to 142.251.40.196 IP address to get the response from the server and render it in our in the browser. How DNS works: I have created an image to explain how DNS works. How DNS get resolved Whenever we type a domain name or send an API request to a domain., The browser has to identify the respective IP address of the machine to send HTTP requests. The browser doesn’t have any functionality implemented to get the IP address. But with the help of a DNS resolv...

Stateful & Stateless Authentication

     In this article, I will explain Stateful and Stateless authentication with some real-time and technical examples and their advantage and disadvantage. I’m going to explain how I understand Stateful and Stateless authentication by developing PHP and nodeJs applications in the back-end. What Stateful Authentication means:      Once the user gets authenticated by the server after verifying credentials, user information gets stored in the server for further authorization from the same user. User session data are stored in the back-end server by any one way like server filesystem, database or cache or any other way in back-end server itself. What Stateless Authentication means:      Once the user gets authenticated by the server after verifying credentials. For further authorization for the same user. The server will create a token and send it to the client machine. It gets stored in cookies or local storage or any other way in the client mac...