Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1115479
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T03:09:40+00:00 2026-05-17T03:09:40+00:00

Several sites offer hostname to IP conversions, or in their wording: Query a DNS

  • 0

Several sites offer hostname to IP conversions, or in their wording:

Query a DNS domain nameserver to
lookup and find IP address information
of computers in the internet. Convert
a host or domain name into an IP
address.

However, I haven’t been able to find any free webservices offering this functionality.
I’ve stumbled upon this Chinese webservice but it doesn’t seem to do what I want.

Anyone know of a free one ?

Clarification of exactly what I want to be able to do:
I want an free, external web service (on a computer different than mine, somewhere in the internet) providing a simple nslookup method with a signature such as:

IPAddress[] GetIpAddress(string hostName)

Where the result is equivalent to what I would get here:
http://www.kloth.net/services/nslookup.php

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T03:09:41+00:00Added an answer on May 17, 2026 at 3:09 am

    You don’t say exactly what you want to be able to do. However there are a one or two dig type C# implementations such as:

    DNS.NET Resolver (C#) – CodeProject

    I’ve used this one in the past and it works pretty well.

    Update:

    You already have this available. There’s plenty of free DNS services such as Google or OpenDNS you can use as nameservers.

    Using .NET’s built in capabilities you can use the System.Net namespace and the Dns class. There’s a couple of static methods you could use:

    IPHostEntry GetHostEntry(string hostNameOrAddress)

    IPAddress[] GetHostAddresses(string hostNameOrAddress)

    The above methods will query the DNS servers as specified in the computer’s own network settings.

    If you want to specify your own resolver then use the Dig tool I mentioned above. The output goes straight to the console but you could modify to parse the results into return values.

    Adding a reference to the project I was able to do this:

    Dig dig = new Dig();
    dig.DnsResolver = new Resolver("8.8.8.8");
    dig.DigIt("stackoverflow.com");
    

    The results returned look like:

    ; <<>> Dig.Net 0.0.1 <<>> @8.8.8.8 A stackoverflow.com.net
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 53737
    ;; flags:  qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;stackoverflow.com.net.                 IN      A
    
    ;; ANSWER SECTION:
    stackoverflow.com.net.          1800    IN      A       74.207.240.60
    stackoverflow.com.net.          3600    IN      A       203.169.164.119
    stackoverflow.com.net.          3600    IN      A       97.107.142.101
    stackoverflow.com.net.          1800    IN      A       69.164.199.155
    stackoverflow.com.net.          43200   IN      A       74.207.231.120
    stackoverflow.com.net.          43200   IN      A       109.74.195.184
    
    ;; Query time: 216 msec
    ;; SERVER: 8.8.8.8#53(8.8.8.8)
    ;; WHEN: Mon Oct 04 17:11:48 2010
    ;; MSG SIZE rcvd: 135
    

    You don’t need a third party service to be able to do this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say several external sites are scraping/harvesting your content and posting it as their
Several sites, including this one, are using OpenID to authenticate their users. And of
I read it on several sites that precompiled headers and address space layout randomization
I'd like to do the following: grab news from several sites, parse their content
I have several sites where users can send me email through an html form
I have several sites in different domains: example.com , example.org , mail.example.com and passport.example.org
I have several sites that I want to link back to the main site
I have seen several sites where these social share buttons looks perfectly horizontal aligned.
I have looked through several sites for any useful documentation and have come up
I have several ASP.NET sites in IIS7 and would like to be able to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.