Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.
Thread: no dns-utils???is a discussion within the
3rd Party Apps Requestsforums, a part of the
3rd Party Apps For iPhone | iPod Touchsection;
I have to resort to python just to get a dns lookup. Looking in the cydia repo, there is no package that contains "dig", no "nslookup", no "host". So just...
11-12-2010, 07:46 PM #1no dns-utils???
I have to resort to python just to get a dns lookup. Looking in the cydia repo, there is no package that contains "dig", no "nslookup", no "host". So just to get a dns lookup, I have to do something like (in python):
What a headache.
12-10-2010, 05:01 AM #2Code:
apt-get install bind
I know nothing about Python, but I cobbled this together from your example, just save it in /usr/local/bin/dig and then chmod 755 /usr/local/bin/dig and pretend...
#!/usr/bin/python import sys import socket if (len(sys.argv) > 1): print socket.gethostbyname(sys.argv) else: print "Usage", sys.argv, "<FQDN>"
12-18-2010, 11:27 AM #3
03-21-2011, 04:20 PM #4
Plz try below...
# apt-get install bind
# cat > /etc/resolv.conf
# cp /usr/bin/dig /usr/bin/dig_
# cp /usr/bin/nslookup /usr/bin/nslookup_
# cp /usr/bin/host /usr/bin/host_
# apt-get remove bind
# mv /usr/bin/dig_ /usr/bin/dig
# mv /usr/bin/nslookup_ /usr/bin/nslookup
# mv /usr/bin/host_ /usr/bin/host