On 23.11.2022 06:47:27, Feng Shao wrote:
There are a bunch of machines in our lab, and we normally don't have
DNS records configured for them, only accessing by IP. In order to ssh
to them with key auth, I have a config in my .ssh/config like
Host *.mylab
User root
IdentityFile ~/.ssh/id_rsa.work
and I have some "address=/123.123.123.123.mylab/123.123.123.123" line
in dnsmasq.conf. The problem here is I need to add an entry whenever a
new IP comes.
So you've configured '123.123.123.123.mylab' to be resolved to an IP of
'123.123.123.123'.
I wonder:
If your intention is to ssh into your clients by IP address anyway, then
why would you want to involve DNS here at all?
Instead of referencing the host by name, e.g.
ssh 123.123.123.123.mylab
is there a reason why using the IP address directly, e.g.
ssh 123.123.123.123
would not work for you?
Regards,
Buck
_______________________________________________
Dnsmasq-discuss mailing list
[email protected]
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss