An error occurred while attempting to telnet to Solaris.

Source: Internet
Author: User
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 Connectionclosedbyforeignhost. The telnet connection cannot be established. But A problem with B... encountering A telnet to Solaris failure: 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.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.