Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-10-2004, 05:06 PM
|
#1
|
Newbie
Registered: Apr 2004
Posts: 24
Rep:
|
/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...
|
|
|
05-10-2004, 08:25 PM
|
#2
|
Member
Registered: Sep 2003
Distribution: Debian 5.0
Posts: 45
Rep:
|
Whats in /etc/sysconfig/network ?
Try
HOSTNAME=<hostname>.<domain>
Gr
Dion
|
|
|
05-11-2004, 08:06 PM
|
#3
|
Newbie
Registered: Apr 2004
Posts: 24
Original Poster
Rep:
|
I do not have /etc/sysconfig.
I am running Gentoo Linux 2.4.25
|
|
|
05-11-2004, 11:39 PM
|
#4
|
Member
Registered: Mar 2004
Distribution: Fedora
Posts: 254
Rep:
|
well do ask from gentoo gurus at irc.freenode.net ; #gentoo
they will probably help you faster 
|
|
|
05-12-2004, 03:42 AM
|
#5
|
Member
Registered: Aug 2003
Location: Essex, UK
Distribution: Windoze 2000, Fedora Core 3
Posts: 325
Rep:
|
whats in your /etc/resolv.conf file?
I'm no expert but i think you need to have this file configured too.
Graeme.
|
|
|
05-13-2004, 10:17 PM
|
#6
|
Newbie
Registered: Apr 2004
Posts: 24
Original Poster
Rep:
|
has
domain <mydomain> if that is what you are asking.
It also has other info like my dns servers etc
|
|
|
10-09-2004, 05:14 PM
|
#7
|
Member
Registered: Apr 2004
Location: leeds - UK
Distribution: Gentoo Stage 1 on Riser FS 4
Posts: 204
Rep:
|
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
bash-2.05b# make
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
CHK include/linux/compile.h
dnsdomainname: Unknown host
Kernel: arch/i386/boot/bzImage is ready
Building modules, stage 2.
MODPOST
^ the kernel recompile error i mentioned before
|
|
|
10-09-2004, 05:17 PM
|
#8
|
Member
Registered: Apr 2004
Location: leeds - UK
Distribution: Gentoo Stage 1 on Riser FS 4
Posts: 204
Rep:
|
also:
Code:
bash-2.05b# cat /etc/resolv.conf
nameserver 192.168.9.11
nameserver 192.168.9.33
search coreline.local
|
|
|
10-10-2004, 04:30 AM
|
#9
|
Member
Registered: Apr 2004
Location: leeds - UK
Distribution: Gentoo Stage 1 on Riser FS 4
Posts: 204
Rep:
|
boath scripts run correctally at start up...
pleese help i have no idea why it shouldent work 
|
|
|
03-28-2015, 04:27 AM
|
#10
|
LQ Newbie
Registered: Mar 2015
Posts: 1
Rep: 
|
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 05:42 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|