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

  • SEARCH
  • Home
  • 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 4069900
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T16:33:34+00:00 2026-05-20T16:33:34+00:00

I need to link against libresolv library , and use it to find my

  • 0

I need to link against libresolv library , and use it to find my dns ip.

Any advice on how to do that ?

Edit:

And how to find dns ip Using this library ?

  • 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-20T16:33:34+00:00Added an answer on May 20, 2026 at 4:33 pm

    In Xcode3, on the left you should have a folder called “System Frameworks” or something like that were there are already other frameworks like Foundation.framework and UIKit.framework. Right-click on that folder, select “Add > Existing frameworks…” and select “libresolv.dylib” from the list.

    Edit: I finally found out how to do this in Xcode4… on the left, in the navigator, select the left-most icon (Project, Command-1). In the tree below, click on the top-most item which is your project. Next, you need to select your target in the left column of the center view. Select the “Build Phases” tab. You now see a bunch of items that can be expanded. Expand the “Link Binary With Libraries” build phase, on the lower-left of that box is a “+” button (“Add items”). Click that, then select “libresolv.dylib” from the list. Phew. A lot harder to find than in Xcode3, IMHO.

    Edit 2: If all you want to do is resolve the IP address of a hostname then you don’t need to link libresolv (AFAIK). See 3 Ways to Resolve a Hostname in iOS for solutions and see the question How to perform DNS query on iOS.

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

Sidebar

Related Questions

I use log4cxx logging library. I need to link with its static version to
Using gcc and ld on x86_64 linux I need to link against a newer
I'm having a linking problem. I need to link against a shared library libfoo.so
I'm trying to link against a library (libcef_wrapper_dll.lib) that was built with the /MDd
I've had numerous problems compiling shared objects that link statically against static libraries. This
I have a closed-source 3rd-party shared library I need to link against. Unfortunately, the
I have a ListView that displays a link button. I need the link button
So, I know that in C you need to link the code to the
I need to display link after each comment, when you click that link, a
I have a C++ Builder DLL that must link against a Delphi package (BPL),

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.