openssh-portable
openssh-portable copied to clipboard
ssh: suppress warning on identical names
Running systemd-resolved on a linux host some synthetic records [0] are available, for example _gateway for all current default routing gateway addresses. Connecting to that name gives an error message:
ignoring bad CNAME "_gateway" for host "_gateway": domain name "_gateway" starts with invalid character
Let's suppress the message if cononical name and cname are identical.
[0] https://www.freedesktop.org/software/systemd/man/systemd-resolved.service.html#Synthetic%20Records
Not quite sure this is the best and/or correct way to fix this. What exactly was the motivation for this error message?