Timeline for strace does not list /etc/hosts in ping/host command in CentOS 7
Current License: CC BY-SA 4.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 2, 2019 at 4:15 | vote | accept | CppLearner | ||
| Aug 8, 2019 at 22:33 | answer | added | Patrick Mevzek | timeline score: 3 | |
| Aug 8, 2019 at 21:18 | comment | added | Mark Plotnick |
What's the output of service nscd status ?
|
|
| Aug 8, 2019 at 15:46 | comment | added | CppLearner | Thanks. Updated. | |
| Aug 8, 2019 at 15:46 | history | edited | CppLearner | CC BY-SA 4.0 |
added 41 characters in body
|
| Aug 8, 2019 at 15:44 | comment | added | muru | What do your nsswitch.conf and host.conf contain? | |
| Aug 8, 2019 at 15:43 | comment | added | jesse_b |
I think as host(1) is specifically for DNS lookups it wouldn't make sense for it to check the /etc/hosts file
|
|
| Aug 8, 2019 at 15:37 | history | asked | CppLearner | CC BY-SA 4.0 |