Page 1 of 4 1234 LastLast
Results 1 to 10 of 33
Discuss [1.1.4/1.1.3 (all)][solution] Fix EDGE problem with non-functional DNS at the General - Hackint0sh.org; I saw a few users in this forum having a problem to use their EDGE/GPRS ...
  1. #1
    iPhone Moderator Array

    Join Date
    Aug 2007
    Posts
    3,620
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    220

    Default [1.1.4/1.1.3 (all)][solution] Fix EDGE problem with non-functional DNS

    I saw a few users in this forum having a problem to use their EDGE/GPRS connection. They obviously have EDGE/GPRS but Safari and other apps fail to use it. It seems to be a DNS problem again, caused by not properly setup or working DNS servers of the respective carriers.

    [EDIT New version on Installer / For the lazy ones:]
    The solution is updated and now on the Installer! See post #4. There is just little editing left for you. Thx to javacom![END EDIT]
    The solution is completely based upon the work of the user "javacom" at http://www.iphone.org.hk/cgi-bin/ch/...=1&bpg=1&age=0
    He developed the solution for users in Hong Kong to fix their problems with a Hong Kong carrier for firmware 1.1.1. I dont take credit for it. The developer gave his ok to use and alter the solution.

    I just added some changes for using it with 1.1.3/1.1.4 (using the absolute path to the programm makes it work under 1.1.3/1.1.4, editing some paths). Thanks to our board member "Pentium" for pointing me to this problem, the described occured with his carrier Syriatel.


    Requirements
    Unlocked iPhone with 1.1.3/1.1.4
    Installed BSD Sources & Fixes (via Installer or on the iPhone when used iPlus 2.0b for unlock)
    Installed Terminal vt-100 & Fixes (via Installer or on the iPhone when used iPlus 2.0b for unlock)
    Installed Boss Prefs (from Installer)
    Data-Plan for or at least the option to use EDGE/GPRS


    Symptoms (check by order)
    1. When no Wi-Fi around or disabled and trying to open a webpage in Safari you get something like "Safari could not find the Server". Other internet services not working aswell.
    2. Check then in Boss Prefs: "Edge" should have an IP-Number assigned.
    3. Open Mobile safari again and type http://64.233.167.99/. If Googles webpage pops up, this solution is for you


    Reasons (porbably) and solution
    When on EDGE/GPRS for Internet access, the iPhone uses two DNS servers, assigned by your carrier. There is no way changing that in iphones perferences, the iPhone gets them dynamically assigned and different for each carrier.
    If one or both of them are not working properly, internet addresses are not resolved, so Safari and others wont open Googles page when typing www.google.com (cant resolve to 64.233.167.99).
    The iPhone seems to have one more problem: Carriers provide two DNS servers. Even if just the first one is not setup or working properly, the iPhone is not able to use the second.
    The fix will reset the non-working DNS servers of your carrier with the two working DNS servers from OpenDNS


    Solution - Step 1
    1. Disable Wi-Fi, enable EDGE in Boss Prefs. Open any app that requires an Internet connection, like Stocks, weather or Maps.
    2. Quit that app
    3. Open terminal vt-100 on the iphone and log in with your root password, probably alpine
    4. Type cat /etc/resolv.conf
    5. Terminal should respond two lines, each starting with nameserver followed by an IP-number.
    6. take a note of both IP-numbers on a piece of paper
    7. Switch on Wi-Fi again


    Solution - Step 2
    1. Download version 2 of iopendns at http://www.iphone.org.hk/attach/17686-iopendns_v2.zip
    2. Unpack the zip file
    3. Dont use the README for installation cause we will use different paths and not work with 1.1.3/1.1.4!!!
    4. Open the file enable-opendns with a plain text editor, it will look like this

    #!/bin/sh
    #logger -i "opendns v0.1"

    desired_dns1="192.168.111.2"
    desired_dns2="192.168.111.3"

    dns_output=$(/usr/local/bin/iopendns -dns1)

    if [ $dns_output == $desired_dns1 ] || [ $dns_output == $desired_dns2 ]; then
    # logger -i "found dns changed from $dns_output"
    # logger -i "changing dns"
    /usr/local/bin/iopendns
    fi
    5. Change the IP numbers of desired_dns1 and desired_dns2 to the ones your noted in "Solution - Step 1; Topic 6" (marked red)
    6. Change the TWO paths /usr/local/bin/iopendns to /bin/iopendns (marked blue)
    7.Save your work


    Solution - Step 3
    1. Connect with SFTP to your iPhone
    2. Copy iopendns from the archive to iPhones directory /bin
    3. chmod 755 iopendns
    4. Goto /System/Library/SystemConfiguration/Kicker.bundle/
    5. Duplicate Kicker.xml and rename the duplicate to Kicker.xml.bak
    6. Copy/Replace Kicker.xml from Archive into the iPhone folder /System/Library/SystemConfiguration/Kicker.bundle/
    9. Copy enable-opendns (the one you edited) into the iPhone folder /System/Library/SystemConfiguration/Kicker.bundle/
    10. chmod 755 enable-opendns
    11. reboot the iPhone (Hold Sleep/Start-button and Home-Button until Apple-Logo appears, then let go both)

    That should be it. When checking the used DNS servers it should show the two from OpenDNS, EDGE/GPRS should be working now.

    This is just a temporary solution, but working. If you want to go back to factory settings, delete the three files, rename Kicker.xml.bak to Kicker.xml and reboot again.


    Let me know if this works for you.

    volkspost


    the developer informed me, that he is going to update his version to work with 1.1.3/1.1.4 aswell, but you can use the one mentioned and do the few changes.
    He also asked me to put a link to a YouTube video of his SDK-development, here it is: http://www.youtube.com/watch?v=ttd4iMfXR84
    Last edited by volkspost; 03-22-2008 at 11:13 AM. Reason: typo
    Read the stickies and search the forum before posting!
    If you want to become a Hackint0sh supporter click here
    ----------
    iPhone 4 factory unlocked, iOS 4.3.1, jailbroken
    iPad Wi-Fi + 3G (1G), iOS 4.3.1, jailbroken
    iPad 2



  2. #2
    Professional Array

    Join Date
    Sep 2007
    Posts
    56
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    11

    Default

    Thanks so much for explaining this. I've been hoping for a way to use OpenDNS on my iPhone for a while now. It would be really great if someone figured out an automated way to accomplish this and distribute it via installer.

  3. #3
    iPhone Moderator Array

    Join Date
    Aug 2007
    Posts
    3,620
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    220

    Default

    Quote Originally Posted by davpel View Post
    Thanks so much for explaining this. I've been hoping for a way to use OpenDNS on my iPhone for a while now. It would be really great if someone figured out an automated way to accomplish this and distribute it via installer.
    the only problem would be that you first have to find out the two DNS servers your carrier is using. Their IP numbers have to be entered. You can only retrieve them when on EDGE/GPRS but not on Wi-Fi (then your iPhones DNS setting is used). The developer of the 1.1.1 version had this on the installer but just for users in Hong Kong having a contract with a special carrier.

    Installing and editing with the above solution only takes 5-10 minutes, it's easy.

    But I do agree, would be great to see an application where you could set the two IP numbers, writing them into the app that handels the DNS use. Right now the iPhone assigns the IP number of the carrier you use on-the-fly dynamically. Unfortunately I have found no other solution so far to avoid this and use OpenDNS.

    last but not least: only those users are affected having a carrier that does not maintain its DNS servers in a propper way. setting that permanently to OpenDNs might be a solution and even good for ppl having to use prepaid simcard from other countries while travelling and making sure to be able to use EDGE/GPRS.

    volkspost
    Read the stickies and search the forum before posting!
    If you want to become a Hackint0sh supporter click here
    ----------
    iPhone 4 factory unlocked, iOS 4.3.1, jailbroken
    iPad Wi-Fi + 3G (1G), iOS 4.3.1, jailbroken
    iPad 2

  4. #4
    iPhone Moderator Array

    Join Date
    Aug 2007
    Posts
    3,620
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    220

    Thumbs up EDGE/GPRS fix for DNS now on Installer

    I have been in contact with javacom, the developer of the original package. He was so kind to update his solution for 1.1.3/1.1.4 and put it on the Installer. getting the solution done is now way easier.

    Start Installer on the iPhone and add the Source

    http://www.iphone.org.hk/attach/24828-iopendns.plist

    to the Installer, "refresh" and you will find a new category in Install called "DNS Fix" with the solution. Install it.

    For this new version and the installer script, all the files are put under /System/Library/SystemConfiguration/Kicker.bundle
    Moreover, javacom has added a file called dnsip.txt in the same directory, so that you can add new dns ip address as a watch list (one DNS IP address per line), it will trigger the iopendns command.

    After installing go to post 1 of this thread, check "Requirements" and "Symptoms" to make sure the solution fits your needs.

    After that follow all steps in "Solution - Step 1" to find out the IP addresses of the two nameservers your carrier is using for EDGE/GPRS.

    After that connect to the iPhone with SFTP, open the file dnsip.txt in /System/Library/SystemConfiguration/Kicker.bundle. Add the two IP numbers (each one new line) save and quit SFTP connection

    Remember to restart iphone if the dnsip.txt is changed and to be effective.

    Tested and working for me. If you do not need the fix any longer, use uninstall in Installer, it will remove all files and restore to original state!

    volkspost
    Last edited by volkspost; 03-21-2008 at 07:02 PM.
    Read the stickies and search the forum before posting!
    If you want to become a Hackint0sh supporter click here
    ----------
    iPhone 4 factory unlocked, iOS 4.3.1, jailbroken
    iPad Wi-Fi + 3G (1G), iOS 4.3.1, jailbroken
    iPad 2

  5. #5
    iPhone Moderator Array

    Join Date
    Aug 2007
    Posts
    3,620
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    220

    Default Fix works on Hotspots with lack of DNS service aswell!

    The solution is even a good one when you are hanging out at a public hotspot where their DNS for Wi-Fi sucks and wont let you connect to the internet.

    Open Terminal vt-100 on the iPhone and type

    cd /System/Library/SystemConfiguration/Kicker.bundle
    ./iopendns -dns1 >> dnsip.txt
    ./iopendns -dns2 >> dnsip.txt


    This will add both their DNS servers to the list and your iPhone will use OpenDNS servers instead of the ones the Hotspot offers and let you connect to the Internet.

    The command always adds the actual used IP numbers of the DNS servers - the one your connection type Wi-Fi or EDGE/GPRS uses at this moment - to the list.


    volkspost
    Read the stickies and search the forum before posting!
    If you want to become a Hackint0sh supporter click here
    ----------
    iPhone 4 factory unlocked, iOS 4.3.1, jailbroken
    iPad Wi-Fi + 3G (1G), iOS 4.3.1, jailbroken
    iPad 2


  6. #6
    Professional Array

    Join Date
    Sep 2007
    Posts
    56
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    11

    Default

    Wonderful! Thanks.

  7. #7
    Senior Professional Array Pentium's Avatar

    Join Date
    Dec 2007
    Location
    My PC
    Posts
    360
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    25

    Default

    Thanx man, you did a wonderfull job helping me with this GPRS problem..I can't say more...! Thanx alot!

    as I tried the customized one above I think I'll be lazy and try the "Installer" one cause it's more easy

    I Installed it, edit the dsn text file to add my Carrier DNS...restarted....

    and everything is working!

    3 months of trying! I've got my GPRS working again!!

    Thanx again & again Volkspost! really Wonderful! and sure thanx for the original developer for this DNS method "javacom" for adding this useful tool to use a specified DNS.

    A Quick Question: do I need to let this Open DNS Server in the file? (192.168.111.4) or just write my carrier DNS?
    Last edited by Pentium; 03-22-2008 at 03:44 AM.
    iPhone 4 32G Black - iPad 2 64G Black
    Retired: iPhone 2G - iPhone 3G - iPhone 3GS - iPad

  8. #8
    Developer Array javacom's Avatar

    Join Date
    Mar 2008
    Posts
    304
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    28

    Default

    Yes, you can remove that line (192.168.111.4) in dnsip.txt

  9. #9
    Senior Professional Array Pentium's Avatar

    Join Date
    Dec 2007
    Location
    My PC
    Posts
    360
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    25

    Default

    Quote Originally Posted by javacom View Post
    Yes, you can remove that line (192.168.111.4) in dnsip.txt
    okayz! I removed it and everything is working...

    cause sometimes using an open DNS cause some site as google.com to do a verifying string before using the site..cause of some spam and stuff
    iPhone 4 32G Black - iPad 2 64G Black
    Retired: iPhone 2G - iPhone 3G - iPhone 3GS - iPad

  10. #10
    Developer Array javacom's Avatar

    Join Date
    Mar 2008
    Posts
    304
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    28

    Default

    Please also refer to this articles for the Complaints of using opendns

    http://en.wikipedia.org/wiki/OpenDNS


 

 
Page 1 of 4 1234 LastLast

Similar Threads

  1. [GPRS/EDGE] Working Solution to turning it off ?
    By midway in forum Free Toolchain Software (Cydia App's)
    Replies: 2
    Last Post: 06-15-2008, 08:41 PM
  2. [BossPrefs] does not deactivate EDGE - any solution?
    By framacx in forum Free Toolchain Software (Cydia App's)
    Replies: 18
    Last Post: 04-15-2008, 05:05 PM
  3. Replies: 4
    Last Post: 04-06-2008, 06:18 PM
  4. Solution for EDGE settings not saving on v1.1.2
    By toyanucci in forum iPhone "2G" (Rev. 1)
    Replies: 1
    Last Post: 12-24-2007, 08:54 AM
  5. Solution for EDGE settings not saving on v1.1.1
    By jhollington in forum iPhone "2G" (Rev. 1)
    Replies: 129
    Last Post: 11-16-2007, 04:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 03:49 AM.
twitter, follow us!