Where "hostname -A" get the domain name from?
by Prze-moC from LinuxQuestions.org on (#4R52Z)
Hello,
I had recently migrated my servers between two domains: biz-old.com -> biz-new.net
/etc/hostname contains pute host name, i.e. "my-host" without the domain.
I checked {yp,nis,}domainname and none is set, but "hostname -A" still shows the biz-old.com domain.
What do I need to do, so "hostname -A" shows "my-host.biz-new.net" instead of "my-host.biz-old.com ?


I had recently migrated my servers between two domains: biz-old.com -> biz-new.net
/etc/hostname contains pute host name, i.e. "my-host" without the domain.
I checked {yp,nis,}domainname and none is set, but "hostname -A" still shows the biz-old.com domain.
What do I need to do, so "hostname -A" shows "my-host.biz-new.net" instead of "my-host.biz-old.com ?