I configured this SRV records for my domain for my minecraft server (port 225565)
This works for minecraft itself. The new server url is mc.marc.tv:
BUT my monitor script in php does not find the SRV record:
<?php
$record = dns_get_record('_minecraft._tcp.mc.marc.tv');
var_dump($record);
?>
This is empty. But dig on my shell
dig SRV _minecraft._tcp.mc.marc.tv
returns this:
; <<>> DiG 9.10.6 <<>> SRV _minecraft._tcp.mc.marc.tv ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 15689 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 512 ;; QUESTION SECTION: ;_minecraft._tcp.mc.marc.tv. IN SRV ;; ANSWER SECTION: _minecraft._tcp.mc.marc.tv. 1455 IN SRV 0 5 25565 u5xvqz2hcvrlrpgm.myfritz.net. ;; Query time: 5 msec ;; SERVER: 192.168.178.1#53(192.168.178.1) ;; WHEN: Thu Mar 28 22:41:08 CET 2019 ;; MSG SIZE rcvd: 103
What did I do wrong? How do I get the SRV record for this subdomain with php for a specific port only? Or did i configure the server wrong?
I just had to wait because the DNS of the php server was not updated yet. So patience was the key.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.