saxfr command not found

In this troubleshooting guide we learn how to fix saxfr command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

saxfr: command not found

or when using sudo you get the following error message

sudo: saxfr: command not found

Solutions to saxfr: command not found

How To Fix saxfr: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu saxfr is provided by pdns-tools package.

pdns-tools is:

PowerDNS is a versatile nameserver which supports a large number of different backends ranging from simple zonefiles to relational databases and load balancing/failover algorithms. PowerDNS tries to emphasize speed and security.

This package contains several tools to debug DNS issues. These tools do not require any part of the PowerDNS server components to work.

  • dnsbulktest: A resolver stress-tester
  • dnsgram: Show per 5-second statistics to study intermittent resolver issues
  • dnsreplay: Replay a pcap with DNS queries
  • dnsscan: Prints the query-type amounts in a pcap
  • dnsscope: Calculates statistics without replaying traffic
  • dnstcpbench: Perform TCP benchmarking of DNS servers
  • dnswasher: Clean a pcap of identifying IP information
  • ixplore: Explore diffs from IXFRs
  • nsec3dig: Calculate the correctness of NSEC3 proofs
  • saxfr: AXFR zones and show extra information

To fix this problem, we can install more using the command below.

sudo apt-get -y install pdns-tools

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install pdns-tools.

sudo apt -y install pdns-tools

Or if you have aptitude installed you can use the following command.

sudo aptitude install pdns-tools

Summary

In this tutorial we learn how to fix saxfr command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.