Bug 26765 - univention-repository-create erzeugt falschen DNS-Alias mit Hostname statt FQDN
univention-repository-create erzeugt falschen DNS-Alias mit Hostname statt FQDN
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Update - Repository administration
UCS 3.0
Other Linux
: P5 normal (vote)
: UCS 3.0-2
Assigned To: Philipp Hahn
Sönke Schwardt-Krummrich
: interim-3
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-04-11 11:50 CEST by Janis Meybohm
Modified: 2012-07-20 15:24 CEST (History)
2 users (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 Janis Meybohm univentionstaff 2012-04-11 11:50:57 CEST
<http://forum.univention.de/viewtopic.php?f=48&t=1807&p=6314>

univention-repository-create erzeugt einen DNS-Alias der auf "<HOSTNAME>." statt "<HOSTNAME>.<DOMAINNAME>." zeigt.
Comment 1 Janis Meybohm univentionstaff 2012-04-17 12:45:37 CEST
Erneut aufgefallen:
<http://forum.univention.de/viewtopic.php?f=48&t=1819>

UCS 3.01 mit Errata 55
Comment 2 Philipp Hahn univentionstaff 2012-07-10 15:27:51 CEST
Der Alias wird durch das Join-Script 77univention-debmirror.inst angelegt.
Ähnlich wie bei einer Datei-basierten Konfiguration von BIND wird bei Hostnamen ohne Punkt am Ende der Zonenname ergänzt, was im Normalfall dazu führt, daß obwohl im LDAP nur der Hostname ohne den Domain-Anteil steht, BIND trotzdem den vollständigen FQDN zurückliefert.

# udm dns/alias list --superordinate "zoneName=$domainname,cn=dns,$ldap_base"
ARG: None
  cname: mas13
  name: univention-repository
  zonettl: 80600 seconds
# host -t cname univention-repository.$domainname
univention-repository.pmhahn.dev is an alias for mas13.pmhahn.dev.

Ich konnte den Bug bei mir nicht reproduzieren und in der Historie von 77univention-debmirror.inst konnte ich auch nichts entdecken, was dazu geführt haben könnte, das cname="$hostname." statt cname="hostname" oder cname="$hostname.$domainname" gesetzt wird.

Trotzdem wurde der Code nach Rücksprache mit Stefan jetzt so geändert, daß im LDAP der FQDN mit Punkt am Ende eingetragen wird.

QA: univention-debmail wird per univention-repository-create automatisch installiert.

svn34070, univention-debmirror_5.0.5-1.66.201207101525

ChangeLog: svn13868
\item The \ucsName{univention-repository} DNS CNAME is updated to point to the fully qualified domain name of the repository server (\ucsBug{26765}).
Comment 3 Sönke Schwardt-Krummrich univentionstaff 2012-07-16 16:49:42 CEST
(In reply to comment #2)
> Der Alias wird durch das Join-Script 77univention-debmirror.inst angelegt.
> Ähnlich wie bei einer Datei-basierten Konfiguration von BIND wird bei 
> Hostnamen ohne Punkt am Ende der Zonenname ergänzt, was im Normalfall dazu 
> führt, daß obwohl im LDAP nur der Hostname ohne den Domain-Anteil steht, BIND 
> trotzdem den vollständigen FQDN zurückliefert.
> 
> # udm dns/alias list --superordinate "zoneName=$domainname,cn=dns,$ldap_base"
> ARG: None
>   cname: mas13
>   name: univention-repository
>   zonettl: 80600 seconds
> # host -t cname univention-repository.$domainname
> univention-repository.pmhahn.dev is an alias for mas13.pmhahn.dev.
> 
> Ich konnte den Bug bei mir nicht reproduzieren und in der Historie von
> 77univention-debmirror.inst konnte ich auch nichts entdecken, was dazu geführt
> haben könnte, das cname="$hostname." statt cname="hostname" oder
> cname="$hostname.$domainname" gesetzt wird.

Ich konnte den Bug ebenfalls nicht reproduzieren. Gibt es Situationen, in denen domainname noch nicht gesetzt ist, die Joinskripte aber schon durchlaufen?

> Trotzdem wurde der Code nach Rücksprache mit Stefan jetzt so geändert, daß im
> LDAP der FQDN mit Punkt am Ende eingetragen wird.

Falls nur ein Hostname im DNS-CName-Eintrag vorhanden ist, wird dieser automatisch durch einen FQDN mit Punkt ausgetauscht.
 
> QA: univention-debmail wird per univention-repository-create automatisch
> installiert.

OK (s/univention-debmail/univention-debmirror/)

> svn34070, univention-debmirror_5.0.5-1.66.201207101525
> 
> ChangeLog: svn13868
> \item The \ucsName{univention-repository} DNS CNAME is updated to point to the
> fully qualified domain name of the repository server (\ucsBug{26765}).

OK
Comment 4 Stefan Gohmann univentionstaff 2012-07-20 15:24:42 CEST
UCS 3.0-2 has been released: 
  http://forum.univention.de/viewtopic.php?f=54&t=1905

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