DNS query

Discussion in 'Java' started by srdjan, Nov 21, 2003.

  1. srdjan

    srdjan Guest

    How to query (lookup) a DNS server using Java? When I say 'query' I mean
    'name resolving'. I'm interested only in solutions that do not use the
    "IP*works" set of components. Also, how can I find out (thru code) what is
    the default DNS server for my computer, and at which port can I query him
    (it is not always 53 as far as I know)?

    Thanks.

    srdjan
     
    srdjan, Nov 21, 2003
    #1
    1. Advertising

  2. srdjan wrote:
    > How to query (lookup) a DNS server using Java? When I say 'query' I mean
    > 'name resolving'.


    java.net.InetAddress.getByName()

    > I'm interested only in solutions that do not use the
    > "IP*works" set of components. Also, how can I find out (thru code) what is
    > the default DNS server for my computer, and at which port can I query him
    > (it is not always 53 as far as I know)?


    I don't think that can be done in pure Java.
     
    Michael Borgwardt, Nov 22, 2003
    #2
    1. Advertising

  3. Ronny Schuetz, Nov 22, 2003
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Fredrik Lundh

    Re: DNS.DiscoverNameServer query

    Fredrik Lundh, Dec 18, 2004, in forum: Python
    Replies:
    2
    Views:
    346
    Steve Holden
    Dec 18, 2004
  2. Anthony

    query sql or dns?

    Anthony, Sep 19, 2004, in forum: ASP General
    Replies:
    1
    Views:
    125
    Steven Burn
    Sep 20, 2004
  3. Sam Roberts
    Replies:
    0
    Views:
    245
    Sam Roberts
    Mar 20, 2005
  4. gavino
    Replies:
    2
    Views:
    190
    Ted Zlatanov
    Jul 27, 2006
  5. Michel Albert

    DNS query against a specific server.

    Michel Albert, Sep 30, 2013, in forum: Python
    Replies:
    5
    Views:
    132
    Gisle Vanem
    Sep 30, 2013
Loading...

Share This Page