• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: alternative to /etc/hosts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: alternative to /etc/hosts


  • Subject: Re: alternative to /etc/hosts
  • From: Josef Andrysek <email@hidden>
  • Date: Thu, 16 Aug 2007 00:11:42 +0200

Thanks to all,

On another list, I got a suggestion that Bonjour lets me register domains .local using DNSServiceRegisterRecord. This should maybe help me.

The idea of creating a "NAT" is also very good and i will use it if DNSServiceRegisterRecord will not help me.

Best

Josef


On Aug 15, 2007, at 12:54 AM, Philip D. Wasson wrote:


On Aug 14, 2007, at 17:20, Josef Andrysek wrote:

Hi,
the problem is that I want my application to run on clients computers and I can not want them to configure something.

Do the libraries that you're calling accept ports in addition to host names? If so, perhaps you could always give "localhost" to the libraries plus a port that your app is listening on. When the library connects to the specified port, your code would open a connection to the desired host and pass data between the two connections, kind of like a NAT server. You'd probably need one listening port per mapped service.


On Aug 13, 2007, at 11:56 PM, Nathan Duran wrote:

Hi All,
I need to dynamically define a dns records, which will be valid for
my application only.
Writing into /etc/hosts solves this problem only partially. It is
valid for all applications and it requires root permissions to write
something into /etc/hosts.


Is there please any possible solution?  My application uses some
third-party libraries, so I can not simply change the code
responsible for domains resolving.

Thanks

Josef

You can easily configure BIND to allow dynamic updates, but I'm not sure how
you would go about limiting the records' resolvability to one specific
application.


--
Nathan S. Duran
Principal
KHI Ltd. Co., LLC
www.khiltd.com



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.com


This email sent to email@hidden

---------------------------------------- Philip D. Wasson email@hidden



_______________________________________________ Do not post admin requests to the list. They will be ignored. Macnetworkprog mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Re: alternative to /etc/hosts (From: Josef Andrysek <email@hidden>)
 >Re: alternative to /etc/hosts (From: "Philip D. Wasson" <email@hidden>)

  • Prev by Date: Re: alternative to /etc/hosts
  • Next by Date: Developing drivers for a USB-based network device. . .?
  • Previous by thread: Re: alternative to /etc/hosts
  • Next by thread: Developing drivers for a USB-based network device. . .?
  • Index(es):
    • Date
    • Thread