On running the following command in CentOS 7, getent
is appending my domain name to .org domains only:
[root@panel ~]# getent hosts ballotpedia.org
2606:4700:3031::6815:241e ballotpedia.org.mydomain.com
2606:4700:3032::ac43:b854 ballotpedia.org.mydomain.com
This doesn't happen when I lookup any other domain that doesn't contain .org extension as seen below:
[root@panel ~]# getent hosts google.com
2404:6800:4007:805::200e google.com
On stopping nscd
service, the issue doesn't happen. I have tried clearing nscd
cache using the following command as well but that didn't resolve the issue:
for db in `ls /var/db/nscd`;do /usr/sbin/nscd -i $db;done && /scripts/restartsrv_nscd
How to fix this and what might be causing this?