Jump to content

Hello guys! I host a Teamspeak3 server on a Raspberry Pi 3. I have dynamic IP and I dont want to move to static and I bought the domain and managed it on Hostinger which doesnt provide a dynamic dns service. I searched it up and used the cloudflare API script to update my IP address. After I setup it the connection to the TS3 server is much much slower than directly introducing the IP, e.g. I am waiting at least 9 seconds for the connection to be made. What can I do for it to be faster?

Link to comment
https://linustechtips.com/topic/1512741-cloudflare-ddns-script-is-slow/
Share on other sites

Link to post
Share on other sites

13 hours ago, m1hN_ said:

Hello guys! I host a Teamspeak3 server on a Raspberry Pi 3. I have dynamic IP and I dont want to move to static and I bought the domain and managed it on Hostinger which doesnt provide a dynamic dns service. I searched it up and used the cloudflare API script to update my IP address. After I setup it the connection to the TS3 server is much much slower than directly introducing the IP, e.g. I am waiting at least 9 seconds for the connection to be made. What can I do for it to be faster?

I'd suggest the problem is something else, as once your IP has been set on DNS how it was set is irrelevant, its entirely down to how fast the DNS lookup occurs and that will vary based on what DNS server is being used to resolve it.

 

Even as it likely wont be cached on a local server it wont be as fast as mainstream domains, but it certainly shouldn't be THAT slow.  How quickly does "nslookup yourdomain" resolve from the console?

ASUS B650E-F GAMING WIFI + R7 7800X3D + 2x Corsair Vengeance 32GB DDR5-6000 CL30-36-36-76  + ASUS RTX 4090 TUF Gaming OC

Router:  Intel N100 (pfSense) Backup: GL.iNet GL-X3000/ Spitz AX Switches: Netgear MS510TXUP, MS510TXPP, GS110EMX
WiFi6: Zyxel NWA210AX (1.7Gbit peak at 160Mhz) WiFi5: Ubiquiti NanoHD OpenWRT (~500Mbit at 80Mhz)
ISPs: Zen Full Fibre 900 (~930Mbit down, 115Mbit up) + Three 5G (~1200Mbit down, 115Mbit up, variable)
Upgrading Laptop/Desktop CNVIo WiFi 5 cards to PCIe WiFi6e/7

Link to post
Share on other sites

1 hour ago, Alex Atkin UK said:

I'd suggest the problem is something else, as once your IP has been set on DNS how it was set is irrelevant, its entirely down to how fast the DNS lookup occurs and that will vary based on what DNS server is being used to resolve it.

 

Even as it likely wont be cached on a local server it wont be as fast as mainstream domains, but it certainly shouldn't be THAT slow.  How quickly does "nslookup yourdomain" resolve from the console?

Im thinking that the problem is the DDNS because before I started using Cloudflare I would manually update my IP in DNS Server and it was connecting fast. When I try nslookup it instantly resolve it. 

Look at the attach, I am not really into networking and I dont really understand what is the problem here. The screenshot is from a user log in ts3 when connecting to the server.

 

Screenshot_1.png

Link to post
Share on other sites

39 minutes ago, m1hN_ said:

Im thinking that the problem is the DDNS because before I started using Cloudflare I would manually update my IP in DNS Server and it was connecting fast. When I try nslookup it instantly resolve it. 

 

This doesn't make sense. The DDNS Script has absolutely nothing to do with the speed of your DNS resolution.

All the script is doing is checking your current IP address, comparing it to the existing DNS record in Cloudflare, and using the API to submit an update request. 

After the A record has been changed, the DDNS script has absolutely nothing to do with your DNS resolution, let alone the time to resolve. 

 

Have you setup your SRV records properly? It looks like there is an issue lokoing at those logs in the screenshot. 

 

You should have entries something like this:

SRV _ts3._udp.ts.utlr.xyz 0 5 9987 ts.utlr.xyz 3600

SRV _tsdns._tcp.ts.utlr.xyz 0 5 9988 ts.utlr.xyz 3600

 

 

Broken down that is:
Record Type: SRV

Service: _ts3 / _tsdns

Protocol: _udp / _tcp

Priority: 0

Weight: 5

Port: 9987 / custom port for tsdns

Target domain: ts.utlr.xyz

TTL: Default is 30minutes...3600s is 1hr

 

So in Cloudflare, creating your SRV's should look like this.

Once setup they don't need to be touched. Your Cloudflare DDNS script will keep the A record updated. 

 

image.thumb.png.92599e41c67861fd8c651cfc865064b6.png

 

image.thumb.png.384c97606e0fdcc8dcc4f34502e1bfad.png

Spoiler

Desktop: Ryzen9 5950X | ASUS ROG Crosshair VIII Hero (Wifi) | EVGA RTX 3080Ti FTW3 | 32GB (2x16GB) Corsair Dominator Platinum RGB Pro 3600Mhz | EKWB EK-AIO 360D-RGB | EKWB EK-Vardar RGB Fans | 1TB Samsung 980 Pro, 4TB Samsung 980 Pro | Corsair 5000D Airflow | Corsair HX850 Platinum PSU | Asus ROG 42" OLED PG42UQ + LG 32" 32GK850G Monitor | Roccat Vulcan TKL Pro Keyboard | Logitech G Pro X Superlight  | MicroLab Solo 7C Speakers | Audio-Technica ATH-M50xBT2 LE Headphones | TC-Helicon GoXLR | Audio-Technica AT2035 | LTT Desk Mat | XBOX-X Controller | Windows 11 Pro

 

Spoiler

Server: Fractal Design Define R6 | Ryzen 3950x | ASRock X570 Taichi | Asus RTX 4060 Dual OC | 64GB (4x16GB) Corsair Vengeance LPX 3000Mhz | Corsair RM850v2 PSU | Fractal S36 Triple AIO + 4 Additional Venturi 120mm Fans | 8 x 20TB Seagate Exos X22 | 4 x 16TB Seagate Exos X18 | 3 x 2TB Samsung 970 Evo Plus NVMe | LSI 9211-8i HBA

 

Spoiler

NAS: Innovision 4U 24-bay chassis (12GB MiniHD SGIO Backplane) | Intel Core i9-10980xe | EVGA X299 FTW-K | EVGA RTX 2080Ti Super FTW3 | 128GB (8x16GB) Corsair Vengeance LPX 3200Mhz | DEEPCOOL PN1000M PSU| Noctua NH-D12L Chromax Black | 16 x 16TB Seagate Exos X18 | 2 x 2TB Samsung 990 Pro | 2 x 2TB Intel U.2 P4510 | LSI 9305-24i HBA

 

Link to post
Share on other sites

6 hours ago, Jarsky said:

 

This doesn't make sense. The DDNS Script has absolutely nothing to do with the speed of your DNS resolution.

All the script is doing is checking your current IP address, comparing it to the existing DNS record in Cloudflare, and using the API to submit an update request. 

After the A record has been changed, the DDNS script has absolutely nothing to do with your DNS resolution, let alone the time to resolve. 

 

Have you setup your SRV records properly? It looks like there is an issue lokoing at those logs in the screenshot. 

 

You should have entries something like this:

SRV _ts3._udp.ts.utlr.xyz 0 5 9987 ts.utlr.xyz 3600

SRV _tsdns._tcp.ts.utlr.xyz 0 5 9988 ts.utlr.xyz 3600

 

 

Broken down that is:
Record Type: SRV

Service: _ts3 / _tsdns

Protocol: _udp / _tcp

Priority: 0

Weight: 5

Port: 9987 / custom port for tsdns

Target domain: ts.utlr.xyz

TTL: Default is 30minutes...3600s is 1hr

 

So in Cloudflare, creating your SRV's should look like this.

Once setup they don't need to be touched. Your Cloudflare DDNS script will keep the A record updated. 

 

image.thumb.png.92599e41c67861fd8c651cfc865064b6.png

 

image.thumb.png.384c97606e0fdcc8dcc4f34502e1bfad.png

I didnt had that SRV Record with tsdns and the udp ts3 srv record was a bit different. I did that and now is failing connecting. 

Screenshot_2.png

Screenshot_3.png

Link to post
Share on other sites

On 6/14/2023 at 3:25 PM, m1hN_ said:

I didnt had that SRV Record with tsdns and the udp ts3 srv record was a bit different. I did that and now is failing connecting. 

 

 

turns out the tsdns port is 41144, which you can set in your screenshot above

_tsdns._tcp.utlr.xyz. 86400 IN SRV 0 5 41144 ts.utlr.xyz.

 

But youve got it working? I just ran a quick test and it connected just fine. 

Spoiler

Desktop: Ryzen9 5950X | ASUS ROG Crosshair VIII Hero (Wifi) | EVGA RTX 3080Ti FTW3 | 32GB (2x16GB) Corsair Dominator Platinum RGB Pro 3600Mhz | EKWB EK-AIO 360D-RGB | EKWB EK-Vardar RGB Fans | 1TB Samsung 980 Pro, 4TB Samsung 980 Pro | Corsair 5000D Airflow | Corsair HX850 Platinum PSU | Asus ROG 42" OLED PG42UQ + LG 32" 32GK850G Monitor | Roccat Vulcan TKL Pro Keyboard | Logitech G Pro X Superlight  | MicroLab Solo 7C Speakers | Audio-Technica ATH-M50xBT2 LE Headphones | TC-Helicon GoXLR | Audio-Technica AT2035 | LTT Desk Mat | XBOX-X Controller | Windows 11 Pro

 

Spoiler

Server: Fractal Design Define R6 | Ryzen 3950x | ASRock X570 Taichi | Asus RTX 4060 Dual OC | 64GB (4x16GB) Corsair Vengeance LPX 3000Mhz | Corsair RM850v2 PSU | Fractal S36 Triple AIO + 4 Additional Venturi 120mm Fans | 8 x 20TB Seagate Exos X22 | 4 x 16TB Seagate Exos X18 | 3 x 2TB Samsung 970 Evo Plus NVMe | LSI 9211-8i HBA

 

Spoiler

NAS: Innovision 4U 24-bay chassis (12GB MiniHD SGIO Backplane) | Intel Core i9-10980xe | EVGA X299 FTW-K | EVGA RTX 2080Ti Super FTW3 | 128GB (8x16GB) Corsair Vengeance LPX 3200Mhz | DEEPCOOL PN1000M PSU| Noctua NH-D12L Chromax Black | 16 x 16TB Seagate Exos X18 | 2 x 2TB Samsung 990 Pro | 2 x 2TB Intel U.2 P4510 | LSI 9305-24i HBA

 

Link to post
Share on other sites

3 hours ago, Jarsky said:

 

turns out the tsdns port is 41144, which you can set in your screenshot above

_tsdns._tcp.utlr.xyz. 86400 IN SRV 0 5 41144 ts.utlr.xyz.

 

But youve got it working? I just ran a quick test and it connected just fine. 

Yeah, TSDNS wasnt really working because I forgot to port forward 41144 TCP..When I tried to speed up the connection I changed the settings in Cloudflare, but I didnt have enough patience for the DNS to propagate and tought I fucked it up. Several hours later it was working fine. Fun fact, i dont even know why I censored the IP adress since I let the DNS uncensored :).

Link to post
Share on other sites

13 hours ago, m1hN_ said:

Yeah, TSDNS wasnt really working because I forgot to port forward 41144 TCP..When I tried to speed up the connection I changed the settings in Cloudflare, but I didnt have enough patience for the DNS to propagate and tought I fucked it up. Several hours later it was working fine. Fun fact, i dont even know why I censored the IP adress since I let the DNS uncensored :).

Yeah I tend to not have that problem as my router uses Cloudflare for DNS, I just check over 5G later to make sure everything works.

ASUS B650E-F GAMING WIFI + R7 7800X3D + 2x Corsair Vengeance 32GB DDR5-6000 CL30-36-36-76  + ASUS RTX 4090 TUF Gaming OC

Router:  Intel N100 (pfSense) Backup: GL.iNet GL-X3000/ Spitz AX Switches: Netgear MS510TXUP, MS510TXPP, GS110EMX
WiFi6: Zyxel NWA210AX (1.7Gbit peak at 160Mhz) WiFi5: Ubiquiti NanoHD OpenWRT (~500Mbit at 80Mhz)
ISPs: Zen Full Fibre 900 (~930Mbit down, 115Mbit up) + Three 5G (~1200Mbit down, 115Mbit up, variable)
Upgrading Laptop/Desktop CNVIo WiFi 5 cards to PCIe WiFi6e/7

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×