How to install dig or nslookup in Debian without BIND?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to install dig or nslookup in Debian without BIND?
Hello,
I wrote a simple script for my Debian Wheezy home server that compares its current IP to the one stored in the (remote) DNS server and updates the server when those do not match. It's currently getting the IP stored in the DNS by pinging my domain, an ugly hack IMO. I'd like to directly query the DNS server with dig, nslookup or any other scriptable command, but when I try apt-get|aptitude install dig|nslookup, apt* insists that it is dependent on BIND. I don't need a local DNS server, I just want to query a remote server!
So, is there a way of installing dig or nslookup without BIND (preferably without compilation)?
Well, for fun, practice and it's already there and working. Besides, I run it of a small flash memory, so a 1KB script is probably better.
But dnsutils does not seems to be the answer I was looking for:
Code:
# aptitude install dnsutils
The following NEW packages will be installed:
bind9-host{a} dnsutils geoip-database{a} libbind9-60{a} libdns69{a}
libgeoip1{a} libisc62{a} libisccc60{a} libisccfg62{a} liblwres60{a}
0 packages upgraded, 10 newly installed, 0 to remove and 178 not upgraded.
Need to get 4,838 kB of archives. After unpacking 10.6 MB will be used.
10MB for one tiny utility? Isn't that a bit too much?
The host package is dependent on the same packages as dnsutils. I couldn't find a bind-utils package, but there is once called bind9utils, though it doesn't install neither dig nor nslookup.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.