IPTV domain name request methods, devices, terminals, and storage media for set-top boxes
By assigning network identifiers and preset server addresses to the IPTV system and creating a routing environment, the problem of domain name resolution failure in the IPTV network was solved, the stable use of the private network domain name server was realized, and the domain name resolution capability and stability were improved.
Patent Information
- Application Number
- CN202510368818.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-27
- Publication Date
- 2025-11-14
- Estimated Expiration
- 2045-03-27
AI Technical Summary
In an IPTV network environment, set-top box devices often fail to resolve domain names when accessing domain names within the IPTV network, especially in wireless connection environments where dedicated domain name servers are lacking.
By obtaining network identifiers, assigning preset server addresses, creating corresponding routing environments, and using preset functions to direct application query requests to private domain name servers for resolution, the need for additional devices and address allocation is avoided.
It enables stable domain name resolution for IPTV applications in a private network environment, improving domain name resolution capabilities and stability without requiring additional network equipment and address allocation.
Smart Images

Figure CN119892788B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of smart TV set-top box technology, and in particular to a set-top box IPTV domain name request method, apparatus, terminal and storage medium. Background Technology
[0002] PTV set-top boxes generally use wired connections for network transmission. Some set-top boxes have eliminated the Ethernet port, using wireless as the network interface. The advantage of wireless is simple installation, eliminating the need for cabling. The miniaturization of IPTV offers advantages such as compact size and easy installation. However, because the wired connection has been eliminated in this miniaturization, the device natively can only connect wirelessly, typically through a wireless connection to an optical modem or router. For example, when the set-top box attempts to access domain names within the IPTV network, it will result in domain name resolution failures and unclear connections.
[0003] With the miniaturization of IPTV, the network is generally connected to the internet. However, some services and environments still require a dedicated IPTV network. Since there's only one network device, and both the internet and the dedicated network need to be handled simultaneously, some locations have adopted a full-routing solution configured on the optical modem. This full-routing solution allows the optical modem to access both the internet and IPTV simultaneously. The optical modem handles PPPoE dial-up to the internet, and then IPOE dial-up to the IPTV network. When the set-top box sends a request, the optical modem receives the data and forwards it according to its configuration (usually via the destination address range), sending the corresponding data to either the IPTV network or the internet.
[0004] However, in the network environment described above, there is no problem if it is a simple IP address request interaction, but if the set-top box requests an address with a domain name, problems may occur. For example, if the set-top box device accesses a domain name within the IPTV network, it will cause the domain name resolution to fail. Summary of the Invention
[0005] The main objective of this invention is to provide a method, apparatus, terminal, and storage medium for requesting IPTV domain names in a set-top box, which aims to enable applications in IPTV to use dedicated network domain name servers as needed, without the need for additional network equipment and additional address allocation.
[0006] To achieve the above objectives, the present invention provides a method for requesting IPTV domain names for a set-top box, applied to an IPTV system used to manage interactive network television services, the method comprising:
[0007] Obtain the network identifier;
[0008] Assign a preset server address to the network identifier;
[0009] Based on the network identifier and the preset server address, create a routing environment corresponding to the network identifier;
[0010] Based on the network identifier, by calling the first preset function, the query request of the application in the IPTV system is directed to the preset server address, so that the application can use the server corresponding to the preset server address to perform domain name resolution.
[0011] Specifically, prior to obtaining the network identifier, the method further includes:
[0012] Start the preset network management program, which is responsible for network management and backend control.
[0013] Specifically, assigning a preset server address to the network identifier includes:
[0014] The preset server address corresponding to the network identifier is set by calling the second preset function.
[0015] Specifically, assigning a preset server address to the network identifier includes:
[0016] Based on the service requirements, user permissions, and network type of the IPTV system, a preset server address is assigned to the network identifier using a preset policy matching algorithm, so that the network identifier can obtain stronger domain name resolution capabilities and better stability.
[0017] Specifically, the routing environment includes a routing table and routing rules. The step of creating a routing environment corresponding to the network identifier based on the network identifier and the preset server address includes:
[0018] Obtain the initial routing table;
[0019] The current routing information of the IPTV system is added to the initial routing table to obtain the routing table;
[0020] The network identifier is associated with the routing table so that network traffic corresponding to the network identifier is directed to the routing table;
[0021] Obtain the routing rules to determine which network traffic corresponding to a network identifier uses the routing table.
[0022] Specifically, obtaining the routing rules includes:
[0023] By configuring the firewall, traffic redirection rules are entered into the routing table to obtain the routing rules.
[0024] Specifically, obtaining the routing rules includes:
[0025] Enter the routing rule command line in the router command line interface of the IPTV system to obtain the routing rules.
[0026] To achieve the above objectives, the present invention also provides a set-top box IPTV domain name request device, applied to an IPTV system, the IPTV system being used to manage interactive network television services, the device comprising:
[0027] The first unit is used to obtain the network identifier;
[0028] The second unit is used to assign a preset server address to the network identifier;
[0029] The third unit is used to create a routing environment corresponding to the network identifier based on the network identifier and the preset server address;
[0030] The fourth unit is used to, based on the network identifier, call the first preset function to direct the query request of the application in the IPTV system to the preset server address, so that the application can use the server corresponding to the preset server address to perform domain name resolution.
[0031] To achieve the above objectives, the present invention also provides a terminal, including a memory storing a plurality of instructions; the processor loads the instructions from the memory to execute the steps in any of the methods provided by the present invention.
[0032] To achieve the above objectives, the present invention also provides a storage medium storing a plurality of instructions adapted for loading by a processor to execute the steps in any of the methods provided by the present invention.
[0033] This invention provides a method, apparatus, terminal, and storage medium for requesting IPTV domain names in a set-top box. First, a network identifier is obtained. Then, a preset server address is assigned to the network identifier. Next, a routing environment corresponding to the network identifier is created based on the network identifier and the preset server address. Finally, based on the network identifier, a first preset function is called to direct query requests from applications in the IPTV system to the preset server address. This enables IPTV applications to use a dedicated network domain name server as needed, without requiring additional network equipment or address allocation. Other network connection functions still utilize the original system network, thus enabling IPTV applications to use a dedicated network domain name server as needed. Attached Figure Description
[0034] Figure 1 A flowchart illustrating the method provided in an embodiment of the present invention;
[0035] Figure 2 This is a schematic diagram of the device provided in an embodiment of the present invention;
[0036] Figure 3 This is a schematic diagram of the terminal structure provided in an embodiment of the present invention. Detailed Implementation
[0037] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0038] In the existing IPTV network environment, simple IP address requests work without problems, but set-top boxes may encounter issues if they request addresses with domain names. For example, if a set-top box accesses a domain name within the IPTV network, domain name resolution will fail.
[0039] Therefore, embodiments of the present invention provide a method, apparatus, terminal, and storage medium for requesting IPTV domain names for set-top boxes to solve practical technical problems.
[0040] In some embodiments, the device may be integrated into an electronic device, such as a terminal or server.
[0041] In some embodiments, the server may also be implemented as a terminal.
[0042] The server can be a standalone physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.
[0043] The terminal can be a smartphone, tablet, laptop, desktop computer, smart speaker, smartwatch, etc., but is not limited to these. The terminal and the server can be connected directly or indirectly through wired or wireless communication, which is not limited herein.
[0044] This invention provides a method for requesting IPTV domain names for set-top boxes. This method enables applications in IPTV to use dedicated network domain name servers as needed, without the need for additional network equipment and address allocation.
[0045] A method for requesting IPTV domain names for a set-top box, applied to an IPTV system used to manage interactive network television services.
[0046] In some embodiments, a set-top box (STB) is a device used to receive and process television signals, through which users watch IPTV. A converged gateway typically refers to a device that integrates multiple network functions, such as routing, modem, and switching, and may also support different access methods, such as fiber optic, DSL, or Ethernet. Regarding the IPTV domain name request process, when a user uses a set-top box to watch IPTV, the set-top box needs to connect to the IPTV service provider's server to obtain content. This involves a DNS lookup, which is the process of resolving a domain name into an IP address. For example, when a set-top box needs to access a video streaming service, it may request a DNS server to resolve a specific domain name, such as iptv.example.com, to obtain the corresponding server IP address, and then establish a connection.
[0047] Specifically, a converged gateway typically serves as the core of a home network, responsible for connecting external networks (such as the internet or a carrier's private network) and the internal local area network (LAN). Therefore, when a set-top box sends a DNS request, this request first passes through the converged gateway. The converged gateway may process this request, such as performing DNS proxying, caching, or forwarding it to a specific DNS server according to policy. In carrier-customized environments, the converged gateway may direct IPTV-related domain name requests to the carrier's internal servers instead of public internet DNS servers. This optimizes the path and ensures the stability and quality of service of the video stream.
[0048] In some embodiments, the IPTV system can be mounted on IPTV, which stands for Interactive Network Television. IPTV is a new technology that utilizes broadband cable television networks and integrates multiple technologies such as the Internet, multimedia, and communications to provide home users with a variety of interactive services, including digital television.
[0049] Specifically, the IPTV system may include:
[0050] Front-end equipment: It has two functions: program acquisition and storage and service, including program reception, compression encoding, and authentication of users or user terminal equipment;
[0051] Network transmission: This is accomplished by the IP backbone network, IP metropolitan area network, cable TV headend or telecommunications central station, and corresponding broadband access network, responsible for routing, switching, and transmitting audio and video streaming media program streams;
[0052] Terminal receiver: Used to receive, store, play, and forward IP audio and video streaming media programs, including STBs, PCs, players, etc.
[0053] like Figure 1 As shown, the specific process of the method can be as follows:
[0054] S110, Obtain the network identifier.
[0055] In some embodiments, prior to obtaining the network identifier, the method further includes the following specific implementation process:
[0056] Start the preset network management program, which is responsible for network management and backend control.
[0057] Specifically, the preset network management program can be the netd service. The netd service starts automatically after the IPTV system boots up. The netd service is a background daemon program in the Android system specifically responsible for network management and control, handling functions such as network settings and DNS management.
[0058] In some embodiments, after the netd service starts successfully, a new network netid A is added to the IPTV system. The identifier of network netid A is netid, which is the network identifier and is used to identify the network number in the network address.
[0059] S120. Assign a preset server address to the network identifier.
[0060] In some embodiments, assigning a preset server address to the network identifier includes the following specific implementation process:
[0061] The preset server address corresponding to the network identifier is set by calling the second preset function.
[0062] Specifically, in a TV IPTV system, a corresponding DNS address X can be added to netid. The DNS address X is the preset server address, which can be a private network domain name address.
[0063] Within the operating system or development framework upon which the IPTV system is based, functions from function libraries can be called to set the DNS address. For example, in Linux-based IPTV devices, the netlink function library can be called to interact with the kernel's network subsystem, and corresponding functions can be used to add or modify the DNS configuration information of the network interface. In a Windows environment, functions from the Windows Sockets API can be used to set the DNS server address for the network connection, i.e., the DNS address X.
[0064] In some embodiments, assigning a preset server address to the network identifier includes the following specific implementation process:
[0065] Based on the service requirements, user permissions, and network type of the IPTV system, a preset server address is assigned to the network identifier using a preset policy matching algorithm, so that the network identifier can obtain stronger domain name resolution capabilities and better stability.
[0066] Specifically, the algorithm for DNS address allocation is based on preset strategies and rules. A series of strategies can be formulated according to factors such as the service requirements of the IPTV system, user permissions, and network type. For example, for the netid of high-definition video playback, according to the policy matching algorithm, a DNS address X with higher resolution capabilities and stability is preferentially allocated to ensure smooth playback of high-definition video; for the netid of ordinary IPTV services, a relatively general DNS address can be allocated.
[0067] S130. Based on the network identifier and the preset server address, create a routing environment corresponding to the network identifier.
[0068] In some embodiments, the routing environment includes a routing table and routing rules. The step of creating a routing environment corresponding to the network identifier based on the network identifier and the preset server address includes the following steps S131 to S134:
[0069] S131. Obtain the initial routing table.
[0070] Specifically, a new initial routing table is created, which merely provides a carrier for the setting and application of subsequent routing rules, without determining the specific routing rules.
[0071] S132. Add the current routing information of the IPTV system to the initial routing table to obtain the routing table.
[0072] Specifically, add the current routing information of the system to the newly created initial routing table to obtain the routing table T, aiming to enable the routing table T to have the basic information consistent with the original routing logic of the system, and no specific routing rules are determined for specific DNS requests, etc.
[0073] S133. Associate the network identifier with the routing table so that the network traffic corresponding to the network identifier is directed to the routing table.
[0074] Continuing with the above embodiments, establish the connection between netid A and the routing table T so that the network traffic of netid A can be directed to the routing table T. However, no specific rules for routing directions, etc. are determined. It is only a preparation for netid A to use the routing table T to determine routing rules.
[0075] S134. Obtain the routing rules to determine that the network traffic corresponding to the network identifier uses the routing table.
[0076] In some embodiments, the obtaining of the routing rules includes the following specific implementation processes:
[0077] By setting up a firewall, input traffic direction rules in the routing table to obtain the routing rules.
[0078] Specifically, the iptables firewall can be used to add the traffic direction rule: iptables -t nat -A OUTPUT -p udp --dport 53 -s <IP address range of netid A> -j DNAT --to-destination <IP address of DNS server X>. This rule redirects the traffic from the UDP port 53 (a common DNS port) of netid A to DNS server X. It is also necessary to set the corresponding routing rule to forward the traffic through the routing table T, such as ip route add <IP address of DNS server X> via <next-hop address> dev <network interface> table T.
[0079] In some embodiments, the obtaining of the routing rules includes the following specific implementation processes:
[0080] Enter the routing rule command line in the router command-line interface of the IPTV system to obtain the routing rules.
[0081] Specifically, it is possible to connect to the router command-line interface via SSH or serial port, etc., and use the corresponding routing rule command line to add the routing rule. For example, on a Cisco router, use the command ip route <IP address of DNS server X> 255.255.255.255 <next-hop address> <network interface> to add a routing rule.
[0082] S140. Based on the network identifier, by invoking a first preset function, guide the query request of an application program in the IPTV system to the preset server address, so as to enable the application program to perform domain name resolution using the server corresponding to the preset server address.
[0083] After the application program calls setProcessDefaultNetworkForHostResolution(netidA) as needed, all domain name requests of this application will use the DNS address X corresponding to netid A as the domain name server address. Thus, the application program uses the corresponding server to perform domain name resolution. Other network connection and other functions still use the original network of the system. Thus, the function of using the private network domain name server as needed in the IPTV application is realized.
[0084] As can be seen from the above, the embodiment of the present invention can first obtain a network identifier; then, allocate a preset server address for the network identifier; then, based on the network identifier and the preset server address, create a routing environment corresponding to the network identifier; finally, based on the network identifier, by invoking a first preset function, guide the query request of an application program in the IPTV system to the preset server address, so as to enable the application program in the IPTV to use the private network domain name server as needed, without using additional network devices and additional address allocation during the process.
[0085] In summary, the present invention provides a method for a set-top box IPTV domain name request, which enables the application program in the IPTV to use the private network domain name server as needed, without using additional network devices and additional address allocation.
[0086] To better implement the above method, the embodiment of the present invention further provides a set-top box IPTV domain name request device, which can be specifically integrated in an electronic device, and the electronic device can be a terminal, a server, etc. Among them, the terminal can be a mobile phone, a tablet computer, a smart Bluetooth device, a notebook computer, a personal computer, etc.; the server can be a single server or a server cluster composed of multiple servers.
[0087] For example, in this embodiment, the method of the present invention will be described in detail by taking the set-top box IPTV domain name request device specifically integrated into the terminal as an example.
[0088] For example, such as Figure 2 As shown, the set-top box IPTV domain name request device 200 may include a first unit 201, a second unit 202, a third unit 203, and a fourth unit 204, and is applied to an IPTV system for managing interactive network television services. The device includes:
[0089] Unit 201 is used to obtain the network identifier;
[0090] The second unit 202 is used to assign a preset server address to the network identifier;
[0091] The third unit 203 is used to create a routing environment corresponding to the network identifier based on the network identifier and the preset server address;
[0092] The fourth unit 204 is used to, based on the network identifier, call the first preset function to direct the query request of the application in the IPTV system to the preset server address, so that the application can use the server corresponding to the preset server address to perform domain name resolution.
[0093] In practice, each of the above units can be implemented as an independent entity or can be arbitrarily combined to be implemented as the same or several entities. For the specific implementation of each of the above units, please refer to the previous method embodiments, which will not be repeated here.
[0094] As can be seen from the above, the embodiments of the present invention can enable applications in IPTV to use private network domain name servers as needed, without the need for additional network equipment and additional address allocation.
[0095] This invention also provides an electronic device, which can be a terminal, a server, or other similar devices. The terminal can be a mobile phone, tablet computer, smart Bluetooth device, laptop computer, personal computer, etc.; the server can be a single server or a server cluster composed of multiple servers, etc.
[0096] In some embodiments, the product processing device may also be integrated into multiple electronic devices, such as multiple servers, with multiple servers implementing the set-top box IPTV domain name request method of the present invention.
[0097] In this embodiment, the electronic device will be described in detail as a terminal, for example, such as... Figure 3As shown, it illustrates a structural schematic diagram of the terminal 300 involved in an embodiment of the present invention. Specifically:
[0098] The terminal 300 may include components such as a processor 301 with one or more processing cores, a memory 302 with one or more storage media, a power supply 303, an input module 304, and a communication module 305. Those skilled in the art will understand that... Figure 3 The terminal 300 structure shown does not constitute a limitation on the terminal 300, and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein:
[0099] The processor 301 is the control center of the terminal 300. It connects various parts of the terminal 300 via various interfaces and lines, and performs various functions and processes data by running or executing software programs and / or modules stored in the memory 302, and by calling data stored in the memory 302, thereby providing overall monitoring of the terminal 300. In some embodiments, the processor 301 may include one or more processing cores; in some embodiments, the processor 301 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may also not be integrated into the processor 301.
[0100] The memory 302 can be used to store software programs and modules. The processor 301 executes various functional applications and data processing by running the software programs and modules stored in the memory 302. The memory 302 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the terminal 300, etc. In addition, the memory 302 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 302 may also include a memory controller to provide the processor 301 with access to the memory 302.
[0101] The terminal 300 also includes a power supply 303 that supplies power to the various components. In some embodiments, the power supply 303 can be logically connected to the processor 301 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 303 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0102] The terminal 300 may also include an input module 304, which can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
[0103] The terminal 300 may also include a communication module 305. In some embodiments, the communication module 305 may include a wireless module. The terminal 300 can perform short-range wireless transmission through the wireless module of the communication module 305, thereby providing users with wireless broadband Internet access. For example, the communication module 305 can be used to help users send and receive emails, browse web pages, and access streaming media.
[0104] Although not shown, terminal 300 may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, processor 301 in terminal 300 loads the executable files corresponding to the processes of one or more applications into memory 302 according to the following instructions, and processor 301 runs the applications stored in memory 302 to realize various functions, as follows:
[0105] Obtain the network identifier;
[0106] Assign a preset server address to the network identifier;
[0107] Based on the network identifier and the preset server address, create a routing environment corresponding to the network identifier;
[0108] Based on the network identifier, by calling the first preset function, the query request of the application in the IPTV system is directed to the preset server address, so that the application can use the server corresponding to the preset server address to perform domain name resolution.
[0109] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0110] As can be seen from the above, the embodiments of the present invention can enable applications in IPTV to use private network domain name servers as needed, without the need for additional network equipment and additional address allocation.
[0111] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be accomplished by instructions, or by instructions controlling related hardware. These instructions can be stored in a storage medium and loaded and executed by a processor.
[0112] To this end, embodiments of the present invention provide a storage medium storing a plurality of instructions that can be loaded by a processor to execute steps in any of the set-top box IPTV domain name request methods provided in embodiments of the present invention. For example, the instructions can execute the following steps:
[0113] Obtain the network identifier;
[0114] Assign a preset server address to the network identifier;
[0115] Based on the network identifier and the preset server address, create a routing environment corresponding to the network identifier;
[0116] Based on the network identifier, by calling the first preset function, the query request of the application in the IPTV system is directed to the preset server address, so that the application can use the server corresponding to the preset server address to perform domain name resolution.
[0117] The storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0118] According to one aspect of the present invention, a computer program product or computer program is provided, comprising computer instructions stored in a storage medium. A processor of a computer device reads the computer instructions from the storage medium and executes the computer instructions, causing the computer device to perform the methods provided in the various optional implementations of the above embodiments.
[0119] Since the instructions stored in the storage medium can execute the steps in any of the set-top box IPTV domain name request methods provided in the embodiments of the present invention, the beneficial effects that any of the set-top box IPTV domain name request methods provided in the embodiments of the present invention can achieve can be realized. For details, please refer to the previous embodiments, which will not be repeated here.
[0120] The above provides a detailed description of a set-top box IPTV domain name request method, apparatus, terminal, and storage medium provided by embodiments of the present invention. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A method for requesting IPTV domain names for a set-top box, characterized in that, Applied to an IPTV system for managing interactive network television services, the method includes: Obtain the network identifier; Assign a preset server address to the network identifier; Based on the network identifier and the preset server address, a routing environment corresponding to the network identifier is created; the routing environment includes a routing table and routing rules, and the step of creating the routing environment corresponding to the network identifier includes: Obtain the initial routing table; The current routing information of the IPTV system is added to the initial routing table to obtain the routing table; The network identifier is associated with the routing table so that network traffic corresponding to the network identifier is directed to the routing table; Obtain the routing rules to determine whether network traffic corresponding to a network identifier uses the routing table and whether the network traffic is forwarded through the routing table; Based on the network identifier, by calling the first preset function, the query request of the application in the IPTV system is directed to the preset server address, so that the application can use the server corresponding to the preset server address to perform domain name resolution; The process of obtaining the routing rules includes: By configuring the firewall and entering traffic redirection rules into the routing table, the routing rules are obtained. The traffic redirection rules are used to direct traffic on the DNS port corresponding to the network identifier to a preset server.
2. The method as described in claim 1, characterized in that, Prior to obtaining the network identifier, the method further includes: Start the preset network management program, which is responsible for network management and backend control.
3. The method as described in claim 1, characterized in that, Assigning a preset server address to the network identifier includes: The preset server address corresponding to the network identifier is set by calling the second preset function.
4. The method as described in claim 1, characterized in that, Assigning a preset server address to the network identifier includes: Based on the service requirements, user permissions, and network type of the IPTV system, a preset server address is assigned to the network identifier using a preset policy matching algorithm, so that the network identifier can obtain stronger domain name resolution capabilities and better stability.
5. The method as described in claim 1, characterized in that, The process of obtaining the routing rules includes: Enter the routing rule command line in the router command line interface of the IPTV system to obtain the routing rules.
6. A set-top box IPTV domain name request device, characterized in that, Applied to an IPTV system for managing interactive network television services, the device includes: The first unit is used to obtain the network identifier; The second unit is used to assign a preset server address to the network identifier; The third unit is used to create a routing environment corresponding to the network identifier based on the network identifier and the preset server address; the routing environment includes a routing table and routing rules, and the step of creating a routing environment corresponding to the network identifier based on the network identifier and the preset server address includes: Obtain the initial routing table; The current routing information of the IPTV system is added to the initial routing table to obtain the routing table; The network identifier is associated with the routing table so that network traffic corresponding to the network identifier is directed to the routing table; Obtain the routing rules to determine that network traffic corresponding to a network identifier uses the routing table and that the network traffic is forwarded through the routing table; obtaining the routing rules includes: By configuring the firewall and entering traffic redirection rules into the routing table, the routing rules are obtained. The traffic redirection rules are used to indicate that traffic on the DNS port corresponding to the network identifier is directed to a preset server. The fourth unit is used to, based on the network identifier, call the first preset function to direct the query request of the application in the IPTV system to the preset server address, so that the application can use the server corresponding to the preset server address to perform domain name resolution.
7. A terminal, characterized in that, The method includes a processor and a memory, the memory storing multiple instructions; the processor loads instructions from the memory to perform the steps of the method as described in any one of claims 1 to 5.
8. A storage medium, characterized in that, The storage medium stores a plurality of instructions adapted for loading by a processor to execute the steps of the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
IPTV (Internet Protocol Television) private network and Internet dual-network access method
CN105656674A
Set top box access control method compatible with public network environment and private network environment
CN116916102A