You are not logged in.

#1 2021-04-15 11:05:38

Brain
Member
Registered: 2020-07-29
Posts: 25

DNS Resolution does not work with ssh

I recently set up a home server and a domain name that points to the IPv4 and the IPv6 of that home server.
I can ssh into this server by using the IPv4, but I can not use the domain name nor the IPv6.
I did some research and figured that this must have to do something with DNS resolution.
What can I do about this?
I use NetworkManager.

Last edited by Brain (2021-04-15 11:06:41)

Offline

#2 2021-04-15 11:32:08

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 9,133

Re: DNS Resolution does not work with ssh

let's verify first if your network connection does work as expected with ipv6 .

post the output of

$ ping 2a01:4f9:c010:6b1f::1
$ ping archlinux.org
$ ping -4 archlinux.org

if all 3 work try pinging the ipv6 address of the home server.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
Did you use the guided installer ? If yes, I can't help you.

(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Online

#3 2021-04-15 12:06:02

Brain
Member
Registered: 2020-07-29
Posts: 25

Re: DNS Resolution does not work with ssh

All three ping commands work. However, pinging the IPv6 of my home server does not return bytes.
I then tried to login with `ssh -4 myuser@mydomain.com` and that WORKED!
One possible answer for that might be, that I might have specified a wrong IPv6 on the domain registrar.
How can I find out the IPv6 of my server when I'm logged in via ssh on my server?

Offline

#4 2021-04-15 12:09:41

damjan
Member
Registered: 2006-05-30
Posts: 430

Re: DNS Resolution does not work with ssh

Brain wrote:

How can I find out the IPv6 of my server when I'm logged in via ssh on my server?

ip addr

Offline

#5 2021-04-15 16:27:15

Brain
Member
Registered: 2020-07-29
Posts: 25

Re: DNS Resolution does not work with ssh

I have tried pinging the IPv4 of my home server and that does also just wait.
I think I have set up the IPv6 correctly on the domain registrar, but when I open my website in Firefox, it uses the IPv4 version.
What am I doing wrong?

Offline

#6 2021-04-15 16:46:38

progandy
Member
Registered: 2012-05-17
Posts: 4,285

Re: DNS Resolution does not work with ssh

Is your router set up correctly to allow the ipv6 connection through its firewall?


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

Board footer

Powered by FluxBB