DNS flush not happening automatically
Issue
- The DNS server has an entry called
myserverthat is a CNAME that usually point tomyserver1:
+---------+
+------+myserver1|
+----+---+ +---------+
|myserver|
+----+---+ +---------+
+myserver2|
+---------+
- When the CNAME
myserveris changed to point tomyserver2, the change is not reflected in some commands liketraceroute. - It takes ~3 hours to take effect.
- nscd is configured:
# grep -i hosts /etc/nscd.conf
# Currently supported cache names (services): passwd, group, hosts
enable-cache hosts yes
positive-time-to-live hosts 120
negative-time-to-live hosts 20
suggested-size hosts 211
check-files hosts yes
persistent hosts yes
shared hosts yes
max-db-size hosts 33554432
- After invalidating the cache using
nscd -i host, it works fine. - Is there way that flush happens automatically without manual interference?
Environment
- Red Hat Enterprise Linux (RHEL) 5
- nscd
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
