377
edits
(Documentation of DNS usage) |
m (Typo and replace terrasync with TerraSync) |
||
Line 1: | Line 1: | ||
== Usage of DNS within FlightGear == | == Usage of DNS within FlightGear == | ||
[https://en.wikipedia.org/wiki/Domain_Name_System The Domain Name System] (DNS) is being used within FlightGear to lookup resources providing several services. | [https://en.wikipedia.org/wiki/Domain_Name_System The Domain Name System] (DNS) is being used within FlightGear to lookup resources providing several services. Its use started with release 2016.2.1 as an experimental feature to resolve the location of the TerraSync servers. | ||
This page documents the used services in detail. | This page documents the used services in detail. | ||
== FlightGear systems using DNS == | == FlightGear systems using DNS == | ||
Currently (as of version 2016.4.0) these systems use DNS for service discovery: | Currently (as of version 2016.4.0) these systems use DNS for service discovery: | ||
* The | * The TerraSync client to find a TerraSync server | ||
* The multiplayer client to list multiplayer servers and retrieve information about each server | * The multiplayer client to list multiplayer servers and retrieve information about each server | ||
=== | === TerraSync === | ||
The | The TerraSync client queries [https://en.wikipedia.org/wiki/NAPTR_record NAPTR] records for the dns name terrasync.flightgear.org. As of version 2016.4 the configured entries are | ||
terrasync.flightgear.org. IN NAPTR 100 100 "U" "ws20" "!^.*$!http://flightgear.sourceforge.net/scenery!" . | terrasync.flightgear.org. IN NAPTR 100 100 "U" "ws20" "!^.*$!http://flightgear.sourceforge.net/scenery!" . | ||
terrasync.flightgear.org. IN NAPTR 100 50 "U" "ws20" "!^.*$!http://fgfs.goneabitbursar.com/terrascenery!" . | terrasync.flightgear.org. IN NAPTR 100 50 "U" "ws20" "!^.*$!http://fgfs.goneabitbursar.com/terrascenery!" . | ||
terrasync.flightgear.org. IN NAPTR 100 50 "U" "ws20" "!^.*$!http://mpserver16.flightgear.org/scenery!" . | terrasync.flightgear.org. IN NAPTR 100 50 "U" "ws20" "!^.*$!http://mpserver16.flightgear.org/scenery!" . | ||
At system start, FlightGear sends a query for the dns name terrasync.flightgear.org. The URL for scenery download is encoded in the regex field between the last two exclamation marks. This string MUST start with !^.*$! and end with !, the regex itself is not interpreted by the | At system start, FlightGear sends a query for the dns name terrasync.flightgear.org. The URL for scenery download is encoded in the regex field between the last two exclamation marks. This string MUST start with !^.*$! and end with !, the regex itself is not interpreted by the TerraSync client, only the fixed string is taken. | ||
The hostname to query is configurable at system start by setting a property, so is the scenery version number. The default scenery version is "ws20". | The hostname to query is configurable at system start by setting a property, so is the scenery version number. The default scenery version is "ws20". | ||
edits