Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Round-robin, NSD and multiple IPs - Pleast Test! - Page 2
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Round-robin, NSD and multiple IPs - Pleast Test!

2»

Comments

  • seem most the first A record always being used :D

  • yeah on the super-ping website on the watchmouse website its much closer to 50/50 thats why I suggest driving a lot more traffic to the domain before a proper assumption can be made

  • dirkdirk Member

    I got Maidenhead, UK (am in Belgium)

  • from USA :
    Kansas City, Mo., USA

  • wlanboywlanboy Member
    edited August 2013

    From sweden: Location: Maidenhead, UK

    From netherlands: Location: Fremont, USA

    From Buffalo: Location: Fremont, USA

  • from italy : Maidenhead, UK

  • sleddogsleddog Member
    edited August 2013

    Here's what I've learned/concluded:

    Having 2 or more A records does not automatically mean you have round-robin functionality. Either (a) your authoritative nameservers or (b) the end-users DNS resolvers must support and be configured to provide round-robin.

    I use NSD for authoritative nameserving. NSD does not support round-robin.

    Querying test.blite.ca at one of my authoritative nameservers returns three A records (I added another today):

    ;; ANSWER SECTION:
    test.blite.ca.      30  IN  A   162.210.175.x
    test.blite.ca.      30  IN  A   78.129.133.y
    test.blite.ca.      30  IN  A   204.12.214.z

    If we run that DNS query a 100 times, the result will always be identical. The three A records are always listed in the order they appear in the zonefile.

    Now, people who browse to test.blite.ca are not querying my nameservers directly, but are using DNS resolvers. This might be your ISP's nameservers or public nameservers like Google's 8.8.8.8.

    When a DNS resolver does an upstream query and receives 3 A records with the same name, it might do one of three things:

    1. Serve them to you in exactly the same order as received;
    2. Round-robinize them, so the order changes when you query multiple times;
    3. Try to do geo-location, and serve you the closest IP first (closest in terms of network distance).

    Google's public resolver 8.8.8.8 appears to do #1. Other resolvers I've tried do #2.

    So, because my authoritative servers don't do round-robin, and because some DNS resolvers don't do round-robin, the likelihood is that the majority of traffic will land at the first IP returned by my nameservers (currently: Fremont, USA - the new server added today).

    TL; DR; - Having 2 or more A records does not necessarily mean they are used in a round-robin fashion. The best way of achieving round-robin is to ensure that your authoritative nameservers support & provide this function.

    Thanked by 1typh0n
  • FritzFritz Veteran

    Location: Fremont, USA

  • asterisk14asterisk14 Member
    edited August 2013

    Can rage4 be used for something like round robin?

  • Location: Fremont, USA

  • @typh0n said:
    No,I mean how did you set up that round robin thingy.

    Add multiple A records for the same domain, as long as your nameserver supports it as said above.

    Thanked by 1typh0n
  • @sleddog said:
    ...
    I use NSD for authoritative nameserving. NSD does not support round-robin.

    Querying test.blite.ca at one of my authoritative nameservers returns three A records (I added another today):

    ;; ANSWER SECTION:
    > test.blite.ca.        30  IN  A   162.210.175.x
    > test.blite.ca.        30  IN  A   78.129.133.y
    > test.blite.ca.        30  IN  A   204.12.214.z

    If we run that DNS query a 100 times, the result will always be identical. The three A records are always listed in the order they appear in the zonefile.
    ...

    This is documented in: http://www.nlnetlabs.nl/svn/nsd/trunk/doc/REQUIREMENTS B2.4 as an explicit non-requirement:

    `4. No creeping featurism

    NSD will not implement any functionality that is not strictly
    necessary for the task of authoritative name serving. Examples:
    round robin sequence of RRset members in consecutive answers,
    Also no dynamic plugins.
    `

  • Yes, I read that.

  • NeoonNeoon Community Contributor, Veteran

    Location: Fremont, USA

  • bdtechbdtech Member
    edited August 2013

    Location: Fremont, USA

    You should try cloudflare or route 53. I believe both will alternate IP #1

  • sleddogsleddog Member
    edited August 2013

    @bdtech said:
    You should try cloudflare or route 53. I believe both will alternate IP #1

    I don't care that IPs aren't round-robin :) I was just trying to understanding the process...

Sign In or Register to comment.