Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
178 views
in Technique[技术] by (71.8m points)

web - What size of google dns DB?

I heard somewhere that to store all DNS records you'll need something like half of terabyte, - and by this reason we don't store DNS locally, and they're stored on some central servers like google, etc. I never tried to verify that, but today I tried to calculate a rough estimate:

I took some info from few sources:

Ofc for all the domains, the average length will be even more than 10 characters, so I roughly assumed 15 characters to be overall average, and used 370.7 millions as amount of domains, to calculate at least some rough estimate:

370700000 x 15 = 5560500000 bytes (~5.18 gigabytes)

Of course it's rough estimate, and it's only for characters, but in DNS there are also IPs. They can be 7 characters (like 1.1.1.1) and up to 15 characters (255.255.255.255), but for simplicity sake let's just assume that's always max, i.e. 15 characters, so we can simply double the value:

10.36 gigabytes

It doesn't seem to be that much, though I wouldn't like to store that on my phone ofc, and not real cool to store that on PC too.

Anyway, I may be mistaken, so I ask you: do you have any more reliable info of how much DNS, such as Google DNS, use storage for all their records?

question from:https://stackoverflow.com/questions/65845641/what-size-of-google-dns-db

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...