Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

FAQ
It is currently Tue Jun 06, 2023 9:03 am


FreeBSD ports and pkg, Linux rpm yum and apt, AIX lpp discussions

Author Message
mandrei99
Post  Post subject: Debian: -bash: dig: command not found - Installing dig tool  |  Posted: Tue Jan 13, 2015 12:13 pm

Joined: Tue Aug 04, 2009 9:16 am
Posts: 250

Offline
 

Debian: -bash: dig: command not found - Installing dig tool

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





Top
Display posts from previous:  Sort by  
E-mail friendPrint view

Topics related to - "Debian: -bash: dig: command not found - Installing dig tool"
 Topics   Author   Replies   Views   Last post 
There are no new unread posts for this topic. "checking for libnet_build_ip in -lnet... no"+"ERROR! Libnet library not found"

debuser

1

5413

Tue Dec 06, 2011 10:32 am

admin View the latest post

There are no new unread posts for this topic. PHP-FPM 5.6 from source \w Suhosin & xcache in Debian Linux

mandrei99

0

2892

Wed Jan 14, 2015 8:44 am

mandrei99 View the latest post

There are no new unread posts for this topic. PHP 5.6 & Debian - easy.h should be in <curl-dir>/include/curl/

mandrei99

0

7411

Thu Jan 15, 2015 6:53 pm

mandrei99 View the latest post

 

Who is online
Users browsing this forum: No registered users and 0 guests
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Jump to:  
cronNews News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC - 5 hours [ DST ]



phpBB SEO