Telnet failed -- Temporary failure in name resolution: Illegal seek solution

Source: Internet
Author: User

Telnet failed -- Temporary failure in name resolution: in the Illegal seek solution project, the Hongqi Asianux 3.0 for x86 system is used to provide the telnet service externally. Modify the/etc/xinetd. d/telnet configuration file, restart the xinetd service, and use netstat-ln | grep 23 to check that port 23 is enabled on the server. However, if you use the Netterm client or a Windows terminal to connect, the following error is reported: getnameinfo: localhost: Success Temporary failure in name resolution: Illegal seek is suspected of requiring a DNS return visit in the security settings. ◎ The solution is the same as the configuration method, and there is no same problem on the original virtual machine. After troubleshooting, it is related to the network configuration set on the Virtual Machine and the System NIS service configuration file. There are three solutions: 1. The correct DNS server is provided because I set the NIC of the VM to the Bridged mode, and the NIC gets the correct DNS server through DHCP: reference # cat/etc/resolv. conf; generated by/sbin/dhclient-scriptnameserver 218.85.157.99nameserver 202.101.110.55 if you have configured the correct DNS server, the above error message will not appear. 2. Setting the specified client host and IP address is also a security restriction. The client that uses telnet to access the server must have the Host Name and IP address on the server. In this case, if you have not configured a DNS server, you only need to add the IP address and host name of the client to access telnet to the/etc/hosts file, for example: reference # cat/etc/hosts192.168.48.1 test. In this way, machines with the client IP address 192.168.48.1 can access the server through telnet. 3. Modify the NIS setting file. If a large number of clients need to access the server, the second method will be very troublesome. In this case, you only need to modify/etc/nsswitch. conf file, find: Reference # hosts: db files nisplus nis dnshosts: files dns changed to: Reference # hosts: db files nisplus nis dnshosts: files save, it will never start with an error. ※Note: This modification will invalidate the DNS set in/etc/resolv. conf. Select one of the above methods as needed.

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.