CN106412144A - Network access method and device - Google Patents
Network access method and device Download PDFInfo
- Publication number
- CN106412144A CN106412144A CN201610835684.6A CN201610835684A CN106412144A CN 106412144 A CN106412144 A CN 106412144A CN 201610835684 A CN201610835684 A CN 201610835684A CN 106412144 A CN106412144 A CN 106412144A
- Authority
- CN
- China
- Prior art keywords
- domain name
- address
- caching
- network access
- unit
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/45—Network directories; Name-to-address mapping
- H04L61/4505—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
- H04L61/4511—Network 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 relates to the technical field of internet information, and discloses a network access method and module. The network access method in the invention comprises the following steps of: obtaining the current position of terminal equipment when the fact that the terminal equipment accesses a network through a current domain name is detected; identifying a network service area, which the current position belongs to, from multiple pre-set network service areas; if the fact that the current domain name exists in an area domain name cache corresponding to the network service area is judged, obtaining an IP address corresponding to the current domain name from the area domain name cache; and performing network access by utilizing the IP address. The invention further provides a network access device comprising a domain name access detection unit, a position obtaining unit, an area identification unit, an area domain name cache unit, an IP address obtaining unit and a network access unit. The corresponding relationships of domain names and IP addresses are cached in different areas; and thus, the terminal equipment performs network access by obtaining the nearby IP address corresponding to the current domain name according to the current position.
Description
Technical field
The present invention relates to technical field of Internet information, particularly to a kind of Network Access Method and device.
Background technology
Domain name system is a distributed data base of domain name and the mutually mapping of Internet protocol IP address on the Internet, it
Major function be readily able to user memory domain name discernible IP address is changed with network, more easily visit in order to user
Ask the Internet.Wherein, the conversion between domain name and IP address is referred to as domain name mapping, and the network host of execution domain name mapping can claim
For name server.
When user's using terminal equipment is surfed the Net, a domain name can be inputted in the browser of terminal unit, by browser
This domain name is sent to name server.Name server carries out domain name mapping according to the domain name receiving, and obtains this domain name phase
Corresponding IP address, and the IP address of acquisition is sent to browser.Browser is on the IP ground receiving name server transmission
During location, send access request, access corresponding website.
Because name server carries out needing during domain name mapping to expend the regular hour so that terminal unit is accessing website
When there is certain operating lag, the speed that terminal unit accesses website is slower.Therefore in the prior art it will usually in terminal
Equipment carries out domain name caching, the domain name of the website that terminal unit was accessed and the corresponding relation of IP address, on the terminal device
It is cached, so that terminal unit is when accessing the website once accessing, can be from the local direct access of terminal unit
Corresponding IP address, eliminates the time of name server domain name mapping, accelerates the speed that terminal unit accesses website.
During realizing the present invention, inventor finds that prior art at least has the disadvantage that:
In the prior art, level cache, when carrying out domain name caching, is generally joined by terminal unit with L2 cache
Close, to obtain preferable buffered results.But, an IP address may be cached in terminal unit to there being multiple domain names
In the corresponding relation of domain name and IP address, caching may not be corresponding IP address addressing domain name the fastest.And, one-level is delayed
Deposit:Cache-time is shorter.L2 cache:Cache-time needs the cache-time that the Website server that terminal unit is accessed is arranged
Depending on.If the cache-time of the Website server setting that terminal unit is accessed is shorter, the final of terminal unit can be made
Cache-time is shorter, is now likely to the unsuccessful situation of caching.If the Website server that terminal unit is accessed sets
The cache-time put is longer, then may be not suitable with the network environment that terminal unit is presently in, cause unnecessary Flux Loss.
Content of the invention
The purpose of embodiment of the present invention is to provide a kind of Network Access Method and device, and domain name and IP address is right
Should be related to that region-by-region caches, terminal unit can obtain the corresponding IP address nearby of current domain name according to current location and carry out net
Network accesses, thus accessing network with speed the fastest as far as possible.
For solving above-mentioned technical problem, embodiments of the present invention provide a kind of Network Access Method, including:
When terminal unit is detected with current domain name access network, obtain the current location of terminal unit;
The network service area belonging to current location is identified from default multiple network service area;
If judging there is current domain name in the corresponding local domain name caching of network service area, from local domain name caching
Obtain the corresponding IP address of current domain name;
Carry out network access using IP address.
Embodiments of the present invention additionally provide a kind of network access device, including:Domain name access detector unit, position are obtained
Take unit, region identification block, local domain name buffer unit, IP address acquiring unit and network access unit;
Whether domain name access detector unit is used for detection terminal equipment with current domain name access network;
Position acquisition unit, when domain name access detector unit detects terminal unit with current domain name access network, obtains
The current location of terminal unit;
Region identification block is used for identifying the network clothes belonging to current location from default multiple network service area
Business region;
Local domain name buffer unit is used for storing each network service area corresponding local domain name caching;
IP address acquiring unit is used for judging in the corresponding local domain name caching of network service area with the presence or absence of current
Domain name;
IP address acquiring unit is additionally operable to be existed currently in judging network service area corresponding local domain name caching
During domain name, from local domain name caching, obtain the corresponding IP address of current domain name;
Network access unit is used for carrying out network access using IP address.
Embodiment of the present invention in terms of existing technologies, is previously provided with multiple network service area, each network service
Region to should have local domain name cache.When user is surfed the Net in using terminal equipment, terminal unit is with current domain name access net
During network, then the current location according to terminal unit, obtain the network service area belonging to terminal unit current location, in this network
In the local domain name caching of coverage, search whether there is current domain name.If it is present directly from local domain name caching
Obtain the corresponding IP address of current domain name, carry out network access in order to terminal unit using this IP address.So, by domain name with
The corresponding relation of IP address carries out region-by-region caching, and is pre-stored in each network service area corresponding local domain name caching
In so that terminal unit is when accessing network, can network service area according to belonging to terminal unit, identify corresponding area
Domain domain name caching, in order to obtain corresponding IP address from this local domain name caching, so that terminal unit can obtain
IP address nearby carries out network access, eliminates the time of domain name mapping so that terminal unit can be as far as possible with the fastest
Speed accesses network.
In addition, after carrying out network access using IP address, also including:If judge to access in preset duration losing
Lose, obtain the corresponding IP address of current domain name from name server;Current domain name and its corresponding IP address are added area
Name caching;Then, carry out network access using IP address.By way of this set preset duration, judge current domain name pair
Whether the IP address answered lost efficacy.When the corresponding IP address of current domain name caching in advance in local domain name caching lost efficacy, then directly
Connect and obtain corresponding IP address from name server, and the IP address obtaining from name server is updated local domain name
In caching, during in order to subsequent terminal equipment again by current domain name access network, correct IP address can be obtained and carry out
Network access.
In addition, the domain name of local domain name caching caches the domain name caching duration that duration is more than name server, so that
Cache-time is reasonable as far as possible, in order to obtain preferable buffered results.
In addition, Network Access Method also includes:If judging not deposit in the corresponding local domain name caching of network service area
In current domain name, obtain the corresponding IP address of current domain name from name server.So, even if not depositing in local domain name caching
In the case of current domain name, terminal unit also can obtain corresponding IP address and carry out network access, can preferably mate
The online demand of user.
In addition, before obtaining the corresponding IP address of current domain name from name server, also including:If judging, terminal sets
There is current domain name in standby system domain name caching, from system domain name caching, obtain the corresponding IP address of current domain name;Then,
Carry out network access using IP address;If there is not current domain name, from domain name in the system domain name caching judging terminal unit
Server obtains the corresponding IP address of current domain name.In this way, also cache in the system domain name caching of terminal unit
A number of domain name and the corresponding relation of IP address, and there is not the current of current domain name or caching in local domain name caching
When the corresponding IP address of domain name lost efficacy, preferentially from the system domain name of terminal unit caches, obtain current domain name corresponding IP ground
Location, to ensure the speed of terminal unit access website.When there is not current domain name in the system domain name caching of terminal unit,
Obtain the corresponding IP address of current domain name from name server, access the speed of website with increasing terminal equipment as far as possible.
In addition, after obtaining the corresponding IP address of current domain name from name server, also including:By current domain name and its
Corresponding IP address adds the system domain name caching of terminal unit, thus timely carrying out to the system domain name caching of terminal unit
Update, in order to terminal unit when subsequent access website, speed.
Brief description
Fig. 1 is the schematic flow sheet according to Network Access Method in first embodiment of the invention;
Fig. 2 is the schematic flow sheet according to Network Access Method in second embodiment of the invention;
Fig. 3 is the schematic flow sheet according to Network Access Method in third embodiment of the invention;
Fig. 4 is the schematic flow sheet according to Network Access Method in four embodiment of the invention;
Fig. 5 is the structural representation according to network access device in fifth embodiment of the invention;
Fig. 6 is the structural representation according to network access device in sixth embodiment of the invention;
Fig. 7 is the structural representation according to network access device in eighth embodiment of the invention;
Fig. 8 is the structural representation according to terminal unit in ninth embodiment of the invention.
Specific embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with each reality to the present invention for the accompanying drawing
The mode of applying is explained in detail.However, it will be understood by those skilled in the art that in each embodiment of the present invention,
In order that reader more fully understands that the application proposes many ins and outs.But, even if there is no these ins and outs and base
In following embodiment many variations and modification it is also possible to realize the application technical scheme required for protection.
The first embodiment of the present invention is related to a kind of Network Access Method, and idiographic flow is as shown in Figure 1.Present embodiment
Implemented on the basis of terminal unit, terminal unit can be that the electronics such as mobile phone, computer, panel computer, intelligent television set
Standby.Comprise the following steps that:
Step 101, judges whether terminal unit is detected with current domain name access network.If so, then execution step 102,
Otherwise execution step 101.
Specifically, user, when using terminal equipment is surfed the Net, can input a domain name in the browser of terminal unit,
And control terminal equipment accesses this domain name.Now, terminal unit is detected with current domain name access network, judged result is yes.
Step 102, obtains the current location of terminal unit.
Specifically, the alignment system that can be carried by terminal unit, is positioned to the current location of terminal unit,
Thus obtaining the current location of terminal unit.Certainly, in practical operation it is also possible to carry out determining by the IP address of terminal unit
Position.When the online of cellular mo-bile data network is passed through due to terminal unit, a unique IP address can be obtained.Each IP ground
Location all can occur information to exchange with specific communication base station, and each communication base station has fixed position.Therefore, according to terminal unit
The IP address of online, can substantially determine the current location of terminal unit.However, in present embodiment, not to acquisition terminal
The specific implementation of the current location of equipment does any restriction, the realization side of any current location that can obtain terminal unit
Within formula protection domain all in the present embodiment.
Step 103, identifies the network service area belonging to current location from default multiple network service area.
Specifically, technical staff can pre-set multiple network service area, each network service area corresponding
Actual geographic region.When terminal unit is with current domain name access network, then the current location according to terminal unit, judges end
Network service area belonging to end equipment current location.
Step 104, judges to whether there is current domain name in the corresponding local domain name caching of network service area.If so, then
Execution step 105, otherwise terminates.
Specifically, each network service area, can in each local domain name buffering all to there being a local domain name caching
There to be the corresponding relation of multipair domain name and IP address.Wherein, IP address can be to should have multiple domain names.In practical operation
When, the corresponding relation of domain name and IP address can exist in table form, such as domain name and IP address synopsis.Then judging net
When in the corresponding local domain name caching of network coverage with the presence or absence of current domain name, can enter in domain name and IP address synopsis
Row is searched, and judges whether to find current domain name.If finding, judged result is yes, the corresponding area in network service area
There is current domain name in the domain name caching of domain;Otherwise, judged result is no, in the corresponding local domain name in network service area caching not
There is current domain name.
Step 105, obtains the corresponding IP address of current domain name from local domain name caching.
Specifically, current domain name corresponding IP ground can be obtained by way of nslookup and IP address synopsis
Location.
Step 106, carries out network access using IP address.
Specifically, terminal unit, using the IP address obtaining, accesses this and utilizes the corresponding website of IP address.
It is not difficult to find out, in present embodiment, the corresponding relation of domain name and IP address is carried out region-by-region caching, and protects in advance
Exist in the corresponding local domain name caching of each network service area so that terminal unit is when accessing network, can be according to terminal
Network service area belonging to equipment, identifies corresponding local domain name caching, in order to obtain from this local domain name caching
Corresponding IP address, so that the IP address that terminal unit can obtain nearby carries out network access, and eliminates domain name solution
The time of analysis.
Second embodiment of the present invention is related to a kind of Network Access Method, and idiographic flow is as shown in Figure 2.Second embodiment party
Formula is improved on the basis of first embodiment, mainly thes improvement is that:In second embodiment of the invention, also right
In local domain name caching, whether the corresponding IP address of current domain name caching in advance lost efficacy and was judged, in order in the current field
When the corresponding IP address of name lost efficacy, still can obtain correct IP address, enable terminal unit to utilize correct IP address
Carry out network access.Comprise the following steps that:
Step 201, judges whether terminal unit is detected with current domain name access network.If so, then execution step 202,
Otherwise execution step 201.
Step 202, obtains the current location of terminal unit.
Step 203, identifies the network service area belonging to current location from default multiple network service area.
Step 204, judges to whether there is current domain name in the corresponding local domain name caching of network service area.If so, then
Execution step 205;Otherwise terminate.
Step 205, obtains the corresponding IP address of current domain name from local domain name caching.
Step 206, carries out network access using IP address.
Step 207, judges whether to access unsuccessfully in preset duration.If so, then execution step 208, otherwise terminate.
Specifically, preset duration can be pre-set by technical staff and be saved in terminal unit.Work as terminal unit
When carrying out network access using IP address, then terminal unit also executes the countdown event of a length of preset duration for the moment.Work as terminal
Before countdown event terminates, during the corresponding website of successful access P address, then judged result is no to equipment;When this countdown thing
Part terminates, and during terminal unit unsuccessful access website, then judged result is yes.
Step 208, obtains the corresponding IP address of current domain name from name server.
Specifically, current domain name is sent to name server by terminal unit, and name server is according to working as of receiving
Front domain name carries out domain name mapping, obtains the corresponding IP address of current domain name.
Step 209, current domain name and its corresponding IP address are added local domain name caching.
Specifically, when terminal unit when accessing unsuccessfully in preset duration it is likely to local domain name caching in delayed
The current domain name deposited and its corresponding IP address are wrong, and the corresponding IP address of current domain name may lose efficacy.Now, will be from domain
The correct IP address obtaining in name server, updates in local domain name caching, to ensure IP in local domain name caching as far as possible
Address can normally use.
It is noted that in present embodiment, the domain name of local domain name caching caches duration and is more than name server
Domain name caches duration, so that cache-time is reasonable as far as possible, in order to obtain preferable buffered results.
It is not difficult to find out, in present embodiment, when the corresponding IP address of current domain name caching in advance in local domain name caching
During inefficacy, then from name server, directly obtain corresponding IP address, and by the IP address obtaining from name server more
In the new caching to local domain name, during in order to subsequent terminal equipment again by current domain name access network, can obtain correct
IP address carry out network access.
Third embodiment of the present invention is related to a kind of Network Access Method, and idiographic flow is as shown in Figure 3.3rd embodiment party
Formula is improved on the basis of second embodiment, mainly thes improvement is that:In third embodiment of the invention, work as net
When there is not current domain name in the corresponding local domain name caching of network coverage, then obtain current domain name from name server and correspond to
IP address, can timely obtain the corresponding IP address of current domain name in order to terminal unit and carry out network access, can be relatively
The online demand of good coupling user.
Step 301, judges whether terminal unit is detected with current domain name access network.If so, then execution step 302,
Otherwise execution step 301.
Step 302, obtains the current location of terminal unit.
Step 303, identifies the network service area belonging to current location from default multiple network service area.
Step 304, judges to whether there is current domain name in the corresponding local domain name caching of network service area.If so, then
Execution step 305;Otherwise, execution step 308.
Specifically, when there is not current domain name in the corresponding local domain name in network service area caching, then execute step
Rapid 308, obtain the corresponding IP address of current domain name from name server.
Step 305, obtains the corresponding IP address of current domain name from local domain name caching.
Step 306, carries out network access using IP address.
Step 307, judges whether to access unsuccessfully in preset duration.If so, then execution step 308, otherwise terminate.
Step 308, obtains the corresponding IP address of current domain name from name server.
Step 309, current domain name and its corresponding IP address are added local domain name caching.
It is not difficult to find out, present embodiment, even if in the case of there is not current domain name in local domain name caching, terminal sets
Carry out network access for also corresponding IP address can be obtained, can preferably mate the online demand of user.
4th embodiment of the present invention is related to a kind of Network Access Method, and idiographic flow is as shown in Figure 4.4th embodiment party
Formula is improved on the basis of first embodiment, mainly thes improvement is that:In four embodiment of the invention, at end
The corresponding relation of the also domain name of buffer some amount and IP address in the system domain name caching of end equipment, and in local domain name caching
In when there is not the corresponding IP address of current domain name of current domain name or caching and losing efficacy, preferentially delay from the system domain name of terminal unit
In depositing, obtain the corresponding IP address of current domain name, access the speed of website with increasing terminal equipment as far as possible.Concrete steps are such as
Under:
Step 401, judges whether terminal unit is detected with current domain name access network.If so, then execution step 402,
Otherwise execution step 401.
Step 402, obtains the current location of terminal unit.
Step 403, identifies the network service area belonging to current location from default multiple network service area.
Step 404, judges to whether there is current domain name in the corresponding local domain name caching of network service area.If so, then
Execution step 405, otherwise execution step 406.
Step 405, obtains the corresponding IP address of current domain name from local domain name caching.
Step 406, whether there is current domain name in the system domain name caching judging terminal unit.If so, then execution step
407, otherwise execution step 408.
Specifically, the corresponding pass of multipair domain name and IP address can also be cached in the system domain name caching of terminal unit
System.Wherein, IP address can be to should have multiple domain names.As whenever terminal unit is a certain by current domain name successful access
During website, then the IP address of this domain name and this website is set up corresponding relation by the system domain name caching of terminal unit, and caches.?
During practical operation, in the system domain name caching of terminal unit, the corresponding relation of domain name and IP address can also be deposited in table form
, then judge in the system domain name caching of terminal unit with the presence or absence of during current domain name it is also possible to by way of enquiry form,
Judge whether to inquire current domain name.If current domain name can be inquired in this form, judge the system of terminal unit
There is current domain name in domain name caching.
Step 407, obtains the corresponding IP address of current domain name from system domain name caching.
Specifically, in being cached by inquiry system domain name, the mode of domain name and IP address synopsis, obtain current
The corresponding IP address of domain name.
Step 408, obtains the corresponding IP address of current domain name from name server.
Specifically, current domain name is sent to name server by terminal unit, and name server is according to working as of receiving
Front domain name carries out domain name mapping, obtains the corresponding IP address of current domain name.
Step 409, current domain name and its corresponding IP address are added in system domain name caching and local domain name caching.
Specifically, current domain name and its corresponding IP address are added to system domain name caching and the net of terminal unit
In the corresponding local domain name caching of network coverage, in order to timely cache and area to the system domain name of terminal unit
Name caching is updated.Then, carry out network access using IP address, that is, enter step 410.
Step 410, carries out network access using IP address.
It is not difficult to find out, in present embodiment, preferentially from the system domain name of terminal unit caches, obtain current domain name and correspond to
IP address, with increasing terminal equipment as far as possible access website speed.Do not exist in the system domain name of terminal unit caches
During current domain name, from name server, just obtain the corresponding IP address of current domain name, to ensure that terminal unit being capable of just frequentation
Ask website.And, the corresponding IP address of current domain name that also will obtain from domain name service area, timely updates terminal unit
System domain name caching in so that terminal unit system domain name caching perfect as far as possible.
The step of various methods divides above, is intended merely to describe clear, can merge into when realizing a step or
Some steps are split, is decomposed into multiple steps, as long as including identical logical relation, all in the protection domain of this patent
Interior;To adding inessential modification in algorithm or in flow process or introducing inessential design, but do not change its algorithm
With the core design of flow process all in the protection domain of this patent.
Fifth embodiment of the invention is related to a kind of network access device, as shown in figure 5, including:Domain name access detection is single
Unit 1, position acquisition unit 2, region identification block 3, local domain name buffer unit 4, IP address acquiring unit 5 and network access
Unit 6.
Whether domain name access detector unit 1 is used for detection terminal equipment with current domain name access network.
Position acquisition unit 2, when domain name access detector unit 1 detects terminal unit with current domain name access network, obtains
Take the current location of terminal unit.
Region identification block 3 is used for identifying the network clothes belonging to current location from default multiple network service area
Business region.
Local domain name buffer unit 4 is used for storing each network service area corresponding local domain name caching.
IP address acquiring unit 5 is used for judging in the corresponding local domain name caching of network service area with the presence or absence of current
Domain name.
IP address acquiring unit 5 is additionally operable to be existed currently in judging network service area corresponding local domain name caching
During domain name, from local domain name caching, obtain the corresponding IP address of current domain name.
Network access unit 6 is used for carrying out network access using IP address.
It is seen that, present embodiment is the system embodiment corresponding with first embodiment, and present embodiment can be with
First embodiment is worked in coordination enforcement.The relevant technical details mentioned in first embodiment still have in the present embodiment
Effect, in order to reduce repetition, repeats no more here.Correspondingly, the relevant technical details mentioned in present embodiment are also applicable in
In first embodiment.
Sixth embodiment of the invention is related to a kind of network access device, as shown in Figure 6.6th embodiment is real the 5th
Improved on the basis of applying mode, mainly theed improvement is that:In sixth embodiment of the invention, network access device is also
Including:IP address adding device 7.
Network access unit 6 is additionally operable to judge whether access failure in preset duration.
IP address acquiring unit 5 is additionally operable to when network access unit 6 is judged to access unsuccessfully, by network access unit
6 obtain the corresponding IP address of current domain name from name server 8.
IP address adding device 7 is used for for current domain name and its corresponding IP address adding local domain name caching.
Wherein, the domain name of local domain name caching caches the domain name caching duration that duration is more than name server.
It is seen that, present embodiment is the system embodiment corresponding with second embodiment, and present embodiment can be with
Second embodiment is worked in coordination enforcement.The relevant technical details mentioned in second embodiment still have in the present embodiment
Effect, in order to reduce repetition, repeats no more here.Correspondingly, the relevant technical details mentioned in present embodiment are also applicable in
In second embodiment.
Seventh embodiment of the invention is related to a kind of network access device, with reference to shown in Fig. 6.7th embodiment is the 6th
Improved on the basis of embodiment, mainly theed improvement is that, in seventh embodiment of the invention, IP address is obtained single
When unit 5 is additionally operable to there is not current domain name in judging network service area corresponding local domain name caching, from domain name service
Device obtains the corresponding IP address of current domain name.So, even if in the case of there is not current domain name in local domain name caching, eventually
End equipment also can obtain corresponding IP address and carry out network access, can preferably mate the online demand of user.
It is seen that, present embodiment is the system embodiment corresponding with the 3rd embodiment, and present embodiment can be with
3rd embodiment is worked in coordination enforcement.The relevant technical details mentioned in 3rd embodiment still have in the present embodiment
Effect, in order to reduce repetition, repeats no more here.Correspondingly, the relevant technical details mentioned in present embodiment are also applicable in
In 3rd embodiment.
Eighth embodiment of the invention is related to a kind of network access device, as shown in Figure 7.8th embodiment is real the 5th
Improved on the basis of applying mode, mainly theed improvement is that:In eighth embodiment of the invention, also include:IP address
Adding device 7 and system domain name caching 8.
IP address acquiring unit 5 is additionally operable to whether there is current domain name in the system domain name caching 8 judge terminal unit.And
And, when IP address acquiring unit 5 is additionally operable to there is current domain name in judging system domain name caching 8, cache 8 from system domain name
The middle acquisition corresponding IP address of current domain name;When there is not current domain name in judging system domain name caching 8, from domain name service
Device obtains the corresponding IP address of current domain name.
IP address adding device 7 is additionally operable to current domain name and its corresponding IP address add the system domain name of terminal unit
Caching 8.
It is seen that, present embodiment is the system embodiment corresponding with the 4th embodiment, and present embodiment can be with
4th embodiment is worked in coordination enforcement.The relevant technical details mentioned in 4th embodiment still have in the present embodiment
Effect, in order to reduce repetition, repeats no more here.Correspondingly, the relevant technical details mentioned in present embodiment are also applicable in
In 4th embodiment.
Ninth embodiment of the invention is related to a kind of terminal unit, as shown in figure 8, including:Processor 9, positioner 10,
Radiofrequency signal R-T unit 11 and storage device 12.
Storage device 12 prestores each network service area corresponding local domain name caching.
Whether processor 9 is used for detection terminal equipment with current domain name access network, and terminal unit is being detected to work as
During front domain name access network, positioner 10 is controlled to obtain the current location of terminal unit.
Processor 9 is additionally operable to from multiple network service area that storage device 12 prestores, and identifies current location
Affiliated network service area, and judge to whether there is current domain name in the corresponding local domain name caching of network service area.?
When there is current domain name in the corresponding local domain name caching of network service area, then obtain current domain name from local domain name caching
Corresponding IP address.
Processor 9 is additionally operable to control radiofrequency signal R-T unit 11 to carry out network access using this IP address.
It is noted that involved each device in present embodiment is logic device, in actual applications, one
Individual logical block can be a part for a physical location or a physical location, can also be with multiple physics lists
The combination of unit is realized.Additionally, for the innovative part projecting the present invention, will not be with solution institute of the present invention in present embodiment
The unit that the technical problem relation of proposition is less close introduces, but this is not intended that in present embodiment there are not other lists
Unit.
It will be appreciated by those skilled in the art that all or part of step realized in above-described embodiment method can be by
Program to complete come the hardware to instruct correlation, and this program storage, in a storage medium, includes some instructions use so that one
Individual equipment (can be single-chip microcomputer, chip etc.) or processor (processor) execute each embodiment methods described of the application
All or part of step.And aforesaid storage medium includes:USB flash disk, portable hard drive, read only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey
The medium of sequence code.
It will be understood by those skilled in the art that the respective embodiments described above are to realize the specific embodiment of the present invention,
And in actual applications, can to it, various changes can be made in the form and details, without departing from the spirit and scope of the present invention.
Claims (12)
1. a kind of Network Access Method is it is characterised in that include:
When terminal unit is detected with current domain name access network, obtain the current location of described terminal unit;
The network service area belonging to described current location is identified from default multiple network service area;
If judging there is described current domain name, from described area in the corresponding local domain name caching of described network service area
The corresponding IP address of described current domain name is obtained in name caching;
Carry out network access using described IP address.
2. Network Access Method according to claim 1 is it is characterised in that carrying out network access using described IP address
Afterwards, also include:
If judging to access in preset duration unsuccessfully, obtain the corresponding IP address of described current domain name from name server;
Described current domain name and its corresponding IP address are added described local domain name caching;Then, entered using described IP address
Row network access.
3. the Network Access Method according to claim 2 is it is characterised in that the domain name of described local domain name caching caches
The domain name that duration is more than domain name server caches duration.
4. Network Access Method according to claim 1 is it is characterised in that described Network Access Method also includes:
If judging there is not described current domain name, from domain name in the corresponding local domain name caching of described network service area
Server obtains the corresponding IP address of described current domain name.
5. Network Access Method as claimed in any of claims 2 to 4 is it is characterised in that taking from domain name
Before business device obtains the corresponding IP address of described current domain name, also include:
If there is described current domain name in the system domain name caching judging described terminal unit, from described system domain name caching
Obtain the corresponding IP address of described current domain name;Then, carry out network access using described IP address;
If there is not described current domain name in the system domain name caching judging described terminal unit, obtain from domain name server
Take the corresponding IP address of described current domain name.
6. the Network Access Method according to claim 5 is it is characterised in that described obtaining from domain name server
After the current corresponding IP address of domain name, also include:
Described current domain name and its corresponding IP address are added the system domain name caching of described terminal unit.
7. a kind of network access device is it is characterised in that include:Domain name access detector unit, position acquisition unit, region recognition
Unit, local domain name buffer unit, IP address acquiring unit and network access unit;
Whether domain name access detection unit is used for detection terminal equipment with current domain name access network;
Described position acquisition unit detects terminal unit with described current domain name access net in domain name access detection unit
During network, obtain the current location of described terminal unit;
Described region identification block is used for identifying the net belonging to described current location from default multiple network service area
Network coverage;
Described local domain name buffer unit is used for storing each network service area corresponding local domain name caching;
Described IP address acquiring unit is used for judging to whether there is in the corresponding local domain name caching of described network service area
Described current domain name;
Described IP address acquiring unit is additionally operable to be existed in judging described network service area corresponding local domain name caching
During described current domain name, from described local domain name caching, obtain the corresponding IP address of described current domain name;
Described network access unit is used for carrying out network access using described IP address.
8. network access device according to claim 7 is it is characterised in that described network access device also includes:IP ground
Location adding device;
Described network access unit is additionally operable to judge whether access failure in preset duration;
Described IP address acquiring unit is additionally operable to, when described network access unit is judged to access unsuccessfully, visit by described network
Ask that unit obtains the corresponding IP address of described current domain name from name server;
Described IP address adding device is used for for described current domain name and its corresponding IP address adding described local domain name caching.
9. network access device according to claim 8 it is characterised in that described local domain name caching domain name caching when
The long domain name more than domain name server caches duration.
10. network access device according to claim 7 is it is characterised in that described IP address acquiring unit is additionally operable to
When judging to there is not described current domain name in the corresponding local domain name caching of described network service area, from domain name service
Device obtains the corresponding IP address of described current domain name.
11. according to Claim 8 in 10 the network access device described in any one it is characterised in that described IP address obtains
Unit is taken to be additionally operable to judge whether there is described current domain name in the system domain name caching of described terminal unit;
When described IP address acquiring unit is additionally operable to there is described current domain name in judging described system domain name caching, from institute
State in system domain name caching and obtain the corresponding IP address of described current domain name;
When described IP address acquiring unit is additionally operable to there is not described current domain name in judging described system domain name caching, from
Domain name server obtains the corresponding IP address of described current domain name.
12. network access device according to claim 11 it is characterised in that described IP address adding device be additionally operable to by
Described current domain name and its corresponding IP address add the system domain name of described terminal unit to cache.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610835684.6A CN106412144A (en) | 2016-09-20 | 2016-09-20 | Network access method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610835684.6A CN106412144A (en) | 2016-09-20 | 2016-09-20 | Network access method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106412144A true CN106412144A (en) | 2017-02-15 |
Family
ID=57996810
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610835684.6A Pending CN106412144A (en) | 2016-09-20 | 2016-09-20 | Network access method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106412144A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110290229A (en) * | 2019-06-05 | 2019-09-27 | 广东美的制冷设备有限公司 | Domain name analytic method, device, electronic equipment and the storage medium of household appliance |
CN110958325A (en) * | 2019-12-11 | 2020-04-03 | 联想(北京)有限公司 | Control method, control device, server and terminal |
CN113572657A (en) * | 2021-07-23 | 2021-10-29 | 中信银行股份有限公司 | System link connectivity compensation method and system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102123161A (en) * | 2010-01-08 | 2011-07-13 | 中国移动通信集团公司 | Distributed mobility management method and distributed mobility management system |
CN102546774A (en) * | 2011-12-27 | 2012-07-04 | 厦门市美亚柏科信息股份有限公司 | CDN (content distribution network) routing method for secondary redirection and system |
CN102610995A (en) * | 2012-02-20 | 2012-07-25 | 深圳雅图数字视频技术有限公司 | Laser module, projecting system and lighting system |
-
2016
- 2016-09-20 CN CN201610835684.6A patent/CN106412144A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102123161A (en) * | 2010-01-08 | 2011-07-13 | 中国移动通信集团公司 | Distributed mobility management method and distributed mobility management system |
CN102546774A (en) * | 2011-12-27 | 2012-07-04 | 厦门市美亚柏科信息股份有限公司 | CDN (content distribution network) routing method for secondary redirection and system |
CN102610995A (en) * | 2012-02-20 | 2012-07-25 | 深圳雅图数字视频技术有限公司 | Laser module, projecting system and lighting system |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110290229A (en) * | 2019-06-05 | 2019-09-27 | 广东美的制冷设备有限公司 | Domain name analytic method, device, electronic equipment and the storage medium of household appliance |
CN110958325A (en) * | 2019-12-11 | 2020-04-03 | 联想(北京)有限公司 | Control method, control device, server and terminal |
CN113572657A (en) * | 2021-07-23 | 2021-10-29 | 中信银行股份有限公司 | System link connectivity compensation method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103825895B (en) | A kind of information processing method and electronic equipment | |
CN108965007B (en) | API gateway interface configuration updating method and device | |
CN102647482B (en) | Method and system for accessing website | |
US9143389B2 (en) | Methods, appratuses, and computer program products for determining a network interface to access a network resource | |
CN102523314B (en) | Identify the method and apparatus of efficient destination server | |
CN103888358B (en) | Routing method, device, system and gateway equipment | |
CN113132185B (en) | Equipment distribution network binding method, system, mobile terminal and storage medium | |
CN104468327B (en) | A kind of group Adding Way, Apparatus and system | |
CN109067930A (en) | Domain name cut-in method, domain name analytic method, server, terminal and storage medium | |
CN103109517B (en) | Method, terminal and the system of a kind of pair of stack terminal access server | |
CN105404258A (en) | Intelligent household management method and platform | |
CN103561121A (en) | Method and device for analyzing DNS and browser | |
CN106506715A (en) | Domain name analytic method and device | |
CN106412144A (en) | Network access method and device | |
CN103581351A (en) | Method and device for having access to network | |
CN106464745A (en) | Dns server, client and data synchronization method | |
CN106302384A (en) | DNS message processing method and device | |
CN111711556B (en) | Routing method, device, system, equipment and storage medium of virtual private network | |
CN106488585A (en) | Display control method and system in wireless connection realization | |
CN102801745A (en) | Method and system for accessing local area network WEB site by using wide area network browser | |
CN105991791A (en) | Message forwarding method and device | |
CN101656722B (en) | Method for generating dynamic host configuration protocol (DHCP) snooping binding information, and device thereof | |
CN108055299A (en) | Portal page push method, network access server and portal certification system | |
CN105743891A (en) | Networking method and device, server and router | |
CN110611678B (en) | Method for identifying message and access network equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170215 |
|
WD01 | Invention patent application deemed withdrawn after publication |