On 05/23/2015 09:51 PM, Bruce Dubbs wrote:
Casey Daniels wrote:
On 05/23/2015 02:01 AM, Paul Rogers wrote:
While not critical it is annoying, I have edited my /etc/issue file
for the log on screen to show hostname at domain name. However all
the log on screens say
correcthostname at unknown_domain
how in the world do I get the domain name to show up?
Not knowing exactly HOW you tried to get the domain name in issue,
there
are a few places where it should show up for login to find it. One is
resolv.conf, the other is the FQDN in hosts. My bet would be on
resolv.conf.
I have the \n@\o in the issues file (among other things) Everything
else works
fine. Its just the \o is returning "(none)"
hostname -f and hostname -d work fine.
While it really isn't optimal, you could hard code the domain:
\[email protected]
But have you checked /etc/hosts? You need something like:
127.0.0.1 localhost
a.b.c.d myhost.example.org myhost
-- Bruce
Originally I had \O but that was returning "unknown_domain", then I
realized I was supposed to have \o, but that started returning "(none)"
I went back to \O and now its working fine.
So I guess \o and \O both return the domain name, but they get them from
different places? But anyway its working.
Casey
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page