[Mono-list] How to get the DNS server address?

Petit Eric surfzoid at gmail.com
Sat Nov 29 16:13:08 EST 2008


2008/11/29 chenxing <cxcxcxcx at gmail.com>:
>
>
>
> William Huskey wrote:
>>
>> the problem is that if mono did it in a better way, it would not work on
>> windows.. because .Net does not do it that way. so you have to give up
>> some
>> cross platform.  that is unless you use mono on windows..
>> but as long as a Mono is a implementation of .net on Unix/Linux it will
>> follow the way of MicroSoft .Net
is it bad to write in mono framework, for those particulary case,
something like  :
if(Environment.osplatforme = unix)
{
use unix stuff
}
else
{
use windows stuff
}
??
>>
>> Sorry
>>
>>
>
> I don't think so. They doesn't conflict. In Windows, the function returns
> the DNS Server Address registered to the corresponding Network Interface,
> and in Linux, the function can return the collection of DNS Server Addresses
> registered to system, because they are used by each Network Interface in
> fact.
>
> BTW, I have posted a bug and it is assigned now.
> --
> View this message in context: http://www.nabble.com/How-to-get-the-DNS-server-address--tp20733912p20749433.html
> Sent from the Mono - General mailing list archive at Nabble.com.
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>



-- 

Cordially.

Small Eric Quotations of the days:
---------------------------------------------------------------------------
If one day one reproaches you that your work is not a work of
professional, say you that:
Amateurs built the arch of Noah, and professionals the Titanic.
---------------------------------------------------------------------------

Few people are done for independence, it is the privilege of the powerful ones.
---------------------------------------------------------------------------

No key was wounded during the drafting of this message.


More information about the Mono-list mailing list