-
Notifications
You must be signed in to change notification settings - Fork 343
Error in DNS.rb #483
Comments
This worked for me so I went ahead and made a pull request. Thanks for the fix HaroldW! |
That worked for me! I had the same issue as sandwh1ch from issue #481. |
i suspect this problem has more to do with the linux libraries when one compiles ruby, since I nor apparently Pete encountered the problem. Try updating your distro, reinstall rvm, ruby and SP.
|
Elvis, |
Yes, by assigning a static IP using the MAC in the router then you don't need to mess with the interfaces or resolv.conf files. The only difference is I am using an iPhone 5 and you have a 4S. I wonder if Pete also has an iPhone 5. I wouldn't have suspected there would have been an iPhone hardware dependancy. I will have to differ to Pete. FYI, I'm not familiar with RMerlin's firmware, but I personally prefer the open source firmware from www.dd-wrt.com, which I confirmed your router model is supported. The advantage is one can perform transparent DNS redirect in the router which eliminates the need to change the DNS entry on the phone itself or running RUBYDNS (or DNSMASQ) on the RPi. The www.dd-wrt.com firmware is also easy to set up a PPTP VPN server which allows one to access siriproxy over the cell network. |
The issue for me involves the iPhone 4S and Mac OSX 10.8.3. |
I had a look to see if RMerlin's firmware will allow transparent DNS redirect, and it doesn't appear in any of the documentation or in a google search. I agree... to a degree... :) that it would be good to have the router perform the DNS redirect. On the other hand, I've found that I can enter two addresses in my iPhone's WiFi setup DNS field separated by a comma. I put the RPi's address first, then the router's address next. This way, it tries the RPi first, but if the RPi isn't running, it then tries the router itself. It seems to work for me and it provides the advantage that I can easily turn off redirecting traffic to the RPi on my phone without having to change anything on the router. Here's what the DNS field on my iPhone looks like: |
Nice tip! The downside is if you did use a VPN over cellular, you would have to set the proxy options in the VPN config. Using the transparent method in the router makes all the manual DNS entries unnecessary. |
I haven't dabbled in the VPN features yet. That's actually one of the big features in RMerlin's custom firmware. I may play with it in the future, which will push me towards the router transparent DNS redirect. It would seem that I could also use the router DNS redirect to play tricks on my wife. ;), like sending her to a webpage of something that I want her to buy for me. It also could have other nefarious uses that unscrupulous folks might exploit if they had access to the router. |
LOL. Or redirect her from those expensive jewelry sites, to a site for power tools! |
How would one do that. Cause that sounds like you could have some fun with that. |
The redirect for the Siri server works like this: So I think all you'd have to do is add another line, assuming you had her iPhone set to use the SiriProxy server as a DNS address: |
That's really interesting I need thought to do anything like that. Thanks |
That's a subject for another forum, but here you go. http://www.instructables.com/id/URL-Redirect-Prank-using-dd-wrt/#step1 Before you do, you might want to configure keyword blocking for words like "divorce lawyer" "undetectable poisons" |
Thanks Harold! |
fixed in SP 0.5.3. perform |
There is an error in the dns.rb file.
Ruby is complaining that MatchData object doesn't respond to the method respond!
To fix it, replace line 56 which is:
match(/guzzoni.apple.com/, Resolv::DNS::Resource::IN::A) do |_host, transaction|
By
match(/guzzoni.apple.com/, Resolv::DNS::Resource::IN::A) do |transaction|
Cheers.
H.
The text was updated successfully, but these errors were encountered: