26

I installed my Raspberry Pi out of the box. Unfortunately, I can't seem to find neither nslookup nor dig.

Where can I find them? Which package do I need to add?

  • uname -a is:

    Linux brambleberry 3.12.28+ #709 PREEMPT Mon Sep 8 15:28:00 BST 2014 armv6l GNU/Linux
    
  • From file /etc/os-release:

    PRETTY_NAME="Raspbian GNU/Linux 7 (wheezy)"
    
Peter Mortensen
  • 2,004
  • 2
  • 15
  • 18
Archemar
  • 715
  • 1
  • 7
  • 15

1 Answers1

35

Use

 sudo apt-get install dnsutils

After installation, nslookup now works:

me > nslookup 8.8.8.8
Server:         192.168.1.1
Address:        192.168.1.1#53

Non-authoritative answer:
8.8.8.8.in-addr.arpa    name = google-public-dns-a.google.com.

Authoritative answers can be found from:
Peter Mortensen
  • 2,004
  • 2
  • 15
  • 18
Archemar
  • 715
  • 1
  • 7
  • 15