Re: [Dnsmasq-discuss] Dynamic address config?

2022-11-28 Thread Petr Menšík
On 11/26/22 14:14, Feng Shao wrote: Thanks for the reply Petr. Let me explain more about the motivation: I am a developer and our testers test the code on various environments, including VMs on cloud and k8s worker nodes from cloud providers. These machines and IPs are not

Re: [Dnsmasq-discuss] Dynamic address config?

2022-11-27 Thread Feng Shao
Aha! This indeed meets my requirements exactly! In my case I also added '-l root' to alias. Thank you! On Sat, Nov 26, 2022 at 10:36 PM Geoff Back wrote: > Hello, > > How about adding: > > alias labssh='ssh -i ~/.ssh/id_rsa.work' > > to your shell profile (.bashrc or whatever)? Then you can

Re: [Dnsmasq-discuss] Dynamic address config?

2022-11-26 Thread Buck Horn
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

Re: [Dnsmasq-discuss] Dynamic address config?

2022-11-26 Thread Erik Edwards via Dnsmasq-discuss
Another option would be running BIND on an alternate socket, use nsupdate to add the addresses. DNSMASQ to redirect *.mylab to the BIND instance or BIND can be run in authoritative (for tld: "mylab.") & access restricted recursing on socket 53. On 11/26/22 07:55, Geoff Back wrote: Hello,

Re: [Dnsmasq-discuss] Dynamic address config?

2022-11-26 Thread Geoff Back
Hello, How about adding: alias labssh='ssh -i ~/.ssh/id_rsa.work' to your shell profile (.bashrc or whatever)?  Then you can just do 'labssh ' and the alias expansion makes ssh use the appropriate ID file. Regards, Geoff. Geoff Back What if we're all just characters in someone's nightmares?

Re: [Dnsmasq-discuss] Dynamic address config?

2022-11-26 Thread Feng Shao
Thanks for the reply Petr. Let me explain more about the motivation: I am a developer and our testers test the code on various environments, including VMs on cloud and k8s worker nodes from cloud providers. These machines and IPs are not provisioned/allocated by dnsmasq. For cost reason, these

Re: [Dnsmasq-discuss] Dynamic address config?

2022-11-25 Thread Petr Menšík
Did you know that dnsmasq registers all hosts by their name, if they send their own hostname when requesting DHCP from dnsmasq? Just use domain=mylab and have that host send hostname. It would make using names possible without any additional configuration. I do not get what is the advantage

Re: [Dnsmasq-discuss] Dynamic address config?

2022-11-24 Thread Geert Stappers via Dnsmasq-discuss
On Thu, Nov 24, 2022 at 08:47:28AM +0100, Matus UHLAR - fantomas wrote: > On 24.11.22 10:10, Feng Shao wrote: > > On Wed, Nov 23, 2022 at 5:28 PM Geert Stappers wrote: > > > On Wed, Nov 23, 2022 at 01:47:27PM +0800, Feng Shao wrote: > > > > There are a bunch of machines in our lab, and we normally

Re: [Dnsmasq-discuss] Dynamic address config?

2022-11-24 Thread Matus UHLAR - fantomas via Dnsmasq-discuss
On Wed, Nov 23, 2022 at 01:47:27PM +0800, 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

Re: [Dnsmasq-discuss] Dynamic address config?

2022-11-23 Thread Feng Shao
Thanks Geert, On Wed, Nov 23, 2022 at 5:28 PM Geert Stappers via Dnsmasq-discuss < dnsmasq-discuss@lists.thekelleys.org.uk> wrote: > On Wed, Nov 23, 2022 at 01:47:27PM +0800, Feng Shao wrote: > > There are a bunch of machines in our lab, and we normally don't have DNS > > records configured

Re: [Dnsmasq-discuss] Dynamic address config?

2022-11-23 Thread Geert Stappers via Dnsmasq-discuss
On Wed, Nov 23, 2022 at 01:47:27PM +0800, 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

[Dnsmasq-discuss] Dynamic address config?

2022-11-22 Thread Feng Shao
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