[android-developers] Re: DNS Query
Hi Radhika, radhika wrote: Hi All, Am a beginner in this area. I am trying to find out how a DNS query is sent from the android device. Am unable to locate the code. Can someone help me by showing me the code where a DNS query is sent. For example, may be from some application like browser? I believe you simply have to use InetAddress.getByName(String Host) ? Like I did use InetAddress's getLocalHost() in resetConnection() funcion in my local app? : http://run.sh/repos/Runftp/src/sh/run/Runftp/FtpConsoleText.java Anyway the Socket() automatically resolves the hostname when given. Ryu -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: DNS Query
You probably are not basically able to change it to your own server. Chances are you can connect to your internal WiFi network and get the automatic DNS settings from dhcpd or whatever. I can dynamically connect through my own rooter (Linux) and pass that beyond to the internet by IP masquerading. Ryu Android Development さんは書きました: What if the application requires to send a query to a DNS server installed at a particular IP address. how do i configure my DNS server in *hosts/*/*resolv*/*.*/*conf *from the application ?/ //* * On Wed, Feb 3, 2010 at 8:40 PM, Lewske Wada r...@run.sh wrote: Hi Radhika, radhika wrote: Hi All, Am a beginner in this area. I am trying to find out how a DNS query is sent from the android device. Am unable to locate the code. Can someone help me by showing me the code where a DNS query is sent. For example, may be from some application like browser? I believe you simply have to use InetAddress.getByName(String Host) ? Like I did use InetAddress's getLocalHost() in resetConnection() funcion in my local app? : http://run.sh/repos/Runftp/src/sh/run/Runftp/FtpConsoleText.java Anyway the Socket() automatically resolves the hostname when given. Ryu -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com mailto:android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com mailto:android-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android 2.0.1 SocketTimeoutException received with FTP Data channel
Hi James, mericksonj wrote: The TCP port is entered correctly as 2121 when I connect to FTP, the FTP cpntrol session is started properly according to the server logs. I am not using SFTP since I have disabled the sub-system on my SSH server. I am trying to use SSH TCP forwarding alone to establish and maintain the ftp session sice most FTP clients won't support 1024 bit RSA key authentication. I am considering FTPS, but I'm not sure I want to open up another port to the internet. The SSH service is the only one I currently allow through the firewall. Can you tell me more about the Java error message I'm getting? or maybe if there are any android native FTP apps I can use? Well I don't know if you need two ports for FTP tunneled through SSH, but seems like you could not create a data connection for FTP over SSH. I recommend FTPS as it runs on usual FTP ports (21 for connection and some other for data channel) and is programmed in a secure and established manner using standard SSL package. I've developed an FTP client implementation using FTPS called Runftp and should be downloaded in Market. (Searched by Runftp maybe) Ryu -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android 2.0.1 SocketTimeoutException received with FTP Data channel
It also has SFTP capability to some extent, but actually depends on a third-party library (Jsch) and I suspect the performance is not so good. I'm talking about Runftp. Ryu Lewske Wada wrote: Hi James, mericksonj wrote: The TCP port is entered correctly as 2121 when I connect to FTP, the FTP cpntrol session is started properly according to the server logs. I am not using SFTP since I have disabled the sub-system on my SSH server. I am trying to use SSH TCP forwarding alone to establish and maintain the ftp session sice most FTP clients won't support 1024 bit RSA key authentication. I am considering FTPS, but I'm not sure I want to open up another port to the internet. The SSH service is the only one I currently allow through the firewall. Can you tell me more about the Java error message I'm getting? or maybe if there are any android native FTP apps I can use? Well I don't know if you need two ports for FTP tunneled through SSH, but seems like you could not create a data connection for FTP over SSH. I recommend FTPS as it runs on usual FTP ports (21 for connection and some other for data channel) and is programmed in a secure and established manner using standard SSL package. I've developed an FTP client implementation using FTPS called Runftp and should be downloaded in Market. (Searched by Runftp maybe) Ryu -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android 2.0.1 SocketTimeoutException received with FTP Data channel
Is SFTP such an excellent standard? It is based on SSH and user database so it takes time to authenticate and therefore there's no anonymous logins allowed in SSH. FTP needs a connection originated from the server in port mode, but it's secure enough as long as you use a dedicated ftp-data port 20. The problem is you cannot access from inside packet filtering network. If you open passive ports, you have to tell which ports to open to the server like PassivePorts xxx in for example /etc/proftpd.conf. Ryu Bob Kerns wrote: You're reinventing the wheel here, back before they invented circles. SFTP uses the same port as SSH (22 is the standard, but you can substitute if you want to throw off port-scanners) -- you would not be opening another port. FTP is *extremely* problematic in the modern world. Originally, it required that the SERVER open a port back to the CLIENT. This almost always fails, these days, due to NAT, firewalls, etc. But it is still the default in many clients. Even if you managed to make it work, it would be highly insecure -- your data would NOT be going through your secure channel, and you must open up ports on the client! You'd have to use so-called passive FTP. You may even find clients that don't implement it. You're certainly going to be plagued with client differences. You're certainly doing kinda-a-the-same-thing, but with a lot more complexity, security issues, and problems. Really -- if you have control over the server side, DO NOT implement FTP. On Feb 3, 9:01 am, mericksonj mericks...@gmail.com wrote: The TCP port is entered correctly as 2121 when I connect to FTP, the FTP cpntrol session is started properly according to the server logs. I am not using SFTP since I have disabled the sub-system on my SSH server. I am trying to use SSH TCP forwarding alone to establish and maintain the ftp session sice most FTP clients won't support 1024 bit RSA key authentication. I am considering FTPS, but I'm not sure I want to open up another port to the internet. The SSH service is the only one I currently allow through the firewall. Can you tell me more about the Java error message I'm getting? or maybe if there are any android native FTP apps I can use? Thanks! --James -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en