wig is a lightweight command-line DNS client written in C. It provides a straightforward way to perform DNS lookups without the extensive options and complexity of more comprehensive utilities such as dig.
The application focuses on individual DNS queries rather than advanced diagnostics or DNS server administration. Its compact command syntax makes it useful for checking domain name resolution, investigating DNS configuration problems and querying specific nameservers.
wig is designed for Linux systems that comply with the POSIX.1-1995 standard. The project provides a simple build process using GCC and make.
This is free and open source software.
Key Features
- Simple command-line syntax for performing DNS lookups without an interactive interface.
- Queries different DNS record types, including A records for IPv4 addresses and AAAA records for IPv6 addresses.
- Defaults to an A record when no record type is specified, allowing lookups with a command such as wig example.com.
- Specify a custom DNS server by prefixing its IP address or hostname with @, for example @1.1.1.1 or @ns1.google.com.
- Supports querying DNS servers on non-standard ports using the -p option.
- Can force DNS queries to use TCP instead of the default UDP transport with the -t option.
- Allows the record type, nameserver and transport options to be combined in a single command.
- Provides make targets for compiling, installing and uninstalling the utility.
- Designed for POSIX.1-1995-compliant Linux systems.
Website: g.freya.cat/wig/tree
Support:
Developer: Freya Murphy
License: GNU General Public License v3.0

wig is written in C. Learn C with our recommended free books and free tutorials.
Related Software
| Alternatives to dig | |
|---|---|
| dog | DNS client with colorful output, DNS-over-TLS and DNS-over-HTTPS support |
| doggo | Command-line DNS client for humans |
| drill | Perform DNS lookups and display answers returned from the name server(s) |
| dnslookup | Supports plain DNS, DoH, DoT, DoQ, and DNSCrypt |
| dug | Global DNS propagation checker |
| q | Support for UDP, TCP, DoT, DoH, DoQ and ODoH |
| DNS Clients | |
|---|---|
| dog | Colourful output, understands normal command-line argument syntax |
| doggo | Command-line DNS client for humans |
| q | Tiny command line DNS client supporting UDP, TCP, DoT, DoH, DoQ and ODoH |
| ddclient | Update dynamic DNS entries |
| GoDNS | Dynamic DNS (DDNS) client tool |
| dig | DNS lookup utility |
| awl | DNS lookup tool |
| ZDNS | High-speed DNS resolver and command line utility |
| dnslookup | Make DNS lookups |
| dug | Global DNS propagation checker |
| drill | Perform DNS lookups |
| dness | Dynamic DNS client |
| zns | Fast DNS lookup tool with DNSSEC validation and delegation tracing |
| In-a-Dyn | Small and simple Dynamic DNS, DDNS, client |
| doh | Query multiple DNS-over-HTTPS resolvers with JSON output |
| dnsupdate | Modern and flexible dynamic DNS client |
| ch4 | Dig-compatible DNS client with UDP, TCP and EDNS support |
| wig | Simple and lightweight DNS client |
| dyndnsc | Dynamic DNS update client |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.