When I ping a given website from a CentOS 6.2 server console, it pings to that website's old IP address. How can I force CentOS to refresh the cached IP for the website?
I searched and found I could use:
nscd -i hosts
But I get command not found when I try this.
EDIT Adding output of dig as requested, changed real domain for example.com:
; <<>> DiG 9.7.3-P3-RedHat-9.7.3-8.P3.el6_2.3 <<>> www.example.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 20322
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;www.example.com. IN A
;; ANSWER SECTION:
www.example.com. 8084 IN CNAME example.com.
example.com. 8084 IN A xxx.xxx.xx.xxx
;; Query time: 8 msec
;; SERVER: 126.96.36.199#53(188.8.131.52)
;; WHEN: Thu Jun 21 15:23:03 2012
;; MSG SIZE rcvd: 69