Giter Site home page Giter Site logo

lts-dns-server's Introduction

dns-server

there are two types of urls in this standard

type1 : specific url

format: spec-xx-yy-ll1-{...content-of-ll1...}-ll2-{..content-of-ll2...}

spec: is spec and is just a fixed const plain text 
xx: is a string variable of 2 digits like '00','01','02'....,'99' , totally 100 number specifications
xx: represent which specific it is 
yyy: is string of 3 digits like '000','001','002'... ,totally 1000 numbers
yyy: represent how many pairs are there after 

pairs like below:
00-{}  //nothing pair
20-{...20 length string inside...} //20 length string


we define the 00 to be used currently for CDN meson standard example:
/////spec 00 and 2 pairs
//// you can bind backup domains of  mesontrackingx.com simply to this dns-server
//// all the thisistag will be mapped to meson-dns-ip standard
spec-00-02-015-fikcbikcafkcdax-019-thisisthebinddomain.mesontracking.com
spec-00-02-015-fikcbikcafkcdax-019-thisisthebinddomain.mesontracking2.com


///meson-dns-ip standard is a bi-directional ip-dns mapping :

 static tagToIp(tagstr){
        let result="";
        for (let i = 0; i < tagstr.length; i++) {
                let tchar=tagstr.charAt(i);
                if(tchar=='k'){
                    result = result + "."
                }else if(tchar=='x'){
                    break;
                }else{
                    result = result +String.fromCharCode(tchar.charCodeAt(0)-49);
                }
        }
        return result
    }


type2 : plain url , no meaning

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.