+ Reply
Results 1 to 2 of 2
  1. #1
    What's Jailbreak?
    Join Date
    Sep 2007
    Posts
    15
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default how does iphone do DNS lookups?

    (please let me know if this post would fit better elsewhere)

    I know a little linux and only as much of OS X that overlaps.

    How does the iPhone do DNS lookups? I was having some trouble with name lookups when I was using GPRS so I deleted /etc/resolv.conf assuming it would be recreated next time I use it or reboot. Nothing has made it come back. Here is the weird part: I can connect to my wireless network and web and email work fine, and if I go to the terminal prompt I can ping yahoo.com just fine too, but if I type "dig yahoo.com" it times out, presumably because the /etc/resolv.conf file is empty. So where exactly does this thing store nameserver information?

  2. #2
    What's Jailbreak?
    Join Date
    Aug 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    for future reference, if you populate /etc/resolv.conf with:

    domain lan
    nameserver 208.67.222.222
    nameserver 208.67.220.220

    the unix tools that come with the BIND DNS server package will work (dig, host, nslookup).

Posting Permissions

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