Troubleshooting DNS Leaks with systemd-resolved and resolv.conf

Introduction to DNS Leaks

I’ve seen DNS leaks become a major concern for Linux users who care about their online privacy. Essentially, a DNS leak happens when your system’s DNS queries slip outside a secure tunnel - think VPN - and potentially expose your browsing history to prying eyes. Given the current online security landscape, being able to troubleshoot these leaks is more important than ever.

Understanding systemd-resolved

Systemd-resolved is a key system service in Linux that handles DNS resolution. It’s part of the systemd suite and is widely used in modern distributions like Ubuntu, Debian, and Fedora. One of the benefits of systemd-resolved is that it can be configured to use DNS over TLS (DoT) or DNS over HTTPS (DoH), which encrypts DNS queries and reduces the risk of leaks.

[Read More]

Resolving DNS Issues with resolvectl and systemd-resolved in a Home Network

Introduction to DNS Resolution

When setting up a home network, DNS resolution is one of those critical components that can be a real pain to troubleshoot. I’ve seen this go wrong when people are new to Linux, so let’s dive into how to use resolvectl to resolve DNS issues with systemd-resolved.

Understanding systemd-resolved

systemd-resolved is a system service that handles DNS resolution, among other network-related tasks. It’s part of the systemd suite and is widely used in many Linux distributions, including Ubuntu, Debian, and Fedora. The real trick is that systemd-resolved provides improved DNS security and better support for modern DNS protocols like DNS over TLS (DoT) and DNS over HTTPS (DoH). Don’t bother with trying to use it without understanding these benefits, as they’re a key part of what makes systemd-resolved so useful.

[Read More]

Troubleshooting Slow Network Connectivity with ss and resolvectl on Linux

Introduction to Network Troubleshooting

I’ve seen my fair share of slow network connectivity issues on Linux, and having the right tools at your disposal can make all the difference. Two tools that I rely on are ss and resolvectl, which can help you diagnose and troubleshoot network issues. In this article, we’ll explore how to use these tools to identify and potentially fix slow network connectivity problems.

Understanding ss

The ss command is a replacement for the traditional netstat command, and it provides more detailed information about network connections, including TCP, UDP, and Unix domain sockets. To get started with ss, you can use the following command to display all active connections:

[Read More]

Taming Disk-Hungry Logs with systemd's Persistent Journal and Log Rotation

Introduction to Log Management

I’ve seen log management become a major headache for many Linux administrators. Logs are essential for diagnosing issues, detecting security threats, and optimizing system performance, but they can grow rapidly and consume significant disk space. In practice, this can lead to performance issues and even system crashes. To avoid this, we can use systemd’s persistent journal and log rotation features.

Understanding systemd’s Journal

Systemd’s journal is a centralized logging system that collects log messages from various system components, including systemd services, kernel messages, and application logs. The real trick is to configure it to use persistent storage, so logs aren’t lost upon system reboot. By default, the journal stores log messages in a volatile storage area, which isn’t very useful for long-term log management.

[Read More]

Using systemd to Manage and Rotate Logs for Forgotten System Services

Introduction to Log Management with systemd

I’ve seen many Linux admins struggle with log management, especially when it comes to system services that are often overlooked. Systemd is a powerful system and service manager that provides a wide range of features, including process management, dependency handling, and log management. In this article, I’ll focus on using systemd to manage and rotate logs for system services.

Understanding systemd Logs

The real trick is to understand how systemd logs work. Systemd logs are stored in a binary format, which can be read using the journalctl command. This command provides a powerful way to filter, search, and manage system logs. By default, systemd stores logs in /var/log/journal, but this can be configured to use a different location. Don’t bother with trying to read the binary logs directly - just use journalctl.

[Read More]

Resolving Dependency Conflicts When Mixing Third-Party Repositories with Distribution Packages

Introduction to Dependency Conflicts

I’ve seen this go wrong when mixing third-party repositories with distribution packages - dependency conflicts can cause frustration and potential security risks. As a Linux user, understanding how to resolve these conflicts is crucial for maintaining a stable and secure system. In this article, we’ll explore the common causes of dependency conflicts, how to identify them, and practical steps to resolve them.

Understanding Dependency Conflicts

Dependency conflicts occur when two or more packages require different versions of the same dependency. This can happen when you install packages from third-party repositories, which may not be compatible with the distribution’s packages. For example, if you’re running Ubuntu 22.04 and want to install the latest version of ffmpeg from a third-party repository, it can cause a conflict because the repository requires a newer version of libavcodec than what’s available in Ubuntu 22.04.

[Read More]

Troubleshooting Poor Video Performance on Linux Laptops with Hybrid Graphics and Wayland

Introduction to Troubleshooting

When dealing with Linux laptops that have hybrid graphics, getting the best video performance can be tough, especially with Wayland. I’ve seen this go wrong when people don’t take the time to understand how their system is set up. As of 2026, many Linux distributions have made big strides in supporting hybrid graphics and Wayland, but issues still pop up. In this article, we’ll go over some practical steps for troubleshooting poor video performance on these laptops.

[Read More]

Taming systemd Timer Services to Run Your Daily Backup at a Reasonable Hour

Introduction to systemd Timer Services

I’ve been using systemd timer services for years to schedule tasks on my Linux systems, and I have to say, they’re a game-changer. Most Linux distributions, including Debian, Arch Linux, and OpenSUSE, use systemd as their default init system, so it’s worth learning how to use them. In this article, I’ll show you how to use systemd timer services to run daily backups at a reasonable hour.

[Read More]

Troubleshooting Common Connection Issues with resolvectl and ss on Linux

Introduction to Troubleshooting Connection Issues

When working with Linux, connection issues can arise due to various reasons such as misconfigured DNS settings, firewall rules, or network interface configurations. I’ve seen this go wrong when a simple DNS misconfiguration can bring down an entire application. To troubleshoot these issues, Linux provides a range of tools, including resolvectl and ss. In this article, we will explore how to use these tools to diagnose and resolve common connection problems.

[Read More]

Taming Package Versions with apt-mark and pinning to Avoid Dependency Conflicts

Introduction to Package Versioning

When managing packages on a Linux system, you’ve likely encountered version conflicts, especially when dealing with dependencies. I’ve seen this go wrong when trying to update a package, only to find that it breaks another package that depends on it. In my experience, apt remains a crucial tool for managing packages, and understanding how to use apt-mark and pinning can help avoid these kinds of dependency conflicts.

[Read More]