Description hostname -d is not resolved domain information correctly when used a subdomain in the hostname Steps to reproduce the issue root@beastie:~ # grep hostname /etc/rc.conf hostname="beastie.labs.example.com" root@beastie:~ # hostname beastie.labs.example.com root@beastie:~ # hostname -s beastie root@beastie:~ # hostname -d lple.commple.com root@beastie:~ # hostname beastie.example.com root@beastie:~ # hostname -d example.com root@beastie:~ # hostname beastie.labs.example.com root@beastie:~ # hostname -d lple.commple.com Results received root@beastie:~ # hostname -d lple.commple.com Results expected root@beastie:~ # hostname -d labs.example.com
More examples root@beastie:~ # hostname beastie.my.labs.example.com root@beastie:~ # hostname -d my.lple.example.com root@beastie:~ # hostname beastie.my.test.labs.example.com root@beastie:~ # hostname -d my.test.lple.commple.com
MARKED AS SPAM
I suspect this bug was fixed by commit 33c1e7271ac2¹ which was merged to 13 before 13.1 and to 12 before 12.3. Are you still able to reproduce it? ¹ https://cgit.freebsd.org/src/commit/?id=33c1e7271ac21a626829289780b88071ae46ec65