Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7158001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T12:59:16+00:00 2026-05-28T12:59:16+00:00

I have to make a DNS lookup for SRV records in Android application and

  • 0

I have to make a DNS lookup for SRV records in Android application and choose the select one of them.
When I query a DNS server for multiple SRV records differ in priority and weight, I get the records in different order on each request, are these records ordered by the server? if yes what is the order algorithm?

I guessed it respects the priority as the lower priority is most preferred, but in case the priority is equal I supposed it will respect the weight in a round-robin style, which did not happen!

I had a simple bind9 DNS server with 2 SRV records as follow:


Domain Priority Weight


aaa.example.com 1 90


bbb.example.com 2 10

When I lookup, I expected to get the aaa.example.com 9 times as first result and the 10th I would get bbb.example.com as first result, which did not happen!, the server just reverse the order on each request!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T12:59:19+00:00Added an answer on May 28, 2026 at 12:59 pm

    If you are querying for SRV records, the order in which they are returned is arbitrary and should not not be taken into account by your client application.

    Rather, your application is responsible for ordering the received results according to weight and priority, as specified in RFC 2782.

    Also specified in the RFC is that if multiple records are returned with equal weights and priorities, the client would select randomly, and not according to the order in which those records are returned.

    As a result, the use of round-robin DNS to serve SRV records is redundant.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application, which resolves DNS hostnames to IP in one of its
I have to make a graphical user interface application using the language of my
I have to make a connection to an XMLRPC site from a web application,
I have to make a decision of which database server to use for my
I have to make a simple layout in android but have problem with the
We have a long-lived ASP.NET 3.5 application we are moving from a physical server
I have make the application of GPS which give me the Latitude and Longitude
I have a DNS, and each computer has a website to make different folders
I have to make column charts in Excel using VBA only (no user input).
I have to make a schema for an XML format that's already being used.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.