# I have a problem that under DHCP

**URL:** <https://forums.digi.com/t/i-have-a-problem-that-under-dhcp/9035>\
**Category:** Rabbit\
**Created:** [April 5, 2011, 2:42pm UTC](https://forums.digi.com/t/i-have-a-problem-that-under-dhcp/9035 "2011-04-05T14:42:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LynMs](https://avatars.discourse-cdn.com/v4/letter/l/b487fb/32.png) [@LynMs](https://forums.digi.com/u/LynMs)\
**Post date:** [April 5, 2011, 2:42pm UTC](https://forums.digi.com/t/i-have-a-problem-that-under-dhcp/9035/1 "2011-04-05T14:42:27Z")

</div>

I have a problem that under DHCP, if I resolve() a dotted IP - it works fine, but the same host resolve(“hostname”) succeeds - but with a DIFFERENT return value. (compared ecternally in a command window ping)  
I can subsequently ping the dotted return value, but NOT the value returned when using the hostname…  
BUT! elsewhere in the same program - I send SMTP email using the text hostname - so ‘someone’ is able to resolve it properly…  
Any ideas ?
