<div dir="ltr"><div>Question.  I am configuring a server , the ip address comes from DHCP but I want to run jails, which means restricting the IP Addresses sshd listens on.</div><div><br></div><div>Normally, this is done by IP but I don't know how to do it for DHCP.  Will using the hostname work.  for example</div><div>ListenAddress <a href="http://hostname.mydomain.com">hostname.mydomain.com</a>  <br></div><div><br></div><div>Or will that not work?</div><div><br></div><div>I have seen online that some people have cron scripts that look for a change of DHCP IP and then update the sshd_config file and restart sshd but I am hoping to avoid that...</div><div>Of course, I can use a non-standard port but not sure I want that either<br></div><div><br></div><div>Thanks</div><div><br></div><div>Mark</div><div>P.S. Michael Lucas appears to not have addressed this in his book about Jails  ;-)<br></div></div>