mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
Replace DnDns with HeijdenDns
HeijdenDns seems to do a better job at querying SRV records
This commit is contained in:
parent
a344ac4101
commit
693073edfc
112 changed files with 5491 additions and 5009 deletions
34
MinecraftClient/Protocol/Dns/Records/RecordDNAME.cs
Normal file
34
MinecraftClient/Protocol/Dns/Records/RecordDNAME.cs
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
using System;
|
||||
/*
|
||||
* http://tools.ietf.org/rfc/rfc2672.txt
|
||||
*
|
||||
3. The DNAME Resource Record
|
||||
|
||||
The DNAME RR has mnemonic DNAME and type code 39 (decimal).
|
||||
DNAME has the following format:
|
||||
|
||||
<owner> <ttl> <class> DNAME <target>
|
||||
|
||||
The format is not class-sensitive. All fields are required. The
|
||||
RDATA field <target> is a <domain-name> [DNSIS].
|
||||
|
||||
*
|
||||
*/
|
||||
namespace Heijden.DNS
|
||||
{
|
||||
public class RecordDNAME : Record
|
||||
{
|
||||
public string TARGET;
|
||||
|
||||
public RecordDNAME(RecordReader rr)
|
||||
{
|
||||
TARGET = rr.ReadDomainName();
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return TARGET;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue