At my workplace, we have our mail, file server, ect on internal IP addresses, with the router doing 1:1 translation for external to internal addresses: 216.47.xx.yy is translated to 192.168.xx.yy.
Therefore, there are 2 proper IP addresses to talk to the mail server, one for outside, one for inside. On occasions that I'm finding no rhyme or reason for, internal clients will spontaneiously think that they should talk to the mail server on the external IP address, which mucks everything up.
I want a way to ask lookupd "who told you that host is there?", when I see things like this:
Code:
[me:~] me% dig aqua.mydomain.com
; <<>> DiG 9.2.2 <<>> aqua.mydomain.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49074
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;aqua.mydomain.com. IN A
;; ANSWER SECTION:
aqua.mydomain.com. 3600 IN A 192.168.6.5
;; Query time: 93 msec
;; SERVER: 192.168.6.13#53(192.168.6.13)
;; WHEN: Thu Mar 17 14:15:51 2005
;; MSG SIZE rcvd: 50
[me:~] me% ping aqua.mydomain.com
PING aqua.mydomain.com (216.47.xx.yy): 56 data bytes
64 bytes from 216.47.xx.yy: icmp_seq=0 ttl=64 time=3.69 ms
64 bytes from 216.47.xx.yy: icmp_seq=1 ttl=64 time=3.316 ms
64 bytes from 216.47.xx.yy: icmp_seq=2 ttl=64 time=7.322 ms
Yes, I obscured some info, but the point remains: dig gives a correct answer (a 192.168.6.0 network IP, supplied by my internal DNS at 192.168.6.13), while ping gives an external. Therefore, there's incorrect information cached in lookupd.
Can I get details on where netinfo's cache information came from?