Why do you want to use Indy for that?
Just fpc alone works like that:
uses netdb;
var
temp: THostEntry;
begin
ResolveHostByName('google.com', temp);
writeln(temp.Addr.s_bytes[1],'.',temp.Addr.s_bytes[2],'.',temp.Addr.s_bytes[3],'.',temp.Addr.s_bytes[4]);
end.