≡ Menu

Lakshmanan Ganapathy

7 Patch Command Examples to Apply Diff Patch Files in Linux

When there is a security fix available for a particular software, we typically do a binary upgrade using the package management tools like yum or apt-get. But, there might be situation where you have installed a software by compiling it from the source code. In those situation, how do you apply the security fix to [...]

{ 7 comments }

How to Debug Programs on Remote Server using GDBServer Example

Remote debugging is the process of debugging a program running on a different system (called target) from a different system (called host). To start remote debugging, a debugger running on host machine connects to a program which is running on the target via network. The debugger in the host can then control the execution of [...]

{ 6 comments }

MTR stands for My Traceroute. It is a powerful network diagnostic tool which combines the power of both Ping and Traceroute commands. It enables administrator to diagnose and isolate network errors and provide helpful network status reports. In this article, we will explain how to install, use and analyze the report provided by the MTR [...]

{ 3 comments }

Few GDB Commands – Debug Core, Disassemble, Load Shared Library

GDB is an essential tool for programmers to debug their code. This article explains how you can use gdb to debug a program with the core file, how to display assembly language instructions of your program, and how to load shared library programs for debugging. Debug a Program with Core File A core file or [...]

{ 5 comments }

GDB Breakpoints and Watchpoints using awatch rwatch Examples

In this tutorial we’ll cover couple of advanced GDB functions including conditional breakpoints, and watchpoints. We’ve also used a simple C program as an example to explain these GDB debugger concepts. GDB Conditional Breakpoints A breakpoint, brakes everytime your program reaches a specific place. You can also specify a condition for breakpoints. A condition is [...]

{ 8 comments }

How to Use GDB Backtrace to Debug Strack Frame using C Example Code

GDB is an essential tool for programmers to debug their code. Breakpoints are the way to tell GDB to stop or pause the program execution at certain line, or function, or address. Once the program is stopped you can examine and change the variable values, continue the program execution from that breakpoint, etc. Similar to [...]

{ 3 comments }

How to Install and Configure DNS Server in Linux

Domain Name Service (DNS) is an internet service that maps IP addresses to fully qualified domain names (FQDN) and vice versa. BIND stands for Berkley Internet Naming Daemon. BIND is the most common program used for maintaining a name server on Linux. In this tutorial, we will explain how to install and configure a DNS [...]

{ 23 comments }

What is DNS and How DNS Works? (Domain Name Server Fundamentals)

DNS stands for Domain Name System, or Domain Name Server. DNS resolves an IP address to a hostname or vice versa. DNS is basically a large database which resides on various computers that contains the names and IP addresses of various hosts/domains. Other than ip-address DNS also associates various information with the domain names. Structure [...]

{ 9 comments }