Solaris 10 host name resolving
Hi,
I'm trying to migrate my existing mail server to a new Solaris 10 server. To be able to test the new server I installed a local DNS server (bing 9.3) so I can play with the MX records. I changed /etc/resolv.conf so it points to 127.0.0.1, I made sure there is almost nothing in /etc/hosts (just a line for 127.0.0.1 and for the name of the local machine). When I lookup 'mail' using nslookup or dig I get
vervifontaine.[root]# nslookup mail
Server: 127.0.0.1
Address:127.0.0.1#53
Name:mail.mydomain.com
Address: xx.xx.xx.209
as expected. However when I try telnet or ping to this server it insists on trying to contact the old ip-address of the existing server:
vervifontaine.[root]# telnet mail 25
Trying xx.xx.xx.197... <<<<<<<<<<<<<<<<<<
Connected to mail.sonytel.be.
How is is possible that telnet tries to connect to ...197 while DNS says it should be ...209? (there is no entry for 'mail' in /etc/hosts)
I tried rebooting to make sure nothing is cached but that doesn't make any difference. I tried killing nscd but that doesn't help either
Any help would be very much appreciated
Nico

