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

Petit Eric surfzoid at gmail.com
Sat Nov 29 21:21:07 EST 2008


2008/11/30 William Huskey <william.huskey at gmail.com>:
> Its not an issue that it would not inter fear in windows.. it would not
> compile in MicroSoft .NET with out the Mono Specific Library..  cross
> platform means that it would work when compiled with mono the same as when
> compiled with MS .NET compiler. it also means that once compiled it would
> run on both platforms with no extra libraries. once compiled to an IL would
> it not have a link to the mono library which would be missing on most
> windows systems.
> which means you will need to write to mono, or write to .Net.
> if your code does the decision of the platform, then your code will compile
> on all systems.
>
> some things are a pain if you want to work on other OS, this is a simple fix
> like the difference in "clear" and "clr" depending if you are on windows or
> Linux.
> I have a feeling that the bug report will get ignored, getting to full .net
> 2.0 and 3.0 - 3.5 is a better use of time I would think.
> but its your time, as this could have been coded and bug tested. I hope its
> not for work.
hum, i m not at the origin of the post, either i made a bad
description or you don't understand, i try to say, why not include in
the framework, code who say if we are on unix sytem with the .NET C# :
"Environment.OSVersion.Platform = PlatformID.MacOSX" or
"PlatformID.Unix" or ... (better a select case), parse the
/etc/resolve file; so i didn't see an extra lib who could break
portability of mono under windows !!?
>
>
> On Sat, Nov 29, 2008 at 1:13 PM, Petit Eric <surfzoid at gmail.com> wrote:
>>
>> 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.
>> _______________________________________________
>> Mono-list maillist  -  Mono-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-list
>
>
>
> --
> William S. Huskey
>
> UNIX Systems Engineer
>
> Maritime Systems Solutions Division
>
> SAIC
>
> Tel: 425-267-5643
>
> Email: huskeyw at saic.com
>



-- 

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