Bug 38274 - Nameserver & domainname setting
Nameserver & domainname setting
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Docker
UCS 4.0
Other Linux
: P5 normal (vote)
: UCS 4.1
Assigned To: Daniel Tröder
Stefan Gohmann
: interim-1
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-04-16 09:03 CEST by Stefan Gohmann
Modified: 2015-11-17 12:12 CET (History)
1 user (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gohmann univentionstaff 2015-04-16 09:03:51 CEST
By default a docker container gets the resolv.conf from the docker server.

In UCS environments the resolv.conf contains the right nameserver setting and the correct domainname. Thus, the docker /sbin/init script should read the resolv.conf before committing it.

Furthermore, it should be possible to set the values via environment variables such as:
 -e domainname=foo.local -e UCS_NAMESERVER1=10.201.42.1

The environment variable are preferable.
Comment 1 Arvid Requate univentionstaff 2015-04-16 14:56:46 CEST
Ok, I named the variables to match UCR:

  -e domainname=foo.local -e nameserver1=10.201.42.1
Comment 2 Stefan Gohmann univentionstaff 2015-08-17 08:50:38 CEST
Please merge the changes to 4.1.
Comment 3 Daniel Tröder univentionstaff 2015-08-27 11:02:06 CEST
Merged to 4.1 with commits 63270 (svn copy) & 63271 (version bump).
Comment 4 Stefan Gohmann univentionstaff 2015-10-02 08:22:02 CEST
OK, it still works.
Comment 5 Stefan Gohmann univentionstaff 2015-11-17 12:12:13 CET
UCS 4.1 has been released:
 https://docs.software-univention.de/release-notes-4.1-0-en.html
 https://docs.software-univention.de/release-notes-4.1-0-de.html

If this error occurs again, please use "Clone This Bug".