172 reputation
18
bio website az2000.de
location
age 29
visits member for 4 years, 5 months
seen Dec 22 at 10:11

I am postgraduate of RWTH Aachen, Germany and received a M.S. Math and a M.S. CompSci. My main interests are Machine Learning, Neural Networks, Artificial Intelligence, Logic, Automata Theory and Programming Languages. And I'm an enthusiastic hobby programmer with a wide range of side projects, mostly in C++ and Python.


Sep
24
awarded  Autobiographer
Nov
1
awarded  Supporter
Aug
6
awarded  Notable Question
Oct
12
awarded  Popular Question
Aug
16
awarded  Critic
Aug
16
accepted Unix shell: easy way to get IP from hostname
Aug
16
comment Unix shell: easy way to get IP from hostname
Very strange that this answer is some program code... :) Looks almost like a Stackoverflow answer. Doesn't really belong on Serverfault. But I'll accept the answer anyway.
Aug
16
comment Unix shell: easy way to get IP from hostname
I still wonder a bit why Unix shells are not considered as programming languages...
Aug
15
awarded  Commentator
Aug
15
awarded  Student
Aug
15
awarded  Teacher
Aug
14
comment Unix shell: easy way to get IP from hostname
Cool, that works. Esp., perl -MSocket -MData::Dumper -wle'my @addresses = gethostbyname("www.google.com"); my @ips = map { inet_ntoa($_) } @addresses[4 .. $#addresses]; print $ips[0]'.
Aug
14
comment Unix shell: easy way to get IP from hostname
Hehe, how does that belong to MySQL? :) Well...
Aug
14
comment Unix shell: easy way to get IP from hostname
Yea, seems that sed behaves slightly different on each system. :) How annoying. I changed it a bit, I think it should work everywhere now.
Aug
14
comment Unix shell: easy way to get IP from hostname
Hm, resolveip is not installed by default on my Debian.
Aug
14
comment Unix shell: easy way to get IP from hostname
Only, this way doesn't work for servers outside the network. :P
Aug
14
comment Unix shell: easy way to get IP from hostname
Ah, arp -n hostname shows the IP.
Aug
14
comment Unix shell: easy way to get IP from hostname
Well, it finds the entry but it only lists its MAC, not its IP. :)
Aug
14
answered Unix shell: easy way to get IP from hostname
Aug
14
comment Unix shell: easy way to get IP from hostname
Hm, well, not here. I'm curious why that works for you. Or why it does not for me.