+ Reply
Results 1 to 3 of 3

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: nmap "Unable to open /etc/resolv.conf"

is a discussion within the

Native iPhone / iPod Touch App Discussion

forums, a part of the

3rd Party Apps For iPhone | iPod Touch

section;
I have installed Terminal.app and nmap along with it. Everytime I run it, it tells me "Unable to open /etc/resolv.conf". I can't do reverse DNS lookup because of this though.
...
  1. #1
    Green Apple nevarDeath's Avatar
    Join Date
    Jun 2007
    Location
    Sand Springs Oklahoma
    Posts
    84
    Thanks
    8
    Thanked 3 Times in 3 Posts

    Default nmap "Unable to open /etc/resolv.conf"
    I have installed Terminal.app and nmap along with it. Everytime I run it, it tells me "Unable to open /etc/resolv.conf". I can't do reverse DNS lookup because of this though. I couldn't find anything on google or this site about it. I looked in /etc/ and resolv.conf is there. I also tried to chmod 777 it and It says it can't perform that on a "dangling symlink" so that indicates the file is no longer present on the device. I'm not sure where to go from here so I'm wondering

    1) How can I find resolv.conf?
    2) Is this a supported feature in the iphone version of nmap?

    Thanks for all help

    When asked what he would say to the columbine killers, Marilyn Manson said, "I would say nothing to them. I would listen to what they have to say, because that's what nobody else did" from the movie Farenheit 9/11

  2. #2
    Green Apple victis's Avatar
    Join Date
    Jan 2010
    Location
    florida, usa
    Posts
    80
    Thanks
    0
    Thanked 14 Times in 9 Posts

    hey first of all in the /etc directory run this command

    ls -n
    as you can see this is a symbolic link
    it should be in red in mobile terminal because the place it is linking it is no longer there lol!!!!!

    you will have to create a new resolv.conf in the following directory

    /var/run/


    goodluck

  3. #3
    Green Apple nevarDeath's Avatar
    Join Date
    Jun 2007
    Location
    Sand Springs Oklahoma
    Posts
    84
    Thanks
    8
    Thanked 3 Times in 3 Posts

    Wow thanks for your reply! It worked!

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts