Atharva Nimbalkarimatharva2753.hashnode.dev·Sep 23, 2024Comparing TCP and UDP: Essential Information for Internet UsersTCP (Transmission Control Protocol): TCP Protocol is a protocol operating at the network layer. It is a connection-oriented protocol.TCP achieves this feat by establishing a robust connection between two devices, meticulously tracking the flow of dat...Discuss·1 likecomputer networking
Ronit Pandaronit.dev·Jul 14, 2024Building a simple http server to query dns serverWe are almost at the end, in this blog we will be building a simple http server which will resolve our DNS queries by querying the underlying UDP server we built, providing us with an easy to use interface. Honestly we are just going to setup a bare ...Discuss·32 readsBuilding a simple DNS server from scratch with NodeJS and Typescriptbuilding your own dns
Ronit Pandaronit.dev·Jul 14, 2024Building the DNS cacheBefore jumping into the code for the cache, let's first breakdown what exactly what we need from the cache class And also how are we going to cater to all those use-cases Requirements set answers to all question names and record types individually t...DiscussBuilding a simple DNS server from scratch with NodeJS and Typescriptcache
Ronit Pandaronit.dev·Jul 14, 2024Testing the recursive resolverThis will be very straightforward. So without any delay head over to src/udp-server.test.ts Initial setup Add all required imports Start up a udpSocket on udp4 TEST_PORT & TEST_HOST signify the host and port on which our actual udp server is runni...DiscussBuilding a simple DNS server from scratch with NodeJS and Typescriptunit testing
Ronit Pandaronit.dev·Jul 14, 2024Building the recursive resolverWe have already explored the outline of our UDP server, now time comes to actually build the resolver which will resolve DNS queries. f you don't have the codebase yet:https://github.com/rtpa25/dns-server For this before jumping into code, let's unde...DiscussBuilding a simple DNS server from scratch with NodeJS and TypescriptRecursion
Ronit Pandaronit.dev·Jul 14, 2024Finally building out the DNS serverNow that our parser and builder is ready and tested, let's move on to building the UDP server that is actually going to resolve DNS queries for us if you don't have the codebase yet:https://github.com/rtpa25/dns-server In this blog we will see and un...DiscussBuilding a simple DNS server from scratch with NodeJS and TypescriptUDP
Ronit Pandaronit.dev·Jul 14, 2024Understanding the DNS protocolIn this blog, we will explore the DNS protocol, understand DNS packets, and guide you on building a DNS packet parser and builder in TypeScript. Typically, DNS packets are sent using UDP transport and are limited to 512 bytes. DNS is convenient becau...DiscussBuilding a simple DNS server from scratch with NodeJS and Typescriptdns
Jasai Hansdajasaiblogs.hashnode.dev·May 20, 2024The Language of the Network Party: Exploring Different ProtocolsProtocols are the essential "language" devices use to communicate. But just like there are different languages spoken around the world, there are various protocols used for different purposes on a network. Let's explore some of the key players: 1. TC...Discuss·10 likesThe Network Navigatornetworking for beginners
BrowserScanbrowserscan.hashnode.dev·May 16, 2024TCP vs UDP: What is the Difference?TCP and UDP are the backbone of internet communication, handling the transfer of data. While their names might be well-known, choosing the right protocol can still be a challenge. This guide will take you through a deep dive into these two protocols....DiscussTCP
Cloud Tunedcloudtuned.hashnode.dev·Apr 17, 2024Understanding UDP (User Datagram Protocol)Understanding UDP (User Datagram Protocol) UDP (User Datagram Protocol) is one of the core transport layer protocols in the Internet Protocol Suite (TCP/IP). Unlike TCP (Transmission Control Protocol), UDP is connectionless and does not provide guara...DiscussUDP