CN108153543A - A kind of method of server address switching - Google Patents

A kind of method of server address switching Download PDF

Info

Publication number
CN108153543A
CN108153543A CN201711475840.3A CN201711475840A CN108153543A CN 108153543 A CN108153543 A CN 108153543A CN 201711475840 A CN201711475840 A CN 201711475840A CN 108153543 A CN108153543 A CN 108153543A
Authority
CN
China
Prior art keywords
test
server
domain name
server address
test data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201711475840.3A
Other languages
Chinese (zh)
Other versions
CN108153543B (en
Inventor
郭艳杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kuwo Technology Co Ltd
Original Assignee
Beijing Kuwo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kuwo Technology Co Ltd filed Critical Beijing Kuwo Technology Co Ltd
Priority to CN201711475840.3A priority Critical patent/CN108153543B/en
Publication of CN108153543A publication Critical patent/CN108153543A/en
Application granted granted Critical
Publication of CN108153543B publication Critical patent/CN108153543B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The present invention relates to a kind of methods of server address switching, include the following steps:Prepare testing service data in advance, it is converted generation Quick Response Code, software opens testing service, then it scans the two-dimensional code, parsing Quick Response Code obtains at least one data group, and the data group contains test server IP and the correspondence of domain name, a file is written into data group, as test data file, restart software and load the test data file, be activated the correspondence of test server IP and domain name.The present invention, in the access request for initiating server, it is handled by local parsing, utilize the replacement function of application, it can easily switch test server address and formal server address, still ensure the normal use and data safety of user using test server address when avoiding the problem that formally reaching the standard grade.

Description

A kind of method of server address switching
Technical field
The present invention relates to test server address protection technical field, specifically a kind of side of server address switching Method.
Background technology
For existing software in exploitation, what is write in code is usually test server address, needs to change after formal reach the standard grade Formal server address is written as, still, server address is usually to write extremely in code, if being negligent of changing when formally reaching the standard grade, Serious problems can then be led to, since bearing capacity is limited, regular user largely accesses or causes to look at all not test server To test server(Address is not external)Or test server is caused to be collapsed, and use and the data safety of user are influenced, it is also right Calibration tape is developed to adversely affect.The collapse of test server causes the work of multiple departments or development group to be obstructed.
Invention content
For defect in the prior art, the purpose of the present invention is to provide a kind of sides of server address switching Method in the access request for initiating server, is handled by local parsing, using the replacement function of application, can easily switched Test server address and formal server address are still protected when avoiding the problem that formally reaching the standard grade using test server address Demonstrate,prove the normal use and data safety of user.
To achieve the above objectives, the technical solution adopted by the present invention is that:
A kind of method of server address switching, which is characterized in that include the following steps:
It prepares testing service data in advance, is converted generation Quick Response Code,
Software opens testing service, then scans the two-dimensional code,
Parsing Quick Response Code obtains at least one data group, and the data group contains test server IP and the corresponding of domain name is closed System,
A file is written into data group, as test data file,
Restart software and load the test data file, be activated the correspondence of test server IP and domain name.
Based on the above technical solution, the testing service data include the data group of at least following forms of a line:
Test server IP+ separators+domain name.
Based on the above technical solution, the separator is defaulted as space.
Based on the above technical solution, after software load test data file, the determining test of detection in initialization Data file can be used, and then attempt load test data,
It attempts load test data and is realized by sending URL access requests.
Based on the above technical solution, if the domain name in URL is included in test data file,:
It is test server IP to replace the domain name in URL access requests, and test data is obtained from test server,
If the domain name in URL is not contained in test data file,:
The corresponding formal server ip of domain name in URL access requests is parsed, test data is obtained from formal server.
The method of server address switching of the present invention, in the access request for initiating server, passes through local solution Analysis is handled, using the replacement function of application, can easily switch test server address and formal server address, avoid formal The problem of test server address is still used when reaching the standard grade ensures the normal use and data safety of user.
Description of the drawings
The present invention has drawings described below:
The flow chart of Fig. 1 present invention.
Specific embodiment
The present invention is described in further detail below in conjunction with attached drawing.
As shown in Figure 1, the method for server address switching of the present invention, includes the following steps:
It prepares testing service data in advance, is converted generation Quick Response Code,
Software opens testing service, then scans the two-dimensional code,
Parsing Quick Response Code obtains at least one data group, and the data group contains test server IP and the corresponding of domain name is closed System,
A file is written into data group, as test data file,
Restart software and load the test data file, be activated the correspondence of test server IP and domain name.
Domain name corresponds to the formal server address after formally reaching the standard grade, and test server IP corresponds to the test of development phase Server address.
Based on the above technical solution, the testing service data include the data group of at least following forms of a line:
Test server IP+ separators+domain name.
The separator is defaulted as space.
Based on the above technical solution, after software load test data file, the determining test of detection in initialization Data file can be used, and then attempt load test data,
It attempts load test data and is realized by sending URL access requests,
If the domain name in URL is included in test data file,:
It is test server IP to replace the domain name in URL access requests, and test data is obtained from test server,
If the domain name in URL is not contained in test data file,:
The corresponding formal server ip of domain name in URL access requests is parsed, test data is obtained from formal server.
The content not being described in detail in this specification belongs to the prior art well known to professional and technical personnel in the field.

Claims (5)

  1. A kind of 1. method of server address switching, which is characterized in that include the following steps:
    It prepares testing service data in advance, is converted generation Quick Response Code,
    Software opens testing service, then scans the two-dimensional code,
    Parsing Quick Response Code obtains at least one data group, and the data group contains test server IP and the corresponding of domain name is closed System,
    A file is written into data group, as test data file,
    Restart software and load the test data file, be activated the correspondence of test server IP and domain name.
  2. 2. the method for server address switching as described in claim 1, it is characterised in that:The testing service data are included extremely The data group of the following forms of few a line:
    Test server IP+ separators+domain name.
  3. 3. the method for server address switching as claimed in claim 2, it is characterised in that:The separator is defaulted as space.
  4. 4. the method for server address switching as described in claim 1, it is characterised in that:Software load test data file Afterwards, it is detected in initialization and determines that test data file can be used, then attempt load test data,
    It attempts load test data and is realized by sending URL access requests.
  5. 5. the method for server address switching as claimed in claim 4, it is characterised in that:If the domain name in URL is included in In test data file, then:
    It is test server IP to replace the domain name in URL access requests, and test data is obtained from test server,
    If the domain name in URL is not contained in test data file,:
    The corresponding formal server ip of domain name in URL access requests is parsed, test data is obtained from formal server.
CN201711475840.3A 2017-12-29 2017-12-29 Server address switching method Active CN108153543B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711475840.3A CN108153543B (en) 2017-12-29 2017-12-29 Server address switching method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711475840.3A CN108153543B (en) 2017-12-29 2017-12-29 Server address switching method

Publications (2)

Publication Number Publication Date
CN108153543A true CN108153543A (en) 2018-06-12
CN108153543B CN108153543B (en) 2021-03-02

Family

ID=62463898

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711475840.3A Active CN108153543B (en) 2017-12-29 2017-12-29 Server address switching method

Country Status (1)

Country Link
CN (1) CN108153543B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095783A (en) * 2011-11-08 2013-05-08 阿里巴巴集团控股有限公司 Method and device for web application debugging
US8964761B2 (en) * 2006-01-19 2015-02-24 Samsung Electronics Co., Ltd. Domain name system, medium, and method updating server address information
CN105159824A (en) * 2015-08-17 2015-12-16 上海斐讯数据通信技术有限公司 Test method and system based on two-dimensional code
CN105376107A (en) * 2014-08-29 2016-03-02 腾讯科技(深圳)有限公司 Terminal test method and proxy server
CN106777144A (en) * 2016-12-19 2017-05-31 武汉斗鱼网络科技有限公司 A kind of server switching method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8964761B2 (en) * 2006-01-19 2015-02-24 Samsung Electronics Co., Ltd. Domain name system, medium, and method updating server address information
CN103095783A (en) * 2011-11-08 2013-05-08 阿里巴巴集团控股有限公司 Method and device for web application debugging
CN105376107A (en) * 2014-08-29 2016-03-02 腾讯科技(深圳)有限公司 Terminal test method and proxy server
CN105159824A (en) * 2015-08-17 2015-12-16 上海斐讯数据通信技术有限公司 Test method and system based on two-dimensional code
CN106777144A (en) * 2016-12-19 2017-05-31 武汉斗鱼网络科技有限公司 A kind of server switching method and device

Also Published As

Publication number Publication date
CN108153543B (en) 2021-03-02

Similar Documents

Publication Publication Date Title
US8683596B2 (en) Detection of DOM-based cross-site scripting vulnerabilities
US10666672B2 (en) Collecting domain name system traffic
WO2015158194A1 (en) Dns security system and method thereof for processing a failure
CN105245550B (en) Domain Hijacking determination method and device
CN105743945B (en) Document down loading method and system based on switching loading source
CN104601557A (en) Method and system for defending malicious websites based on software-defined network
CN104168316B (en) A kind of Webpage access control method, gateway
KR20170129253A (en) Network function virtualization-based fault handling methods and devices
CN103209141A (en) Method for processing data messages with switching chip and switching chip
WO2018113731A1 (en) Method and device for reducing risk of dns hijacking
US8903998B2 (en) Apparatus and method for monitoring web application telecommunication data by user
CN109587122A (en) Realize that self ensures the system and method for Web subsystem safety based on WAF system function
US9137128B2 (en) Detecting and measuring network route reconvergence using in-band data probes
CN105262858A (en) Method and device for detecting safety of Domain Name System (DNS) server
US9973587B2 (en) Web page pushing method and apparatus, and terminal
CN108153543A (en) A kind of method of server address switching
CN111225038B (en) Server access method and device
US20180183799A1 (en) Method and system for defending against malicious website
CN105592173B (en) A kind of method for preventing DNS cache from being contaminated, system and local dns server
KR101503456B1 (en) Terminal device and control method thereof
CN106506544B (en) A kind of method and apparatus that local area network DNS kidnaps detection
US9148400B2 (en) Automatic detection of an end node behind a phone on a computer network
CN115048272A (en) Container monitoring processing method, device, host, system, storage medium and program product
JP6476853B2 (en) Network monitoring system and method
JP5333789B2 (en) Terminal detection apparatus, server apparatus, terminal detection method, and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant