minimalistic command-line hostname lookup C program