possible lxc bug with setting fqdn

ned

Renowned Member
Jan 26, 2015
113
2
83
If I assign a fqdn to a lxc container that contains only number in the name part the fqdn is not set. Example

If 134.domain.tld is set as hostanme after reboot hostname -f return only 134 but if I put some letters in hostname for example 134vps.domain.tld in file /etc/pve/lxc/134.conf and reboot the lxc command hostname -f will return 134vps.domain.tld as fqdn. Is this a bug or a feature? :)

pveversion
pve-manager/4.1-13/cfb599fb (running kernel: 4.2.6-1-pve)
 
Upgraded to latest proxmox, this bug is still present.

pve-manager/4.1-22/aca130cf (running kernel: 4.2.8-1-pve)

Can anyone confirm this? Is this actually a bug?
 
This is not a bug but instead a violation of RFC 1035.
<domain> ::= <subdomain> | " "

<subdomain> ::= <label> | <subdomain> "." <label>

<label> ::= <letter> [ [ <ldh-str> ] <let-dig> ]

A (sub)domain should always start with a letter!

I am aware of domains like 3.dk etc. but strictly speaking they break RFC