On Tuesday, May 21, 2013 3:03:28 PM UTC-7, Wil Cooley wrote:
>
> On Tue, May 21, 2013 at 9:53 AM, Charlie Sharpsteen 
> <ch...@puppetlabs.com <javascript:>> wrote: 
>
> > Could you provide a bit more information on what the entry in your 
> /etc/hosts file looked like? It would be interesting to reproduce this 
> behavior and see if everything is functioning as intended. 
>
>
> Sure; in my /etc/hosts I had the following for my host-only vbox net: 
>
> 192.168.56.1   coolair.local coolair 
>
> With that in place: 
>
> $ time ruby -rsocket -e "Socket.gethostbyname(Socket.gethostname)" 
> real 0m10.013s 
>

Thanks a bunch for the info Wil! One additional question: What is the 
hostname that Ruby is using to perform the lookup? I.E., what is the return 
value  of:

  ruby -rsocket -e 'puts Socket.gethostname'

-Charlie 

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-dev+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-dev@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-dev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to