Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

DNS server address resolving to 0.0.0.0 ?

287 views
Skip to first unread message

Brodeur@discussions.microsoft.com Philippe Brodeur

unread,
Jun 22, 2007, 11:44:02 AM6/22/07
to
I am using WinCE 5.0.

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 G. Tobey [eMVP]

unread,
Jun 22, 2007, 12:07:09 PM6/22/07
to
If your DHCP server is giving you back DNS addresses, you should be showing
one from ipconfig. I just tried out several things on one of my devices and
what's set by the DHCP server is what's returned by ipconfig. It's possible
that a WINS server could be used to resolve certain names, also, without
DNS. Can you use the browser and visit something that your WINS server
probably doesn't know about, like www.microsoft.com? It's possible, I
guess, that statically listed DNS server addresses might be in the registry
and Windows CE might be using those, if it doesn't get anything via DHCP...

Paul T.

"Philippe Brodeur" <Philippe Bro...@discussions.microsoft.com> wrote in
message news:292CB70E-6E64-4C4B...@microsoft.com...

Philippe Brodeur

unread,
Jun 22, 2007, 12:48:01 PM6/22/07
to
My WinCE device is an interface-less device (no screen, no keyboard)
therefore, i cannot try what you are suggesting. But i tried to ping
www.microsoft.com and it DID resolve that address (meaning ?)

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 G. Tobey [eMVP]

unread,
Jun 22, 2007, 1:21:35 PM6/22/07
to
I don't see the problem, so I can't really speculate. You'll have to, at
the very least, verify that you've got all of the CE5 QFEs installed. As I
said, you should also verify that there aren't any statically assigned DNS
servers in the registry for your network adapter, (which is what, by the
way?)

Paul T.

"Philippe Brodeur" <Philipp...@discussions.microsoft.com> wrote in
message news:4BA0E6E2-D2B2-4FA7...@microsoft.com...

Philippe Brodeur

unread,
Jun 22, 2007, 6:30:01 PM6/22/07
to
I found something interesting this afternoon:

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.

0 new messages