Find the application software connection domain name real IP Modify hosts method

Source: Internet
Author: User
Tags response code port number


I am using a sniffer tool called Dnsquerysniffer, which can display real-time DNS query records for local computers, and for each DNS resolution query, display the following information: Host name, port number, query ID, request type, request response time, response code, etc. and returns the contents of the DNS record. Domain name added to the Hosts file, Dnsquerysniffer will no longer detect the domain name parsing, and then continue to run sniffer sniffer and application software, one to find all the invalid domain name, and then manually add each domain name to the hosts file.



This method is a common way to find local application software available to hosts, which is suitable for all local application software domain name resolution errors caused by failure to run and so on.



Take Dropbox Software as an example, turn off other useless client software first, open Dnsquerysniffer, then run Dropbox, and record the domain name that it visited. Use a Ping tool to find the IP address for this domain name.





Domain name added to the Hosts file, Dnsquerysniffer will no longer detect the domain name parsing, and then continue to run sniffer sniffer and application software, one to find all the invalid domain name, and then manually add each domain name to the hosts file.



Summary



This method is a common way to find local application software available to hosts, which is suitable for all local application software domain name resolution errors caused by failure to run and so on.



Hosts knowledge popularization:



Hosts is a system file without extensions, you can use Notepad and other tools to open, its role is to use a number of commonly used Web site domain name and its corresponding IP address to establish an association "database", when the user in the browser to enter a need to log in to the URL, The system will first automatically find the corresponding IP address from the Hosts file, once found, the system will immediately open the corresponding Web page, if not found, then the system will be submitted to DNS domain name resolution server IP address resolution.



Storage location



Hosts files are not located in the same location on different operating systems (or even in different versions of Windows):



Windows Nt/2000/xp/vista/7/8 (that is, Microsoft NT Series operating system): The default location is%SYSTEMROOT%SYSTEM32DRIVERSETC, but it can also be changed. Dynamic directories are determined by the registry key Hkey_local_machinesystemcurrentcontrolsetservicestcpipparametersdatabasepath. Where%systemroot% refers to the system installation path. For example, Windows xp/windows 7/windows 8 is installed in C:windows, so the Hosts file is in C:windowssystem32driversetc.


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.