RE: DNS server temporary change

"Diogo de Andrade" <[email protected]>
Newsgroups gmane.games.devel.windows
Message-ID <003301c41cfa$02a50f30$2201a8c0@azkaban>
Yes, that's what I wanted... I can't have a custom solution, since my
software needs to integrate with existing software... and badly done at
that, too... :|

One of the things I'm considering is to use a database and an app that
runs nslookup for the cases necessary (filling the database) and using
that database to avoid complexity on the server side of things... but
it's sloppy coding... The other alternative is to do an implementation
of a DNS client (shouldn't be too hard, really... I heard the protocol
is pretty simple and it works in a straightforward manner)

Diogo de Andrade
[email protected]


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
Jon Watte
Sent: quarta-feira, 7 de Abril de 2004 17:53
To: [email protected]
Subject: RE: [GD-Windows] DNS server temporary change


It sounds like the original requester has a specific DNS set-up on the
local
machine that prevents the plain functions from working, but at times he
wants to actually get a real DNS resolution from the outside world.
nslookup
allows you to specify a specific, non-local host for looking up names,
hence
it would work even if local DNS is differently configured.

I'm not going to speculate about what this could be useful for, except
to
say that we use DNS as a well-tested, high-performance distributed name
space database in our server cluster. We wrote our own DNS client code,
which isn't that hard -- and it supports asynchronous operation ;-)

Cheers,

			/ h+


-----Original Message-----
From: [email protected]
[mailto:[email protected]]On Behalf Of
Chris Raine
Sent: Wednesday, April 07, 2004 6:20 AM
To: [email protected]
Subject: Re: [GD-Windows] DNS server temporary change


I would use getaddrinfo() to fill a addrinfo structure or use
gethostname() to fill a hostent structure. If the name you specified
exists both structures will contain the IP-Address in network byte-order
which can be converted to an ascii string by the use of the inet_ntoa()
function.

All these functions are well documented in the Platform SDK -> Windows
Sockets.

Of course, you have to link against the WinSock Library and IIRC you
have to initialize the library as well.

hoping to have helped,
chris

On Tue, 2004-04-06 at 12:10, Diogo de Andrade wrote:
> Hey all!
>
> I have an application running on a computer with some DNS settings...
> The problem is, sometimes I need to resolve an name to an IP address,
> and I can only do that through another DNS server... My question is,
is
> it possible to do so in C++? Or will I have to use the command line
> "nslookup" and parse the result? Or the only way is to implement a
> complete DNS client?
>
> Thanks in advance
>
> Diogo de Andrade
> [email protected]
>
>
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> Gamedevlists-windows mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows
> Archives:
> http://sourceforge.net/mailarchive/forum.php?forum_id=555
>



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Gamedevlists-windows mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_id=555





-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Gamedevlists-windows mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_id=555
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.