Timeline for How can I resolve a hostname to an IP address in a Bash script?
Current License: CC BY-SA 3.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Aug 3, 2014 at 18:26 | comment | added | RubyTuesdayDONO | @Stuart is right — i've learned a great deal since writing that and oversimplified a powerful command. getent remains my favorite, although i also like dig +short | |
| Aug 3, 2014 at 11:42 | comment | added | Stuart P. Bentley | To be clear, getent hosts isn't just a lookup in /etc/hosts - it's a full-on DNS-resolving call to gethostbyaddr(3), and it's very unlikely to fail in a case where dig will succeed. See the man page for getent. | |
| Jan 11, 2014 at 3:51 | history | edited | Anthon | CC BY-SA 3.0 | typo |
| Jan 11, 2014 at 1:52 | review | First posts | |||
| Jan 11, 2014 at 3:51 | |||||
| Jan 11, 2014 at 1:16 | history | answered | RubyTuesdayDONO | CC BY-SA 3.0 |