DNS: Difference between revisions

Jump to navigation Jump to search
41 bytes added ,  10 November 2016
m
Line 5: Line 5:


== 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 TerraSync client to find a TerraSync server
* The TerraSync client to find a TerraSync server
* The multiplayer client to list multiplayer servers and retrieve information about each server
* The [[Multiplayer|multiplayer]] client to list [[Howto:Set up a multiplayer server|multiplayer servers]] and retrieve information about each server


=== TerraSync ===
=== TerraSync ===
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
The TerraSync client queries {{Wikipedia|NAPTR record}}s for the DNS name <code>terrasync.flightgear.org</code>. 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 TerraSync client, only the fixed string is taken.
At system start, FlightGear sends a query for the DNS name <code>terrasync.flightgear.org</code>. The URL for scenery download is encoded in the regex field between the last two exclamation marks. This string MUST start with <code>!^.*$!</code> and must end with <code>!</code>, 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".




=== Multiplayer ===
=== Multiplayer ===
The multiplayer client queries [https://en.wikipedia.org/wiki/SRV_record SRV] records for a list of multiplayer servers and [https://en.wikipedia.org/wiki/TXT_record TXT] records on each server for detailed information about the server.
The multiplayer client queries {{Wikipedia|SRV record}}s for a list of multiplayer servers and {{Wikipedia|TXT record}}s 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:
_fgms._udp IN SRV 10 20 5001 mpserver01
<code>_fgms._udp IN SRV 10 20 5001 mpserver01</code>
All entries currently use the same values for priority and weight. The port number 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. The port number is 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