How to specify a name server in user program

This is a discussion on How to specify a name server in user program within the Bind Users forums, part of the DNS and Related Forums category; Hello all, I need to write a program to contact multiple name servers. The selection of a name server should ...


Go Back   Usenet Forums > DNS and Related Forums > Bind Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-24-2004
nishant
 
Posts: n/a
Default How to specify a name server in user program

Hello all,
I need to write a program to contact multiple name servers. The
selection of a name server should be done based on the domain in which
the host lies.

For example:
If I am quering for abc.example.com then I would like to set the
nameserver as 10.53.0.1. If I am querying for xyz.example.com then I
would like to set the nameserver as 10.53.0.2 and so on.

My question is:
Is there any way of doing such a thing in the program without
disturbing the resolv.conf file? Or in other words,
Is there any API provided to set the name server's IP address in a
user program?

Any kind of help is most welcome. Thnx in advance,
Nishant


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 02:41 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0