[Dnsmasq-discuss] Dynamic address config?

Buck Horn buckhorn at weibsvolk.org
Sat Nov 26 15:13:37 UTC 2022


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20221126/f85bce9e/attachment.htm>


More information about the Dnsmasq-discuss mailing list