You are not logged in.

#1 2025-01-16 08:30:28

miaofthestars
Member
From: South Africa
Registered: 2023-04-20
Posts: 2
Website

Home server hostname only resolves locally

Hi there all. I recently set up a home server. It is connected via ethernet to the router directly.

I have Dynamic DNS configured via no-ip service, and that dynamic DNS address points to the subdomain I have assigned to the homeserver via a CNAME record with my DNS registrar. I also have port forwarding set up on the router to forward an external port to the internal IP of my server.
When connecting locally, i.e on the same network as the home server, I am perfectly able to connect using the subdomain and the port. However, when I use a network outside that which hosts the server, I get the following error:

ssh: Could not resolve hostname server.placeholder.tld: Name or service not known


Additionally, when pinging the DNS domain for the server externally, I have 100% packet loss. I can add anything needed, but I'm stumped.

Thank you and warm regards
-Mia


Mia McKeown - she/her - miamckeown@pm.me
"Praise then darkness, and creation unfinished."

Offline

#2 2025-01-16 09:28:47

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,152
Website

Re: Home server hostname only resolves locally

Did you just recently assign the public hostname? If so, it may take a couple of hours, up to even a day or so, until the DNS entry is propagated throughout the DNS servers.

Last edited by schard (2025-01-16 09:38:21)


Inofficial first vice president of the Rust Evangelism Strike Force

Offline

#3 2025-01-17 05:37:20

ReDress
Member
From: Nairobi
Registered: 2024-11-30
Posts: 96

Re: Home server hostname only resolves locally

miaofthestars wrote:

When connecting locally, i.e on the same network as the home server, I am perfectly able to connect using the subdomain and the port. However, when I use a network outside that which hosts the server, I get the following error:

ssh: Could not resolve hostname server.placeholder.tld: Name or service not known

Additionally, when pinging the DNS domain for the server externally, I have 100% packet loss. I can add anything needed, but I'm stumped.

Sounds like your global name resolution is broken. When local name resolution happens, that is, when you connect from the same network, everything works fine.

This is probably because your router is running some sort of the name resolution and doesn't relay all requests to the DNS? Though, yes, this request is probably getting resolved locally.

Offline

Board footer

Powered by FluxBB