DNS is a domain name resolution system, it can convert IP to domain names, but also to convert domain names to IP
1. Install DNS Service
Start-〉 Settings-〉 Control Panel-〉 Add/Remove Programs-〉 Add/Remove Windows Components-〉 "network Services"-〉 select "
ScenarioBecause the company's intranet has multiple servers whose http services need to be mapped to the company's Internet static IP address, if you use the routing Port ing, you can only map the port 80 of an intranet server to the Internet port 80, port 80 of other servers can only be mapped to non-Port 80 of the Internet. Non-Port 80 ing requires adding ports to the domain name during access, wh
"style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" http:// S3.51cto.com/wyfs02/m02/8b/5b/wkiol1hkjpfzao9gaabxoevtbvg106.png "height=" 193 "/>We view the contents of two log files separatelyCat D1.ixmsoft.com_access.logCat D2.ixmsoft.com_access.logWe can see which machine is accessing the IP address that will be displayed6
Let's say your server IP is 211.147.9.106
1 First, you should know which DNS server is responsible for this IP's reverse domain name resolution. You can use this page to query reverse domain name resolution information http://www.dnsstuff.com/tools/ptr.ch?
Because the company intranet has more than one server HTTP service to map to the corporate extranet static IP, if you use the port map of the route to do, only one intranet server 80 port mapped to the external network 80 port, the other server's 80 port can only be mapped to the external network of non-80 port. Non-80 port mapping in the time of access to the domain name plus port, more trouble. And the co
Domain Name reverse resolution query command
If you do your own mail server, generally you need Reverse Domain name resolution, you can ask the IP provider for help.
Domain Name reverse
, or need Java to handle, so when the above two URLs are not matched, the nature is handled by Java, Direct (Prox_pass Www.java.domain)Here is the schema diagram: 3. Nginx Configuration File Codeserver{Listen the; server_name www.abc.com; #PHP处理的请求 Location^~/php/{rewrite^/php/(. *)? (. *) $/index.php?service=$1$2 Break; #重写到PHP处理 (here is just an example, everyone changes according to their own path) Try_files $uri @my_php; } #原来由java处理, now change the request to PHP processing Locati
In oracle, how does one obtain the local IP address and the domain name based on the IP address ?, Oracleip----- Resolve the ip addressSQL> select utl_inaddr.get_host_address ('Google. com') from dual;UTL_INADDR.GET_HOST_ADDRESS ('Google. com ')---------------------------------------------------------------------------
Label:-----Resolving IP AddressesSql> Select Utl_inaddr.get_host_address (' google.com ') from dual; Utl_inaddr. Get_host_address (' google.com ')--------------------------------------------------------------------------------122.229.30.202 -----Get the native IP addressSql> select utl_inaddr.get_host_address from dual;Get_host_address------------------------------------------------------------------------
Because the company intranet has more than one server HTTP service to map to the company's external network static IP, if the port map with the route to do, you can only one intranet server 80-port map to the extranet 80 ports, the other server 80 ports can only map to the outside of the network of 80 ports. Non-80-port mapping in the access time to the domain name plus port, more trouble. And the company p
IP address will not be allowed.This requires the Nginx and Apache configuration files to be set X-forwarded-for parameters to obtain the client's true IP address. For clients that use a reverse proxy, trace the real IP address./usr/nginx/conf/nginx.conf Add the following parameters:
Proxy_set_header Host $host
The company has three machines in the computer room, because the IP is not enough, must be separated, so to establish a single IP multi-domain reverse proxy,is when request www.abc.com jump to this machine, request www.bbc.com jump to 192.168.0.35 machine up,The premise 192.168.0.35 installed nginx and PHP environment.
Recently a small station to start a Ali cloud server, in fact, because the foreign server is too card, even SSH connection cards, simply can not use, so start a, but that foreign VPS replaced the hen, China Telecom's export broadband and normal, so there are two, just recently in the "actual combat Nginx", Also in the site to see a lot of articles on the Ngnix agent, so I intend to actually try to test:
1. First, the reverse proxy schematic diagram t
Nginx reverse proxy, the servlet application via request.getremoteaddr () IP is nginx IP address, not the client real IP, through the Request.getrequesturl () access to the domain name, protocol, Ports are domain names, protocols,
Nginx reverse proxy is a common function of the process of Web layout. After setting the reverse proxy, by reading the HTTP header inside the REMOTE_ADDR can not get the true user IP, we need to increase the nginx configuration to solve this problem.
The following is an experiment to illustrate.
Configure 1 Nginx servers and configure 3
A friend:For example, if your mail server's fixed IP address is 218.5.x.x, you can use NSLookup to check whether reverse resolution is successful.
C: \ Documents ents and Settings \ Administrator> NSLookup 218.5.xxx.xxxServer: FJ-DNS.fz.fj.cnAddress: 218.85.157.99
Name:Xxxxx.comAddress: 218.5.x.x
If no reverse direction is performed, the following result is di
*************#no_cache Deny QueryString#不对符合QueryString的ACL内容进行缓冲#*********** Performance Optimization Configuration *************Maximum_object_size 320010 KB#大于此容量的对象将不会被保存在磁盘上, the default size is 4M, if the squid server is used to buffer large files such as Flash, it is recommended to make this value larger. Otherwise too large files will need to be retrieved again after the next rebootmaximum_object_size_in_memory MB#最大位于内存中的对象的大小, the default size is 8K, if the server memory is large. Thi
This is the function that Nginx originally provided.
Application Scenarios
I only have one VPShave multiple domain names80 for external servicePredecessor condition
Use different ports to start different HTTP services.
Except 80 for Nginx.
Configure Nginx
sudo vim/etc/nginx/nginx.confAdd or fix to
server {Listen 80;server_name www.111cn.net;Location/{Proxy_pass http://127.0.0.1:8000;}}This way from the www.111cn.net, it will
problem number, which is used by the query end to differentiate itself from the query.
The next 16 bits can be further subdivided to indicate the nature and details of the message, such as querying or responding to the message, whether or not recursive query is required (generally, the server supports recursive query without any settings. This is the case for BIND)
Query problems are followed by query types, including a, NS, cname, PTR, HINFO, and MX. If you are familiar with bind, you will k
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.