Project

General

Profile

Bug #9292

When changing a jail from DHCP to static, can't specify name servers for the jails in the UI

Added by john aylward over 5 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
Nice to have
Assignee:
John Hixson
Category:
Middleware
Target version:
Seen in:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
Yes
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

Problem: When changing a jail from DHCP to static, there is no way to specify name servers for the jails in the UI

Steps to reproduce:
  1. Create a new jail
  2. Specify the jail as DHCP
  3. Edit the jail, and change it from DHCP to static
  4. The jails /etc/resolve.conf will now have no resolvers in it

For some jails this is likely not a problem, but it does prevent things like Plex or Crashplan plugin jails from working as expected (Assuming you want them to be able to contact the internet for whatever reason).

For Plex, you won't be able to access your media from outside your network, and for Crashplan, internal backups will work, but not if you need to push backups from the jail to the Crashplan cloud or other off-site crashplan instance (possibly even a local onc, although I'm pretty sure crashplan does local ones by IP address directly).

For custom jails that use Port to install software, port/pkg will fail to work as it can't update the software database anymore.

To fix this myself I just ran this command from my jail path (/mnt/jails):

for I in */etc/resolv.conf; do sudo cp /etc/resolv.conf "${I}"; done;

Associated revisions

Revision 5696b88a (diff)
Added by John Hixson over 5 years ago

Make sure we have a valid /etc/resolv.conf when starting a jail Ticket: #9292

Revision ce2c428f (diff)
Added by John Hixson over 5 years ago

Make sure we have a valid /etc/resolv.conf when starting a jail Ticket: #9292 (cherry picked from commit 5696b88ad2f05d832f61dac459023df1b0521aa1)

Revision 5a33d4ed (diff)
Added by John Hixson over 5 years ago

Make sure we have a valid /etc/resolv.conf when starting a jail Ticket: #9292 (cherry picked from commit 5696b88ad2f05d832f61dac459023df1b0521aa1)

History

#1 Updated by john aylward over 5 years ago

Copying the resolv.conf should possibly be done for all statically configured jails when the resolvers are updated in the "Network -> Global Configuration" section of the UI as well. I didn't personally test if this was already handled though.

#2 Updated by John Hixson over 5 years ago

  • Status changed from Unscreened to Screened
  • Target version set to Unspecified

#3 Updated by John Hixson over 5 years ago

  • Status changed from Screened to Ready For Release

A "fix" has been committed for this. There are no plans to create a UI for this (at least in 9.3 anyhow). See the commits associated with this ticket for the fix.

#4 Updated by Jordan Hubbard over 5 years ago

  • Status changed from Ready For Release to Resolved

#5 Avatar?id=14398&size=24x24 Updated by Kris Moore about 4 years ago

  • Target version changed from Unspecified to N/A

Also available in: Atom PDF