Data distribution method and device based on CDN (content distribution network)

The invention discloses a data distribution method and a data distribution device based on a CDN (content distribution network). The data distribution method based on the CDN includes: using a network node to receive a domain name resolution request sent by a client side, using preset IP (internet protocol) addresses in the network node as a resolution result of the domain name resolution request, and returning the resolution result to the client side; receiving a data requirement of using target addresses as the IP addresses of at least two CDN nodes, sent by the client side, confirming the CDN node in the two CDN nodes, closest to the client side, as a target CDN node, and distributing data in the target CDN node, corresponding to the data requirement, to the client side. The data distribution method based on the CDN can simplify the process of using a DNS (domain name server) to resolve and select the IP addresses of the CDN nodes in the network node, and enhances identification accuracy for users.