take over DNS resolving

This is a discussion on take over DNS resolving within the Windows Programming forums, part of the Platform Specific Boards category; Dear programmers, I've got programs(just random, don't have the source code) that are being mounted on a virtual drive(with the ...

  1. #1
    Banned
    Join Date
    Apr 2011
    Posts
    8

    Question take over DNS resolving

    Dear programmers,

    I've got programs(just random, don't have the source code) that are being mounted on a virtual drive(with the aim of the DOKAN FileSystem Lib). Somehow programs being mounted cannot resolve DNS(translate domainnames into ip-adresses) when they are being mounted. This is a known bug in Dokan. There are not many alternatives to this than the dokan driver file system when you want to create a virtual file system. Anyways, I was thinking of creating a solution for this problem myself, some kind of short cut or so. I was wondering:
    Is there a way to take over a function call from a certain process? Since I would like to resolve the DNS function calls of a mounted program with a program that is not being mounted. Can I possbily hook into the function getaddr from a mounted program or into winsock from this mounted program, and then let my own program resolve the dns and send back the answer? Or is there a better way to somehow manipulate the DNS resolving part of a program? Maybe I can share my virtual domain adress space and call the mounted program as a childprocess of myself? Will it then use the dll calls loaded by the program that is not mounted?

    Lot of questions, but I have not a clue what is a good options that might work.
    Someone with a suggestion?

    Friendly regards,
    robby.
    Last edited by links4all; 05-02-2011 at 07:18 AM.

  2. #2
    Registered User
    Join Date
    Apr 2011
    Posts
    4
    omg yes. so dokan guy knows this & cannot help us? how we can get internet for our apps run from a mounted dokan drive?? anybody here ever used dokan?

  3. #3
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,265
    Take a look at the Detours library. The free version only works with 32bit though.
    bit∙hub [bit-huhb] n. A source and destination for information.

  4. #4
    Registered User
    Join Date
    Apr 2011
    Posts
    4
    lol $9,999.95

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Resolving hostname into IP
    By david84 in forum Networking/Device Communication
    Replies: 10
    Last Post: 09-14-2010, 01:08 PM
  2. dns resolving (getting mx record)
    By l2u in forum Networking/Device Communication
    Replies: 7
    Last Post: 09-17-2006, 09:59 AM
  3. resolving names and ip addresses
    By dicky in forum Networking/Device Communication
    Replies: 5
    Last Post: 07-01-2004, 04:32 PM
  4. InternetConnect() error, resolving name
    By bennyandthejets in forum Windows Programming
    Replies: 2
    Last Post: 11-16-2003, 06:41 PM
  5. Resolving Hostname :: MFC
    By kuphryn in forum Windows Programming
    Replies: 2
    Last Post: 04-08-2002, 09:26 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21