-1

I noticed the service http://jpg.to/ supports any word, e.g. http://car.jpg.to/. Curious if this kind of thing is a burden on the DNS system, due to all the names that must potentially be stored, and therefore considered poor practice. Not picking on jpg.to, but just curious because I haven't seen anyone mention the issue when it's been covered.

Is it acceptable for a service to establish many thousands of subdomains?

mahemoff
  • 44,526
  • 36
  • 160
  • 222

2 Answers2

2

This is wildcards.

DNS servers for jpg.to contain only one record, like this:

*.jpg.to.   A   107.20.205.231

When client asks for any domain which ends with jpg.to (for example car.jpg.to), DNS server on-the-fly "generates" an answer like this:

car.jpg.to. A   107.20.205.231

As you see, there is absolutelly no additional burden on the jpg.to DNS servers, on the contrary it have to store only one record.

Although, (for those not familiar with the topic), DNS system built in the way that there are intermediate, "caching" DNS servers. They will cache the actual answer like car.jpg.to, and not a wildcard. Thus once people query lost of different domains under jpg.to, caching server will store many records.

There is nothing wrong with using wildcard DNS. Wildcards defined in the internet standards (RFC 1034 section 4.3.3) and this little additional load is part of normal operation of DNS infrastructure.

Sandman4
  • 2,673
  • 2
  • 22
  • 18
0

Wildcard domains are exactly that – wildcards.
They don't use any more spaces that a normal DNS entry.

SLaks
  • 868,454
  • 176
  • 1,908
  • 1,964
  • 1
    actually, they do. In recursive servers each name looked up will be stored separately, not as a single entry. – Alnitak Feb 22 '12 at 18:06