When i am configuring my Ethernet port for DHCP operation, everything gets
in correctly, (IP, SubMask, and event the gateway address).
But when i try to readout the DNS server list (either by using 'IpConfig
command under Telnet or by using the GetNetworkParams() command), i always
get a single '0.0.0.0' entry for the DNS server address list.
When i 'Ping' a domain name outside our LAN, it DOES work (which tells me
WinCE knows about a DNS server somewhere afterall).
Am i doing something Wrong ? Or is this an undocumented WinCE 'Feature' ?
Thank you.
Paul T.
"Philippe Brodeur" <Philippe Bro...@discussions.microsoft.com> wrote in
message news:292CB70E-6E64-4C4B...@microsoft.com...
Also, if i do IP Config on my WinXP workstation connected to the same
network using DHCP as well, i DO get the DNS servers listed. This only seems
to be WinCE problem now... but why ?
Paul T.
"Philippe Brodeur" <Philipp...@discussions.microsoft.com> wrote in
message news:4BA0E6E2-D2B2-4FA7...@microsoft.com...
1- In my Platform.REG file (in platform builder) i had a key entry that
initialized the DNS server to 0.0.0.0 (did this happened AFTER the DHCP
server had returned me its configuration ?)
-> Removing it had make it re-appear under Telnet (IPCONFIG)
but GetNetworkParams() gets its information from that key so now i get an
empty string trying to read it.
A workaround is to open a registry key (non-midifiable) called DhcpDNS (or
something like that, sorry i'm at home now) under TCPIP param and there i
have the main DNS server address.
So basically, my troubles solves as this:
In the BSP booting process, go fetch that key, copy it to the basic DNS key,
and then
GetNetworkParams() will workout correctly in my application...
Gee !
P.