— 1 minute read

mhost is designed to use multiple DNS servers in parallel and combine their answers. In this way, it is easy to troubleshot DNS issues or even spot DNS server misconfigurations.

mhost comes with a predefined set of public DNS servers and can load DNS servers from the project, which maintains large lists of public DNS servers per country. By default mhost uses all local DNS servers listed in /etc/resolv.conf. It also runs certain checks on the data, e.g., it compares the serial numbers of SOA records.

mhost’s output is colorized if supported by the terminal and can be controlled by several output modules. A detailed output shows the answers from all responding servers. These two output modules also support a human-friendly output with times and durations shown as relative times, as well as semantic output of certain resource records. Further, JSON output allows for easy automatic processing of the answers from scripts etc.