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 8354127
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T09:27:44+00:00 2026-06-09T09:27:44+00:00

From a Mac OS X app, I want to resolve some domain names using

  • 0

From a Mac OS X app, I want to resolve some domain names using a specific DNS server (that has not been set in System Preferences), and easily retrieve the resolved addresses.

I can do this in Terminal with nslookup google.com DNS_SERVER but can’t find a simple way to accomplish it in Objective-C. I though NSHost would have a similar way to specify the DNS server to resolve with, but unfortunately it doesn’t.

Any suggestions as to how to go about this?

  • 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-06-09T09:27:46+00:00Added an answer on June 9, 2026 at 9:27 am

    In general, on the platforms I have used including OSX, the OS built in functions to do host lookups do not allow bypassing of the system DNS configuration. If you really want to do this, you either need to try and hack the OS settings (like some windows apps unfortunately do) or connect directly to the DNS servers using sockets and your own DNS framework code.

    I cant say this definitively, but Im pretty sure thats the case on OSX as well.

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

Sidebar

Related Questions

I'm trying to install my app from the Mac App Store now that it's
I want to transfer data from my desktop pc/mac to my iphone app. To
I want to open the Mac Appstore from my OSX app and to give
I need to transfer binary files from my pc/mac to my app. I want
I'm a newbie with Json, so I want to extract some app information from
I want to make an Mac application which read e-mails from Mail.app and display
I made an app that downloads videos from our server. The issue is: When
I have a server where I store data from Mac A and Mac B.
I'm basically trying to extract a Mac application from a zip file using QuaZip.
I am porting some Core Data code from iPhone to Mac OS X. Problem

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.