Topic review - Debian: -bash: dig: command not found - Installing dig tool
Author
Message
Post subject: Debian: -bash: dig: command not found - Installing dig tool | Posted: Tue Jan 13, 2015 12:13 pm
Minimal installation of Debian Linux does not provide some tools for network troubleshooting like dig, tcpdump, lsof (although netstat can easily be used instead of lsof). Dig is part of
dnsutils package.
To install dig under Debian: Code:
user@host:~# dig -bash: dig: command not found user@host:~# apt-get install dnsutils Reading package lists... Done Building dependency tree ... user@host:~# dig ; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 36568 ;; flags: qr rd ra; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;. IN NS ;; ANSWER SECTION: . 7075 IN NS l.root-servers.net. . 7075 IN NS c.root-servers.net. . 7075 IN NS f.root-servers.net. . 7075 IN NS h.root-servers.net. . 7075 IN NS e.root-servers.net. . 7075 IN NS d.root-servers.net. . 7075 IN NS j.root-servers.net. . 7075 IN NS i.root-servers.net. . 7075 IN NS m.root-servers.net. . 7075 IN NS a.root-servers.net. . 7075 IN NS g.root-servers.net. . 7075 IN NS b.root-servers.net. . 7075 IN NS k.root-servers.net. ;; Query time: 17 msec ;; SERVER: 8.8.8.8#53(8.8.8.8) ;; WHEN: Tue Jan 13 11:10:14 2015 ;; MSG SIZE rcvd: 228
Minimal installation of Debian Linux does not provide some tools for network troubleshooting like dig, tcpdump, lsof (although netstat can easily be used instead of lsof). Dig is part of [i]dnsutils[/i] package. [b]To install dig under Debian:[/b] [code] user@host:~# dig -bash: dig: command not found user@host:~# apt-get install dnsutils Reading package lists... Done Building dependency tree ... user@host:~# dig ; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 36568 ;; flags: qr rd ra; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;. IN NS ;; ANSWER SECTION: . 7075 IN NS l.root-servers.net. . 7075 IN NS c.root-servers.net. . 7075 IN NS f.root-servers.net. . 7075 IN NS h.root-servers.net. . 7075 IN NS e.root-servers.net. . 7075 IN NS d.root-servers.net. . 7075 IN NS j.root-servers.net. . 7075 IN NS i.root-servers.net. . 7075 IN NS m.root-servers.net. . 7075 IN NS a.root-servers.net. . 7075 IN NS g.root-servers.net. . 7075 IN NS b.root-servers.net. . 7075 IN NS k.root-servers.net. ;; Query time: 17 msec ;; SERVER: 8.8.8.8#53(8.8.8.8) ;; WHEN: Tue Jan 13 11:10:14 2015 ;; MSG SIZE rcvd: 228[/code]
Jump to:
Select a forum
------------------
VPS Hosting & Security
SSD VPS providers - Public Relations
Tutorials & Guides
BSD Operating Systems
Linux Distributions
AIX
Tutorials for general Unix
Windows XP, Windows Vista, Windows 7
FreeBSD, Linux and AIX
Linux & BSD on desktops and Multimedia stations
System administration
Memory, Storage, Backup and Filesystems
Package and Software Management
Linux / BSD and Network Security
TCP/IP Networking
Virtualization
Shell Scripting and Programming
High Availability & High Performance
Unix Networked Services & Applications
Mail servers and clients
Qmail installations dedicated forum
Apache, Nginx, Lighttpd and other web server software
FTP, Scp, Sftp
FTP, Scp, Sftp, Rsync
Website Development and Databases
Mysql
OpenLDAP - Lightweight Directory Access Protocol
Search engine optimization
PHP and other web technologies
Network Security & Routing & Switching
Deep Packet Inspection / Application Identification / Application FIrewall
Routing and dynamic routing protocols
Ethernet Switching (also Juniper EX Switches)
Protecting the SRX Routing Engine (Control Plane)
Security, NAT, Policies, Screen, Flow, TCP
VPN / Dynamic VPN / Ipsec
Junos Tips & Tricks
Performing Class of Service actions on the SRX
Juniper SRX
JNCIE-SP and JNCIE-ENT - Service Provider and Enterprise tracks
JNCIE-SEC - Security track
Juniper virtual MX (vMX)
TP-Link JetStream Switching
VPNs
Networking
TCPdump & Wireshark tips & tricks
Certifications
Red Hat Certified Engineer/Technician RHCE/RHCT
Open Source Organizations
Organization announcements
Migrating the world to IPv6
News Site map SitemapIndex RSS Feed Channel list