DNS: Difference between revisions

Jump to navigation Jump to search
472 bytes added ,  14 November 2016
m
TS: refer to the ml discussion, link in the branch and commit.
m (Hooray moved page DNS to Dns over a redirect without leaving a redirect: restoring original title used by the original author (as per [http://wiki.flightgear.org/index.php?title=DNS&oldid=105754]) to prevent edit warring)
m (TS: refer to the ml discussion, link in the branch and commit.)
Line 2: Line 2:


The {{wikipedia|Domain Name System}} (DNS) is being used within FlightGear to look up resources providing several services. Its use started with release [[Changelog 2016.2|2016.2.1]] as an experimental feature to resolve the location of the [[TerraSync]] servers.
The {{wikipedia|Domain Name System}} (DNS) is being used within FlightGear to look up resources providing several services. Its use started with release [[Changelog 2016.2|2016.2.1]] as an experimental feature to resolve the location of the [[TerraSync]] servers.
This page documents the used services in detail<ref>{{cite web
This page documents the used services in detail.
  |url    =  https://sourceforge.net/p/flightgear/mailman/message/35483751/
  |title  =  <nowiki> Re: [Flightgear-devel] Proposal for storing the mp server
information in DNS instead of a web service </nowiki>
  |author =  <nowiki> Torsten Dreyer </nowiki>
  |date  =  Nov 10th, 2016
  |added  =  Nov 10th, 2016
  |script_version = 0.40
  }}</ref>.


== FlightGear systems using DNS ==
== FlightGear systems using DNS ==
Line 37: Line 29:


=== Multiplayer ===
=== Multiplayer ===
Expanding the use of DNS to multiplayer resulted from a discussion at fsweekend 2016 followed by a discussion on the mailing list. <ref>{{cite web
  |url    =  https://sourceforge.net/p/flightgear/mailman/message/35475777/
  |title  =  <nowiki>[Flightgear-devel] Proposal for storing the mp server information in DNS instead of a web service </nowiki>
  |author =  <nowiki> Torsten Dreyer </nowiki>
  |date  =  Nov 7th, 2016
  |added  =  Nov 7th, 2016
  |script_version = 0.40
  }}</ref>
Multiplayer discovery via DNS is an experimental feature found in FlightGear branch [https://sourceforge.net/p/flightgear/flightgear/ci/topics/mpdiscovery-via-dns/~/tree/ topics/mp-discovery-via-dns], the relevant commit is [https://sourceforge.net/p/flightgear/flightgear/ci/979010de4d3ef0116c49a1e8acb15d1b22bdf479/ 979010].
The multiplayer client queries {{Wikipedia|SRV record|SRV records}} for a list of multiplayer servers and {{Wikipedia|TXT record|TXT records}} on each server for detailed information about the server.
The multiplayer client queries {{Wikipedia|SRV record|SRV records}} for a list of multiplayer servers and {{Wikipedia|TXT record|TXT records}} on each server for detailed information about the server.


The SRV record for a multiplayer server looks like this:
The SRV record for a multiplayer server looks like this:
<code>_fgms._udp IN SRV 10 20 5001 mpserver01</code>
<code>_fgms._udp IN SRV 10 20 5001 mpserver01</code>
All entries currently use the same values for priority and weight. The port numbers for active servers are set to the port number of the running fgms instance. The port number is zero for inactive servers.
All entries currently use the same values for priority and weight. The port numbers for active servers are set to the port number of the running fgms instance (usually 5001). The port number is 0 (zero) for inactive servers.


The TXT record for each referenced multiplayer server looks like this:
The TXT record for each referenced multiplayer server looks like this:

Navigation menu