<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Shankar Kambli on Medium]]></title>
        <description><![CDATA[Stories by Shankar Kambli on Medium]]></description>
        <link>https://medium.com/@shankar1488?source=rss-8624863e49eb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*TD38ybgCcZWV8lld</url>
            <title>Stories by Shankar Kambli on Medium</title>
            <link>https://medium.com/@shankar1488?source=rss-8624863e49eb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 13:17:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shankar1488/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[What is DNS?]]></title>
            <link>https://medium.com/@shankar1488/what-is-dns-7920bb347d2a?source=rss-8624863e49eb------2</link>
            <guid isPermaLink="false">https://medium.com/p/7920bb347d2a</guid>
            <dc:creator><![CDATA[Shankar Kambli]]></dc:creator>
            <pubDate>Sun, 23 Apr 2023 16:18:29 GMT</pubDate>
            <atom:updated>2023-04-23T16:18:29.344Z</atom:updated>
            <content:encoded><![CDATA[<ul><li>DNS stands for Domain Name System.</li><li>DNS is used when you use an internet. DNS is used to convert human-friendly domain names (such as <a href="https://www.javatpoint.com)/"><strong>https://www.javatpoint.com</strong>)</a> into an Internet Protocol (IP) address.</li><li>IP addresses are used by computers to identify each other on the network.</li><li>IP addresses are of two types, <strong>i.e., Ipv4 and Ipv6.</strong></li></ul><p>Top Level Domains</p><ul><li>Domains are seperated by a string of characters seperated by dots. For example, google.com, gmail.com, etc.</li><li>The last word in a domain name is known as a Top Level Domain.</li><li>The second word in a domain name is known as a second level domain name.</li></ul><p>For example:</p><p><strong>.com:</strong> .com is a top-level domain.</p><p><strong>.edu:</strong> .edu is a top-level domain.</p><p><strong>.gov:</strong> .gov is a top-level domain.</p><p><strong>.co.uk:</strong> .uk is a top-level domain name while .co is a second level domain name.</p><p><strong>.gov.uk:</strong> .uk is a top-level domain name while .gov is a second level domain name.</p><ul><li>The Top level domain names are controlled by IANA (Internet Assigned Numbers Authority).</li><li>IANA is a root zone database of all available top-level domains.</li><li>You can view the database by visiting the site: <a href="http://www.iana.org/domains/root/db"><strong>http://www.iana.org/domains/root/db</strong></a></li></ul><h3><strong>Domain Registrars</strong></h3><ul><li>Domain Registrar is an authority that assigns the domain names directly under one or more top-level domains.</li><li>Domain Registrar is used because all the names in a domain name must be unique there needs to be a way to organize these domain names so that they do not get duplicated.</li><li>Domain names are registered with interNIC, a service of ICANN, which enforces uniqueness of domain name across the internet.</li><li>Each domain name is registered in a central database known as the WhoIS database.</li><li>The popular domain registrars include GoDaddy.com, 123-reg.co.uk, etc.</li></ul><h3><strong>State Of Authority Record (SOA)</strong></h3><ul><li>SOA stores the information in Domain Name System (zone) about the zone and other DNS records.<br> <strong>Where</strong> DNS zone is a space allocated for a particular type of server.</li><li>Each DNS zone consists of a single <strong>SOA</strong> record.</li></ul><p>The State of Authority Record stores the information about:</p><ul><li>The name of the server that supplies the data for the zone.</li><li>The administrator of the zone, i.e., who is administering the zone.</li><li>The current version of the data file that contains the zone.</li><li>The default number of records for the time-to-live file on resource records. For example, when you are dealing with a DNS, then it always has a time-to-live. Time-to-live must be lower as possible because when you make changes, it then propagates quicker. Suppose the name of the website is Hindi100.com and its time-to-live is 60 seconds. By the end, you want to change its IP address then the time taken to achieve this is equal to the time-to-live.</li><li>The number of seconds a secondary name server has to wait before checking for the updates.</li><li>The maximum number of seconds that a secondary name server can use the data before it is either be refreshed or expire.</li></ul><h3>NS Records</h3><ul><li>NS stands for <strong>Name Server records</strong></li><li>NS Records are used by Top Level Domain Servers to direct traffic to the Content DNS server which contains the authoritative DNS records</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*uxEalo81V0CxklkfisfYdg.jpeg" /></figure><p>Suppose the user wants an IP address of <strong>abc</strong>.com. If ISP does not know the IP address of <strong>abc.com</strong>, ISP goes to the .com and asks for the NS Record. It finds that time-to-live is 172800 and its ns record is <strong>ns.awsdns.com.</strong> ISP moves to this ns record and asks that “do you know hindi100.com”. Yes, it knows, so it points to Route53. In SOA, we have all the DNS types and ‘A’ records.</p><p>A Records</p><ul><li>An <strong>‘A’</strong> record is a fundamental type of DNS record.</li><li>‘A’ stands for <strong>Address.</strong></li><li>An ‘A’ record is used by the computer to convert the domain name into an IP address. For example, <a href="https://www.javatpoint.com/"><strong>https://www.javatpoint.com</strong></a> might point to <a href="http://123.10.10.80/">http://123.10.10.80.</a></li></ul><p>TTL</p><ul><li>The length that a DNS record is cached on either the Resolving power or the users owns local PC is equal to the value of the TTL in seconds.</li><li>The lower the time-to-live, the faster changes to DNS records take to propagate throughout the internet.</li></ul><p>CNAMES</p><ul><li>A CNAME can be used to resolve one domain name to another. For example, you may have a mobile website with a domain name <a href="http://m.devices.com/"><strong>http://m.devices.com</strong></a> which is used when users browse to your domain name on their mobile devices. You may also want the name <a href="http://mobile.devices.com/"><strong>http://mobile.devices.com</strong></a> to resolve the same address.</li></ul><p>Alias Records</p><ul><li>Alias Records are used to map resource record sets in your hosted zone to Elastic load balancers, CloudFront distributions, or S3 buckets that are configured as websites.</li><li>Alias records work like a CNAME record in that you can map one DNS name (<strong>http://www.example.com</strong>) to another target DNS name (elb1234.elb.amazonaws.com).</li><li>The key difference between a CNAME and Alias Record is that a CNAME cannot be used for naked domain names (zone apex) record, i.e., it cannot be used when something is written infront of the domain name. For example, <a href="http://www.example.com/"><strong>http://www.example.com</strong></a> contains a <strong>www</strong> infront of the domain name, therefore, it cannot be used for CNAME.</li></ul><p>Thank You</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7920bb347d2a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is VPC ?]]></title>
            <link>https://medium.com/@shankar1488/what-is-vpc-65057c1ec515?source=rss-8624863e49eb------2</link>
            <guid isPermaLink="false">https://medium.com/p/65057c1ec515</guid>
            <dc:creator><![CDATA[Shankar Kambli]]></dc:creator>
            <pubDate>Sun, 23 Apr 2023 16:09:12 GMT</pubDate>
            <atom:updated>2023-04-23T16:09:12.872Z</atom:updated>
            <content:encoded><![CDATA[<h3>What is VPC ?</h3><ul><li>VPC stands for Virtual Private Cloud.</li><li>Amazon Virtual Private Cloud (Amazon VPC) provides a logically isolated area of the AWS cloud where you can launch AWS resources in a virtual network that you define.</li><li>You have complete control over your virtual networking environment, including a selection of your IP address range, the creation of subnets, and configuration of route tables and network gateways.</li><li>You can easily customize the network configuration for your Amazon Virtual Private Cloud. For example, you can create a public-facing subnet for web servers that can access to the internet and can also place your backend system such as databases or application servers to a private-facing subnet.</li><li>You can provide multiple layers of security, including security groups and network access control lists, to help control access to Amazon EC2 instances in each subnet.</li></ul><h3>Architecture of VPC</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*C3cDXyroTQ5UiK32W54fwA.png" /></figure><p>The outer line represents the region, and the region is us-east-1. Inside the region, we have VPC, and outside the VPC, we have internet gateway and virtual private gateway. Internet Gateway and Virtual Private Gateway are the ways of connecting to the VPC. Both these connections go to the router in a VPC and then router directs the traffic to the route table. Route table will then direct the traffic to Network ACL. Network ACL is the firewall or much like security groups. Network ACL are statelist which allows as well as deny the roles. You can also block the IP address on your Network ACL. Now, move over to the security group that accesses another line against the EC2 instance. It has two subnets, i.e., Public and Private subnet. In public subnet, the internet is accessible by an EC2 instance, but in private subnet, an EC2 instance cannot access the internet on their own. We can connect the instances. To connect an instance, move over to the public subnet and then it SSH to the private subnet. This is known as jump boxes. In this way, we can connect an instance in public subnet to an instance in private subnet.</p><p><strong>Some ranges are reserved for private subnet:</strong></p><ul><li>10.0.0.0–10.255.255.255 (10/8 prefix)</li><li>172.16.0.0–172.31.255.255 (172.16/12 prefix)</li><li>192.168.0.0–192.168.255.255 (192.108/16 prefix)</li></ul><h3>What can we do with a VPC?</h3><ul><li>Launch instances in a subnet of your choosing. We can choose our own subnet addressing.</li><li>We can assign custom IP address ranges in each subnet.</li><li>We can configure route tables between subnets.</li><li>We can create an internet gateway and attach it to our VPC.</li><li>It provides much better security control over your AWS resources.</li><li>We can assign security groups to individual instances.</li><li>We also have subnet network access control lists (ACLS).</li></ul><h3>VPC Peering</h3><ul><li>VPC Peering is a networking connection that allows you to connect one VPC with another VPC through a direct network route using private IP addresses.</li><li>Instances behave as if they were on the same private network.</li><li>You can peer VPC’s with other AWS accounts as well as other VPCs in the same account.</li><li>Peering is in a star configuration, i.e., 1 VPC peers other 4 VPCs.</li><li>It has no <strong>Transitive Peering!!</strong>.</li></ul><h4>Note: Non-Transitive Peering means the networks that you want to connect are directly linked.</h4><ul><li>You can peer between regions. Suppose you have one VPC in one region and other VPC in another region, then you can peer the VPCs between different regions.</li></ul><p><strong>Let’s understand the example of non-transitive peering through an example.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/463/1*ZIhd_Di0vARI5ZBTknjQXA.png" /><figcaption>The above figure shows that VPC B has peered to the VPC A, so instance in VPC B can talk to VPC A. However, VPC B cannot talk to VPC C through VPC A. This is known as Non-Transitive Peering, i.e., both VPC C and VPC B are not directly linked so they cannot talk to each other.</figcaption></figure><p>So, to communicate between VPC B and VPC C, we need to peer them as shown in the below figure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/463/1*n-4qEHehRy0qdCNGZNDdaA.png" /></figure><p>Thank You.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=65057c1ec515" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Difference between Security Group and Network ACL in AWS]]></title>
            <link>https://medium.com/@shankar1488/difference-between-security-group-and-network-acl-in-aws-8123c975cee8?source=rss-8624863e49eb------2</link>
            <guid isPermaLink="false">https://medium.com/p/8123c975cee8</guid>
            <dc:creator><![CDATA[Shankar Kambli]]></dc:creator>
            <pubDate>Thu, 23 Mar 2023 07:16:19 GMT</pubDate>
            <atom:updated>2023-03-23T07:17:24.602Z</atom:updated>
            <content:encoded><![CDATA[<p>The two main security components which can be confused within VPC networking are the Security Group and the Network Access Control List (NACL). When you compare a Security Group vs NACL, you will find that although they are fairly similar in general, there is a distinct difference in the use cases for each of these security features.</p><p>In this blog post, we are going to explain the main differences between Security Group vs NACL and talk about the use cases and some best practices.</p><p><strong>1. Security Group:</strong></p><p>Security group like a virtual firewall. It has inbound and outbound security rules in which all inbound traffic is blocked by default in private on AWS EC2. It does not allow particular protocol no one will able to access our instances using this protocol you can stop traffic by using that rule by default everything that is denied. There are various multiple security groups on EC2 instances. We cannot block a specific IP address using that security group but using the network access list. In which we edit any rule a security group with faster effect.</p><p><strong>2. Network Access Control List (Network ACL) :</strong></p><p>Network ACL is a modifiable default network. It allows all the inbound or outbound IPv4 traffic and here we create a type of custom network all or each custom network ACL denies all inbound and outbound traffic. This network is the stateless and separate inbound and outbound rule with a default limit of 20 for both rules and starting with the lowest numbered rule. In which all subnet in VPC must be combined with network ACL one subnet -one network ACL at a time. It supports rules and deny rules and operate the subnet level.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z1xZZb0oNYHYfQThB9e47Q.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/458/1*ik3N5Z4MfTfwkDYDBvs8bg.png" /></figure><h3>Combining Security Group and NACL</h3><p>Maximum number of rules that exist per NACL: 20</p><p>Maximum number of rules that can exist per Security Group: 50</p><p>Maximum number of Security Groups that can exist per instance: 5</p><p>Maximum number of rules that can exist per instance: 5*50 + 20 = 270</p><p>For more on Security Groups in AWS — — <a href="https://docs.aws.amazon.com/vpc/latest/userguide/VPC_SecurityGroups.html">https://docs.aws.amazon.com/vpc/latest/userguide/VPC_SecurityGroups.html</a></p><p>For more on NACLs in AWS — <a href="https://docs.aws.amazon.com/vpc/latest/userguide/vpc-network-acls.html">https://docs.aws.amazon.com/vpc/latest/userguide/vpc-network-acls.html</a></p><p>Thank you for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8123c975cee8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Setup SSH Password less Login in Linux]]></title>
            <link>https://medium.com/@shankar1488/how-to-setup-ssh-password-less-login-in-linux-e28062d6c66d?source=rss-8624863e49eb------2</link>
            <guid isPermaLink="false">https://medium.com/p/e28062d6c66d</guid>
            <dc:creator><![CDATA[Shankar Kambli]]></dc:creator>
            <pubDate>Wed, 15 Mar 2023 05:40:04 GMT</pubDate>
            <atom:updated>2023-04-06T07:51:17.319Z</atom:updated>
            <content:encoded><![CDATA[<p>SSH Secure Shell Protocol is a cryptographic protocol for secure data connection and remote command execution.</p><p>In this article, we are going to see how to configure SSH for a password less login to a remote machine.</p><h3>1. Make sure that SSH server is running</h3><p>Run the following command to start the ssh service :</p><p>$ sudo service sshd start</p><p>or</p><p>$ sudo systemtcl start sshd</p><p>Check service status using:</p><p>$ sudo service sshd status</p><p>or</p><p>$ sudo systemctl status sshd</p><p>Run the following command to make sure that the sshd service is still active when you restart your system</p><p>$ sudo chkconfig sshd on</p><h3>2. Connect to remote machine</h3><p>Run the command $ ssh remote_username@remote_server_ip_address if it is the first time you logged into this host, you will get something like this :</p><p><strong><em>The authenticity of host XXXXXX can’t be established.</em></strong></p><p><strong><em>Are you sure you want to continue connecting (yes/no)?</em></strong></p><p>Type yes and then it will ask you to enter the password for the admin user to log in to the machine. congratulation your are now connected to the remote machine with the password, but the title said it will be passwordless.</p><h3>3. Generate private and public keys</h3><p>Let’s back to our localhost machine, a key pair must be created with the command : $ ssh-keygen</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*qBQAGaO_EGxLAWy3aTRn3Q.jpeg" /></figure><p>They can be created on Windows computers by using the command line or an SSH client like PuTTy.</p><p>Press <em>Enter </em>three times until the command finishes. A public key file “<strong><em>~/.ssh/id_rsa.pub” </em></strong>and a private key file “<strong><em>~/.ssh/id_rsa” </em></strong>will be generated.</p><h3>4. Copy the public key file to the remote machine</h3><p>Now that you have generated an SSH key pair, in order to be able to login to your machine without a password you need to copy the public key to the server you want to manage.</p><p>$ ssh-copy-id remote_username@remote_server_ip_address</p><h3>5. Uploading your public key with a Windows client</h3><p>With a Windows client, you can accomplish this task via the Windows Command Prompt. You will need to refer to the results of your earlier attempt to list the contents of the <em>.ssh</em> directory and see if it contained a file called <em>authorized_keys</em> or not.</p><p>(A)<strong>If you had to create the .ssh directory yourself, or if the remote server doesn’t already have an ‘authorized_keys’ file</strong>, on the client computer command line, enter the following to copy the public key to the <em>.ssh</em> directory on the server (if you changed the name of your key from <em>id_rsa.pub</em>, change it here):</p><p>scp .ssh/id_rsa.pub user@somedomain:~/.ssh/authorized_keys</p><p>(B) <strong>If the remote server has an existing ‘authorized_keys’ file</strong>, the new key must be appended rather than overwriting the existing file. This is very important so that existing users do not lose access unintentionally. First, you will copy the file to the remote server. Then on the remote server, use the cat command to append it to the existing file:</p><p>On the client:<em> scp .ssh/id_rsa.pub user@somedomain:~/.ssh</em></p><p>On the remote server: <em>cat .ssh/id_rsa.pub &gt;&gt; .ssh/authorized_keys</em></p><p><strong>Test connection and configure an SSH agent</strong></p><p>In your SSH session with the remote machine, update the permissions of the <em>.ssh</em> directory and <em>authorized_keys</em> file in case they need it:</p><p>chmod 700 ~/.ssh<br> <br> chmod 600 ~/.ssh/authorized_keys</p><h3>6. Login to your server using SSH keys</h3><p>You should be able to get onto the remote server without being requested for a password once you’ve followed the preceding instructions.</p><p>To test it just try to login to your server via SSH:</p><p>$ ssh remote_username@remote_server_ip_address</p><p>I hope this information was helpful and interesting.</p><p>Thank You</p><p>In this article, we are going to see how to configure SSH for a password less login to a remote machine.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e28062d6c66d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>