Grab It Now

Monday, January 5, 2015

UnknownHostException in mac osx

Issue:

java.net.UnknownHostException: abc-026bf227b: abc-026bf227b: nodename nor servname provided, or not known at java.net.InetAddress.getLocalHost(InetAddress.java:1473)

Fix:

Fixed by simple command in vi editor
  echo "127.0.0.1 $HOSTNAME" | sudo tee -a /etc/hosts

This makes and entry in /etc/hosts
127.0.0.1 abc-026bf227b
Posted by pvsnambiar at 7:51 PM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

About Me

My photo
pvsnambiar
View my complete profile

Blog Archive

  • ►  2018 (1)
    • ►  January (1)
  • ►  2016 (1)
    • ►  May (1)
  • ▼  2015 (3)
    • ►  November (1)
    • ►  June (1)
    • ▼  January (1)
      • UnknownHostException in mac osx
  • ►  2014 (9)
    • ►  May (1)
    • ►  March (3)
    • ►  February (4)
    • ►  January (1)
  • ►  2013 (14)
    • ►  June (1)
    • ►  April (2)
    • ►  March (1)
    • ►  February (3)
    • ►  January (7)
  • ►  2012 (6)
    • ►  October (1)
    • ►  June (2)
    • ►  March (1)
    • ►  February (1)
    • ►  January (1)
  • ►  2011 (11)
    • ►  November (1)
    • ►  August (7)
    • ►  January (3)
  • ►  2010 (12)
    • ►  August (1)
    • ►  July (7)
    • ►  May (1)
    • ►  April (3)
Awesome Inc. theme. Powered by Blogger.