A problem occurs when telnet to Solaris fails: Two Solaris Hosts, A and B, are not in the same network segment and belong to different NIS domains. Telnet from host A to host B, prompting Connection closed by foreign host. You cannot establish A telnet Connection. However, it is normal for other machines in the same network segment as host B to telnet to host B. No firewall is set for machine B, and no settings such as/etc/hosts. allow and/etc/hosts. deny are available. On host B, dmesg reports the following message every time the telnet fails: Nov 11 17:35:26 B inetd [24447]: [ID 140027 daemon. error] warning: can't verify hostname: gethostbyname (. domain) failedNov 11 17:35:26 B inetd [24447]: [ID 913506 daemon. warning] refused connect from 10.0.2.105 (name/address mismatch) on host B execute nslookup 10.0.2.105 (IP address of host A) Server: cj-102206.test.comAddress: 10.0.0.21 Name:. the first two lines of domianAddress: 10.0.2.105 are the DNS server information for resolution, and the last two The row is the information of host. View/etc/resolv. conf file, find that the DNS server information is configured, and then view/etc/nsswitch. in the conf file, only files and nis are set for the host line. Add the dns here, as shown in the following figure: hosts: files nis dns, and telnet to host B on host A again.