Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why do browsers not use SRV records?

Tags:

browser

dns

srv

Why do browsers not use SRV records?

It seems like a minimal amount of work and it will make the server-side implementation of reliable websites much simpler.

For example, you can specify tiers, such that www.example.com resolves to 1.2.3.4 and 2.3.4.5, and only if neither of those are available, try 4.5.6.7.

SRV records have been around for years...

Is there something I'm missing here?

like image 697
fadedbee Avatar asked Jan 30 '12 11:01

fadedbee


People also ask

Do Web browsers use SRV records?

The RFC for SRV records specifies that it may not be used by pre-existing protocols which did not already specify the use of SRV records in their specifications. I.e. no SRV in the HTTP spec - browsers are, by the SRV standard, prohibited from using it.

What is the main purpose of SRV records?

Summary. The SRV record is a Domain Name System (DNS) resource record. It's used to identify computers hosting specific services. SRV resource records are used to locate domain controllers for Active Directory.

Why are SRV records critical to the operation of an Active Directory domain?

Summary. We explained the important of SRV records in an Active Directory environment. Domain Controllers rely on SRV records registered in the DNS Server to perform important functions such as replicating changes and allow Active Directory clients to locate domain controller services.

Can you ping SRV record?

Checking a DNS SRV record These are treated differently than a normal DNS A record. You cannot ping an SRV record.


2 Answers

The RFC for SRV records specifies that it may not be used by pre-existing protocols which did not already specify the use of SRV records in their specifications. I.e. no SRV in the HTTP spec - browsers are, by the SRV standard, prohibited from using it.

This does not prohibit a new HTTP 1.2 standard from specifying the use of SRV records, though. However, Mark Andrews proposed this in April 2007 to the IETF HTTP working group, but got no response.

like image 74
Teddy Avatar answered Sep 24 '22 09:09

Teddy


There have been two efforts to introduce this that I know of:

  1. draft-andrews-http-srv (2002)

  2. draft-jennings-http-srv (2009)

The "Open Issues" paragraph of the latter draft is illuminating:

The big open issue seems to be if one should just update the HTTP scheme to do this SRV lookup and not create a new scheme.  The 00 version of this draft did that.  A new scheme makes this somewhat unusable for general web surfing while using the old scheme results in a very long transition times where different clients resolve URLs in different ways. 

and that is the crux of the matter. If your site relies on SRV records to be found, it won't work for some users until every browser supports it.

Would you take that risk, without some sort of transition mechanism?

like image 44
Alnitak Avatar answered Sep 26 '22 09:09

Alnitak