Timeline for How can I resolve a hostname to an IP address in a Bash script?
Current License: CC BY-SA 3.0
41 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 12 at 7:28 | answer | added | Dick Visser | timeline score: 0 | |
| Jun 12, 2024 at 19:57 | answer | added | akostadinov | timeline score: 0 | |
| Mar 3, 2021 at 9:45 | answer | added | textshell | timeline score: 1 | |
| Sep 30, 2019 at 7:52 | answer | added | Kevin | timeline score: -1 | |
| Aug 27, 2019 at 12:12 | answer | added | dotbit | timeline score: 4 | |
| Feb 13, 2019 at 9:54 | answer | added | Slaven Rezic | timeline score: 3 | |
| Sep 27, 2018 at 16:55 | answer | added | aaa | timeline score: -1 | |
| Jun 29, 2018 at 15:08 | comment | added | j_random_hacker | @0xC0000022L: Nobody "keeps me" from doing that, but the answer specifically suggests hosts, and so far 4 people have upvoted vinc17's comment expressing the pain caused by "suddenly IPv6". Being prepared for IPv6 is not always the issue: many programs need a way to determine whether two names/addresses refer to the same host. They can either use simple string matching, or they must know a lot about the network to find the "true" answer. The latter is a minefield, so many 3rd-party programs and systems -- that I have no control over -- use the former. | |
| Jun 29, 2018 at 14:15 | comment | added | 0xC0000022L | @j_random_hacker: who keeps you from requesting specifically IPv4 (ahostsv4) or IPv6 (ahostsv6) addresses? Personally I find nothing wrong with the unspecific request returning IPv6. Your code should be prepared. IPv6 has been out there for more than 20 years now. | |
| Jun 29, 2018 at 12:46 | comment | added | j_random_hacker | @0xC0000022L: The new shame is that that answer suggests getent hosts somehost, when running this while on somehost will produce an IPv6 address, which is different from how most other tools (ping, ssh at least) resolve names, and breaks some things. Use the ahosts instead of hosts. | |
| Nov 14, 2017 at 3:40 | answer | added | Andrey Izman | timeline score: 5 | |
| Oct 27, 2017 at 6:12 | answer | added | user257655 | timeline score: 4 | |
| May 14, 2017 at 0:16 | answer | added | Thomas Jensen | timeline score: 4 | |
| Mar 23, 2017 at 9:59 | answer | added | Andy Wong | timeline score: 3 | |
| Nov 3, 2016 at 17:31 | answer | added | Dweia | timeline score: 6 | |
| Mar 17, 2016 at 21:03 | answer | added | D P Baker | timeline score: 5 | |
| S Dec 13, 2015 at 12:14 | history | suggested | Dhia | for more precise targeting | |
| Dec 13, 2015 at 11:17 | review | Suggested edits | |||
| S Dec 13, 2015 at 12:14 | |||||
| Aug 14, 2015 at 15:07 | answer | added | Philippe Gachoud | timeline score: 6 | |
| Aug 4, 2015 at 19:47 | answer | added | Will | timeline score: 4 | |
| Apr 29, 2015 at 22:15 | comment | added | 0xC0000022L | Shame that the getent <ahosts|ahostsv4|ahostsv6|hosts> <hostname> answer is somewhere down there near the bottom. It's the simplest, requires no extra packages and is easier to parse from a Bash script, too. | |
| Apr 29, 2015 at 22:01 | answer | added | Mohammed Zourob | timeline score: 6 | |
| Sep 30, 2014 at 21:36 | vote | accept | Eugene Yarmash | ||
| Sep 30, 2014 at 15:26 | answer | added | Franck | timeline score: 9 | |
| Jun 15, 2014 at 14:42 | answer | added | Tom Freudenberg | timeline score: 39 | |
| Jan 11, 2014 at 1:16 | answer | added | RubyTuesdayDONO | timeline score: 6 | |
| Oct 4, 2013 at 19:12 | answer | added | sborsky | timeline score: 57 | |
| Oct 4, 2013 at 15:22 | answer | added | Stefan Farestam | timeline score: 9 | |
| Sep 12, 2012 at 9:34 | answer | added | dbernt | timeline score: 27 | |
| Aug 10, 2012 at 21:20 | answer | added | Andrew McGregor | timeline score: 29 | |
| Sep 21, 2011 at 15:13 | answer | added | jfg956 | timeline score: 34 | |
| Sep 15, 2011 at 21:50 | answer | added | greg0ire | timeline score: 60 | |
| S Sep 15, 2011 at 18:59 | history | suggested | Peter Mortensen | CC BY-SA 3.0 | Copy edited. |
| Sep 15, 2011 at 18:50 | review | Suggested edits | |||
| S Sep 15, 2011 at 18:59 | |||||
| Sep 15, 2011 at 18:23 | answer | added | Heinzi | timeline score: 60 | |
| Sep 15, 2011 at 16:29 | answer | added | Chris Down | timeline score: 863 | |
| Sep 15, 2011 at 15:54 | history | tweeted | twitter.com/#!/StackUnix/status/114366538194231296 | ||
| Sep 15, 2011 at 15:01 | answer | added | Matteo | timeline score: 5 | |
| Sep 15, 2011 at 14:59 | vote | accept | Eugene Yarmash | ||
| Sep 30, 2014 at 21:36 | |||||
| Sep 15, 2011 at 14:50 | answer | added | manatwork | timeline score: 175 | |
| Sep 15, 2011 at 14:43 | history | asked | Eugene Yarmash | CC BY-SA 3.0 |