I wouldn't use Dns.GetHostEntry() as this goes is a DNS network call, and it may fail under some circumstances. If it were me, I wouldn't query through the DNS system I'd just use WMI to read the data on the local hardware. Here's a post that does this;
http://kodefumaster.wordpress.com/2009/05/01/getting-the-network-adaptor-mac-ip-address-with-wmi/
Remember that each network card might have multiple IP addresses as well.
[Updated]
...or even easier, System.Net.NetworkInformation as you've already noted in your comments. See here;
How do I get the Local Network IP address of a computer programmatically? (C#)
But I wouldn't use DNS unless you specifically want to.