Results 1 to 3 of 3
  1. #1
    zmcpherson is offline Member
    Join Date
    Jan 2013
    Posts
    1
    Rep Power
    0

    Default (Android) Printing/Clearing DNS Cache...

    This is a a multi-part question in which I know I am entirely over my head for. Java isn't my native coding language but I need some help developing an app the interfaces with the windows application that I have already built for work.

    What I am trying to accomplish is to get fairly accurate information about when and what DNS servers that an android device is trying to reach out too (I have been using TCPDump, but I want to get away from it and integrate my own system). The best solution that I could come up with was to get the DNS cache off of an android device, then clear the cache, then wait awhile and request the cache again, etc.. I know that the cache is not at the OS level (otherwise I would just use shell to access it), but instead it's stored at the Java level (this is where I need some hints).

    Im pretty sure that everything that I need to know is in the java.net.InetAddress()

    Ive been looking through it at grepcode: but I am having trouble figuring out where I need to start.

    What I need in the application is:

    1.) To be able to send an intent to clear DNS Cache from a windows application.
    2.) To be able to send an intent to dump DNS Cache to a textfile somewhere on the device from a windows application.

    or (If its entirely possible)

    1.) Just keep appending to an text file, on the device, as DNS attempts come in.

    I'm not asking for a free cookie (necessarily), just a kick in the pants pointing me in a direction or to somethings that I can research.

    As always, any and all help is always appreciated.

    Thanks,
    Zach
    Last edited by zmcpherson; 01-29-2013 at 10:38 PM.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,237
    Rep Power
    19

    Default Re: (Android) Printing/Clearing DNS Cache...

    Moved from New to Java

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,237
    Rep Power
    19

    Default Re: (Android) Printing/Clearing DNS Cache...

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Clearing up a GUI
    By Alpa in forum New To Java
    Replies: 6
    Last Post: 01-31-2012, 02:55 PM
  2. Having problems clearing an arrayList
    By zenitis in forum New To Java
    Replies: 8
    Last Post: 05-05-2011, 09:29 PM
  3. Dialog box clearing graphics
    By theborland in forum Java Applets
    Replies: 1
    Last Post: 12-03-2010, 07:27 PM
  4. emptying/clearing an array
    By i8java in forum New To Java
    Replies: 2
    Last Post: 08-09-2010, 01:39 PM
  5. Help Clearing BufferedImage
    By ketann in forum Java 2D
    Replies: 19
    Last Post: 03-29-2010, 07:45 PM

Tags for this Thread

Posting Permissions

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