CN106453688A - Network access method and device - Google Patents

Network access method and device Download PDF

Info

Publication number
CN106453688A
CN106453688A CN201611041489.2A CN201611041489A CN106453688A CN 106453688 A CN106453688 A CN 106453688A CN 201611041489 A CN201611041489 A CN 201611041489A CN 106453688 A CN106453688 A CN 106453688A
Authority
CN
China
Prior art keywords
server
network
request
domain name
address
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.)
Pending
Application number
CN201611041489.2A
Other languages
Chinese (zh)
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.)
TVMining Beijing Media Technology Co Ltd
Original Assignee
TVMining Beijing Media 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 TVMining Beijing Media Technology Co Ltd filed Critical TVMining Beijing Media Technology Co Ltd
Priority to CN201611041489.2A priority Critical patent/CN106453688A/en
Publication of CN106453688A publication Critical patent/CN106453688A/en
Pending legal-status Critical Current

Links

Classifications

    • 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)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a network access method and device for achieving the purpose of network access quickly and flexibly. The method comprises the following steps: newly adding a server for domain name analysis in a network, and configuring a corresponding relationship between domain names and IPs in the server; when a client receives a network access request, sending the request to the server, wherein the request carries a target domain name to the to-be-accessed network; analyzing the target domain name to a corresponding target IP by the server; and accessing the network according to the analyzed target IP.

Description

A kind of method and device for accessing network
Technical field
The present invention relates to technical field of internet application, more particularly to a kind of method and device for accessing network.
Background technology
DNS (Domain Name System, domain name system), for mutually mapping as domain name and IP address on the Internet Individual distributed data base, can make user more easily access the Internet, and does not spend and remember can be directly read by machine IP number string.By host name, the process for finally giving the corresponding IP address of the host name is called domain name mapping (or host name solution Analysis).
Content of the invention
The present invention provides a kind of method and device for accessing network, in order to realize quick, neatly enter according to the actual requirements The purpose of row network access.
The present invention provides a kind of method for accessing network, including:
Server for domain name mapping is increased newly in a network, and in the server, configuration domain name is corresponding with IP closes System;
When client receives the request for accessing network, the request is sent to the server, wherein, described please The target domain name of network to be visited is carried in asking;
The entitled corresponding Target IP of the aiming field is parsed by the server;
The Target IP for being obtained according to parsing carries out the access of network.
In an embodiment of the present invention, the server for being increased newly for domain name mapping in a network, including:
Server is increased newly in a network;
Dnsmasq service is installed on the server, so that the server is used for domain name mapping.
In an embodiment of the present invention, the request is sent to the server, including:
The client sends the request to the corresponding Set Top Box of the client;
The Set Top Box connects upper corresponding router, is sent the request to the server by the router.
In an embodiment of the present invention, methods described also includes:
The address for arranging the server in advance on the router is domain name server address.
In an embodiment of the present invention, by the router, the request is sent to the server, including:
The router obtains the address that domain name server address is the server;
Address according to the server sends the request to the server.
The present invention also provides a kind of device for accessing network, including:
Configuration module, for increasing the server for domain name mapping in a network newly, configures domain name in the server Corresponding relation with IP;
Sending module, for when client receives the request for accessing network, the request being sent to the service Device, wherein, carries the target domain name of network to be visited in the request;
Parsing module, for parsing the entitled corresponding Target IP of the aiming field by the server;
Access modules, the Target IP for being obtained according to parsing carries out the access of network.
In an embodiment of the present invention, the configuration module is additionally operable to:
Server is increased newly in a network;
Dnsmasq service is installed on the server, so that the server is used for domain name mapping.
In an embodiment of the present invention, the sending module is additionally operable to:
The client sends the request to the corresponding Set Top Box of the client;
The Set Top Box connects upper corresponding router, is sent the request to the server by the router.
In an embodiment of the present invention, the configuration module is additionally operable to:
The address for arranging the server in advance on the router is domain name server address.
In an embodiment of the present invention, the sending module is additionally operable to:
The router obtains the address that domain name server address is the server;
Address according to the server sends the request to the server.
In embodiments of the present invention, increase the server for domain name mapping in a network newly, configure in the server The corresponding relation of domain name and IP;When client receives the request for accessing network, the request is sent to the server, Wherein, the target domain name of network to be visited is carried in the request;The aiming field is parsed by the server entitled corresponding Target IP;The Target IP for being obtained according to parsing carries out the access of network.As can be seen here, the embodiment of the present invention can be realized Quickly, the purpose of network access is neatly carried out according to the actual requirements.
Other features and advantages of the present invention will be illustrated in the following description, also, partly be become from description Obtain it is clear that or being understood by implementing the present invention.The purpose of the present invention and other advantages can pass through in the explanation that is write In book, claims and accompanying drawing, specifically noted structure is realizing and obtain.
Below by drawings and Examples, technical scheme is described in further detail.
Description of the drawings
Accompanying drawing is used for providing a further understanding of the present invention, and constitutes a part for description, the reality with the present invention Example is applied together for the present invention is explained, be not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the flow chart of the method for accessing network in one embodiment of the invention;
Fig. 2 is the flow chart of the method for accessing network in another embodiment of the present invention;And
Fig. 3 is the structural representation of the device for accessing network in one embodiment of the invention.
Specific embodiment
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are illustrated, it will be appreciated that preferred reality described herein Apply example to be merely to illustrate and the present invention is explained, be not intended to limit the present invention.
The flow chart of the method for accessing network is illustrated in figure 1 in one embodiment of the invention, and the method can include following Step S11-S14.
Step S11, increases the server for domain name mapping in a network newly, and configuration domain name is corresponding with IP in the server Relation.
In this step, server can be increased in a network newly, and dnsmasq service is installed on newly-increased server, So that server can be used in domain name mapping.Dnsmasq is a light and handy, easy-to-use DNS service instrument, and it is permissible Apply IP address NAT (Network Address Translation, network when net internally and Internet connection Address conversion) conversion, it is also possible to it is used as the DNS service of mininet.
Step S12, when client receives the request for accessing network, sends this request to server, wherein, should The target domain name of network to be visited is carried in asking.
Step S13, by the entitled corresponding Target IP of server parsing aiming field.
Step S14, the Target IP for being obtained according to parsing carries out the access of network.
In embodiments of the present invention, increase the server for domain name mapping in a network newly, configure in the server The corresponding relation of domain name and IP;When client receives the request for accessing network, the request is sent to the server, Wherein, the target domain name of network to be visited is carried in the request;The aiming field is parsed by the server entitled corresponding Target IP;The Target IP for being obtained according to parsing carries out the access of network.As can be seen here, the embodiment of the present invention can be realized Quickly, the purpose of network access is neatly carried out according to the actual requirements.
Server is sent the request in above step S12, embodiments provides a kind of optional scheme, i.e. Client sends the request to the corresponding Set Top Box of client, and Set Top Box connects upper corresponding router, will be asked by router Send to server.Specifically, the address that can arrange server in advance on the router is domain name server address, Jin Eryou When router sends the request to server, router obtains address of the domain name server address for server, according to server Address send the request to server.
Digital video switching box, box on so-called Set Top Box or machine, is a connection television set and outside source Equipment.The digital signal of compression can be changed into television content by it, and show on a television set.Signal can come from wired Cable, satellite antenna, broadband network and terrestrial broadcasting.The figure that the content that Set Top Box is received can be provided except simulated television Outside picture, sound, more it is digital content is received, including electronic program guides, internet webpage, captions etc., uses Family can watch digital television program on existing television set, and can interact the amusement of formula digitized, education and business by network Industry activity.
Be discussed in detail below by a specific embodiment present invention access network method realize process.Usual feelings Under condition, Set Top Box sees that tv program sign-on access is to go to access (that is, different ground by domain name mapping to specific server The server address of area's parsing is different), such as Chinese Set Top Box is logged on the server that can be resolved to China, the machine in the U.S. Top box logs in the server log that can go to the U.S., and Set Top Box of Britain logs in the server log that can go to Britain.But, if Wish to go in CHINESE REGION (as office) whether the server for testing the U.S. is problematic, then this programme can be implemented in office The interior login domain name through Set Top Box forces to be directed to U.S. locations or other areas.
Be illustrated in figure 2 in another embodiment of the present invention access network method flow chart, the method can include with Lower step S21-S25.
Step S21, increases server in a network newly, and installs dnsmasq service on newly-increased server, so that clothes Business device can be used in domain name mapping.
In this step, a Linux server can be arranged in office's Intranet, installs in Linux server Dnsmasq is serviced:yum install dnsmasq–y.
Step S22, configures the corresponding relation of domain name and IP in the server.
In this step, start dnsmasq service first:service dnsmasq start;
Subsequently, configuration domain name sensing:Vim/etc/hosts, adds:X.X.X.X corresponds to dispatch.suntv.tv, its In, it is IP address that dispatch.suntv.tv is Set Top Box login service device domain name, X.X.X.X.Certainly, it is only citing herein, Do not limit the invention;
Afterwards, restart dnsmasq service:service dnsmasq restart;
Finally, under ping, dispatch.suntv.tv domain name tests whether to be resolved to X.X.X.X's on that server In IP address.
So as to Set Top Box login service device domain name dispatch.suntv.tv being resolved to using the server On X.X.X.X (the regional IP of U.S. locations or other), the purpose for being parsed according to the actual requirements is realized.
Step S23, when client receives the request for accessing network, sends the request to the corresponding machine top of client Box, the upper corresponding router of Set Top Box connection, server is sent the request to by router, wherein, is carried in the request and need Access the target domain name of network.
Specifically, the address that can arrange server in advance on the router is domain name server address, such as in route During device management is arranged, by the Internet --->Ethernet is arranged --->Name server (DNS) address --->Using following DNS service Device --->Primary name server (that is, the IP address of Linux server).Further, when sending the request to server by router, Router obtains address of the domain name server address for server, and the address according to server sends the request to server.
Step S24, by the entitled corresponding Target IP of server parsing aiming field.
Step S25, the Target IP for being obtained according to parsing carries out the access of network.
The embodiment of the present invention can realize quickly, neatly carry out the purpose of network access according to the actual requirements.
It should be noted that in actual applications, above-mentioned all optional embodiments can be any in the way of using combining Combination, forms the alternative embodiment of the present invention, and this is no longer going to repeat them.
Method corresponding to network is accessed in above-described embodiment, the present invention also provides a kind of device for accessing network.As Fig. 3 The structural representation of the device for accessing network is shown in one embodiment of the invention, including:
Configuration module 31, for increasing the server for domain name mapping in a network newly, configures domain in the server Name and the corresponding relation of IP;
Sending module 32, for when client receives the request for accessing network, the request being sent to the clothes Business device, wherein, carries the target domain name of network to be visited in the request;
Parsing module 33, for parsing the entitled corresponding Target IP of the aiming field by the server;
Access modules 34, the Target IP for being obtained according to parsing carries out the access of network.
In an embodiment of the present invention, the configuration module 31 is additionally operable to:
Server is increased newly in a network;
Dnsmasq service is installed on the server, so that the server is used for domain name mapping.
In an embodiment of the present invention, the sending module 32 is additionally operable to:
The client sends the request to the corresponding Set Top Box of the client;
The Set Top Box connects upper corresponding router, is sent the request to the server by the router.
In an embodiment of the present invention, the configuration module 31 is additionally operable to:
The address for arranging the server in advance on the router is domain name server address.
In an embodiment of the present invention, the sending module 32 is additionally operable to:
The router obtains the address that domain name server address is the server;
Address according to the server sends the request to the server.
The said apparatus of the embodiment of the present invention:Server for domain name mapping is increased newly in a network, in the server The middle corresponding relation for configuring domain name and IP;When client receives the request for accessing network, the request is sent to described Server, wherein, carries the target domain name of network to be visited in the request;The target domain name is parsed by the server For corresponding Target IP;The Target IP for being obtained according to parsing carries out the access of network.As can be seen here, embodiment of the present invention energy Enough realizations are quick, purpose that is neatly carrying out network access according to the actual requirements.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can adopt complete hardware embodiment, complete software embodiment or with reference to software and hardware in terms of reality Apply the form of example.And, the present invention can be adopted in one or more computers for wherein including computer usable program code The shape of the upper computer program that implements of usable storage medium (including but not limited to disk memory and optical memory etc.) Formula.
The present invention is the flow process with reference to method according to embodiments of the present invention, equipment (system) and computer program Figure and/or block diagram are describing.It should be understood that can be by computer program instructions flowchart and/or each stream in block diagram Journey and/or the combination of square frame and flow chart and/or the flow process in block diagram and/or square frame.These computer programs can be provided The processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device is instructed to produce A raw machine so that produced for reality by the instruction of computer or the computing device of other programmable data processing device The device of the function of specifying in present one flow process of flow chart or multiple flow processs and/or one square frame of block diagram or multiple square frames.
These computer program instructions may be alternatively stored in and can guide computer or other programmable data processing device with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory is produced to be included to refer to Make the manufacture of device, the command device realize in one flow process of flow chart or multiple flow processs and/or one square frame of block diagram or The function of specifying in multiple square frames.
These computer program instructions can be also loaded in computer or other programmable data processing device so that in meter Series of operation steps is executed on calculation machine or other programmable devices to produce computer implemented process, so as in computer or The instruction for executing on other programmable devices is provided for realizing in one flow process of flow chart or multiple flow processs and/or block diagram one The step of function of specifying in individual square frame or multiple square frames.
Obviously, those skilled in the art can carry out the essence of various changes and modification without deviating from the present invention to the present invention God and scope.So, if these modifications of the present invention and modification belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising these changes and modification.

Claims (10)

1. a kind of access network method, it is characterised in that include:
Increase the server for domain name mapping in a network newly, the corresponding relation of domain name and IP is configured in the server;
When client receives the request for accessing network, the request is sent to the server, wherein, in the request Carry the target domain name of network to be visited;
The entitled corresponding Target IP of the aiming field is parsed by the server;
The Target IP for being obtained according to parsing carries out the access of network.
2. method according to claim 1, it is characterised in that the service for being increased newly for domain name mapping in a network Device, including:
Server is increased newly in a network;
Dnsmasq service is installed on the server, so that the server is used for domain name mapping.
3. method according to claim 1 and 2, it is characterised in that send the request to the server, including:
The client sends the request to the corresponding Set Top Box of the client;
The Set Top Box connects upper corresponding router, is sent the request to the server by the router.
4. method according to claim 3, it is characterised in that also include:
The address for arranging the server in advance on the router is domain name server address.
5. method according to claim 4, it is characterised in that sent the request to the service by the router Device, including:
The router obtains the address that domain name server address is the server;
Address according to the server sends the request to the server.
6. a kind of access network device, it is characterised in that include:
Configuration module, for increasing the server for domain name mapping in a network newly, configuration domain name and IP in the server Corresponding relation;
Sending module, for when client receives the request for accessing network, the request being sent to the server, its In, the target domain name of network to be visited is carried in the request;
Parsing module, for parsing the entitled corresponding Target IP of the aiming field by the server;
Access modules, the Target IP for being obtained according to parsing carries out the access of network.
7. device according to claim 6, it is characterised in that the configuration module is additionally operable to:
Server is increased newly in a network;
Dnsmasq service is installed on the server, so that the server is used for domain name mapping.
8. the device according to claim 6 or 7, it is characterised in that the sending module is additionally operable to:
The client sends the request to the corresponding Set Top Box of the client;
The Set Top Box connects upper corresponding router, is sent the request to the server by the router.
9. device according to claim 8, it is characterised in that the configuration module is additionally operable to:
The address for arranging the server in advance on the router is domain name server address.
10. device according to claim 9, it is characterised in that the sending module is additionally operable to:
The router obtains the address that domain name server address is the server;
Address according to the server sends the request to the server.
CN201611041489.2A 2016-11-21 2016-11-21 Network access method and device Pending CN106453688A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611041489.2A CN106453688A (en) 2016-11-21 2016-11-21 Network access method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611041489.2A CN106453688A (en) 2016-11-21 2016-11-21 Network access method and device

Publications (1)

Publication Number Publication Date
CN106453688A true CN106453688A (en) 2017-02-22

Family

ID=58218154

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611041489.2A Pending CN106453688A (en) 2016-11-21 2016-11-21 Network access method and device

Country Status (1)

Country Link
CN (1) CN106453688A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109343497A (en) * 2018-11-21 2019-02-15 杭州佳鹏电脑科技股份有限公司 Data monitoring method and production management system
CN110191205A (en) * 2019-06-12 2019-08-30 郑州冰川网络技术有限公司 IPV6 network address controller method and system
CN114979069A (en) * 2021-02-22 2022-08-30 腾讯科技(深圳)有限公司 Domain name resolution request processing method, storage medium and electronic device
CN115225394A (en) * 2022-07-21 2022-10-21 北京天融信网络安全技术有限公司 Message interception method and system based on domain name

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1280432A (en) * 1999-03-22 2001-01-17 北京华纬迅科技有限公司 Complex system of broadcast television and internet
CN101800760A (en) * 2009-02-10 2010-08-11 中国移动通信集团公司 Realization method and system for accessing data service
CN102025793A (en) * 2010-01-22 2011-04-20 中国移动通信集团北京有限公司 Domain name resolution method and system and DNS in IP network
CN103780715A (en) * 2014-01-29 2014-05-07 百度在线网络技术(北京)有限公司 Domain name resolution implementing method, client side and cloud server
CN104158919A (en) * 2014-08-20 2014-11-19 安一恒通(北京)科技有限公司 Webpage access implementation method, server and client

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1280432A (en) * 1999-03-22 2001-01-17 北京华纬迅科技有限公司 Complex system of broadcast television and internet
CN101800760A (en) * 2009-02-10 2010-08-11 中国移动通信集团公司 Realization method and system for accessing data service
CN102025793A (en) * 2010-01-22 2011-04-20 中国移动通信集团北京有限公司 Domain name resolution method and system and DNS in IP network
CN103780715A (en) * 2014-01-29 2014-05-07 百度在线网络技术(北京)有限公司 Domain name resolution implementing method, client side and cloud server
CN104158919A (en) * 2014-08-20 2014-11-19 安一恒通(北京)科技有限公司 Webpage access implementation method, server and client

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109343497A (en) * 2018-11-21 2019-02-15 杭州佳鹏电脑科技股份有限公司 Data monitoring method and production management system
CN110191205A (en) * 2019-06-12 2019-08-30 郑州冰川网络技术有限公司 IPV6 network address controller method and system
CN114979069A (en) * 2021-02-22 2022-08-30 腾讯科技(深圳)有限公司 Domain name resolution request processing method, storage medium and electronic device
CN114979069B (en) * 2021-02-22 2024-04-09 腾讯科技(深圳)有限公司 Domain name resolution request processing method, storage medium and electronic equipment
CN115225394A (en) * 2022-07-21 2022-10-21 北京天融信网络安全技术有限公司 Message interception method and system based on domain name

Similar Documents

Publication Publication Date Title
CN106453688A (en) Network access method and device
US11647079B2 (en) Emulation of cloud computing service regions
EP3295311B1 (en) Method and system for automating the process of testing of software application
CN103685547A (en) Download server dispatching method, download server dispatching system and terminal device
CN105391979B (en) A kind of method and apparatus of business processing
CN106303634A (en) A kind of TV equipment barrage sends system and method
KR20140106838A (en) Cloud service provide apparatus and method using game flatform based on streaming
US20200366967A1 (en) Method and system for monitoring quality of streaming media
CN110557672A (en) Television program sharing method, television and storage medium
AU2019213378A1 (en) Playback of captured network transactions in a simulation environment
CN104283681A (en) Method, device and system for verifying legality of user
US8799974B2 (en) System and method for multi-standard browser for digital devices
CN103823694A (en) Method and device for updating script file
CN104768076B (en) Video broadcasting method and device
CN104333806B (en) A kind of parameter operation method and device of set-top box
CN104125119A (en) Method and system for testing server
JP5852000B2 (en) Test management apparatus and method for testing interactivity to comply with the Brazilian digital television standard
CN104468543A (en) Method and device for accessing devices in local area network
CN109948082B (en) Live broadcast information processing method and device, electronic equipment and storage medium
JP2022517943A (en) Device expansion for real-time communication
CN116032691A (en) Shooting range interconnection method, electronic equipment and readable storage medium
US10055336B1 (en) Computer implemented system and method and computer program product for testing a software component by simulating an interface to a computing component using randomized network packet information
KR20150084413A (en) Application error detection method for cloud streaming service, apparatus and system therefor
CN111355629B (en) Client test method and device, computer equipment and storage medium
CN108848409B (en) Set top box and wireless routing module parameter setting method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170222