/etc/hosts, hostname, and dnsdomainname questions
ok, so I have a question or 3 :-)
I am running gentoo linux 2.4.25 for the rest of this thread, my host name is <hostname> and domain name is <domain> I have set hostname to <hostname> and set dnsdomainname to <domain> but when I am at a login prompt, it shows <hostname>.unknown_domain I know that if the following is in /etc/hosts it will display properly: 127.0.0.1 <hostname>.<domain> localhost but I am thinking that if everything is really working, it should show my hostnamd and domain name both on the login without using the hosts file... |
Whats in /etc/sysconfig/network ?
Try HOSTNAME=<hostname>.<domain> Gr Dion |
I do not have /etc/sysconfig.
I am running Gentoo Linux 2.4.25 |
well do ask from gentoo gurus at irc.freenode.net ; #gentoo
they will probably help you faster :) |
whats in your /etc/resolv.conf file?
I'm no expert but i think you need to have this file configured too. Graeme. |
has
domain <mydomain> if that is what you are asking. It also has other info like my dns servers etc |
i still havent fixed this problem
all the domain name refrences point to coreline.local it still comes up as hostname.unknowen-domainname :'( Code:
bash-2.05b# cd /usr/src/linux |
also:
Code:
bash-2.05b# cat /etc/resolv.conf |
boath scripts run correctally at start up...
pleese help i have no idea why it shouldent work :( |
Please try this step:
for ex. system Lan ip is = 10.7.60.12 than open /etc/hosts file and enter this entry 10.7.60.12 <hostname>.<domain> <hostname> save and restart your service. |
All times are GMT -5. The time now is 08:52 AM. |