LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 05-10-2004, 05:06 PM   #1
rdmenotte
Newbie
 
Registered: Apr 2004
Posts: 24

Rep: Reputation: 15
/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...
 
Old 05-10-2004, 08:25 PM   #2
elvisious
Member
 
Registered: Sep 2003
Distribution: Debian 5.0
Posts: 45

Rep: Reputation: 15
Whats in /etc/sysconfig/network ?

Try

HOSTNAME=<hostname>.<domain>

Gr
Dion
 
Old 05-11-2004, 08:06 PM   #3
rdmenotte
Newbie
 
Registered: Apr 2004
Posts: 24

Original Poster
Rep: Reputation: 15
I do not have /etc/sysconfig.

I am running Gentoo Linux 2.4.25
 
Old 05-11-2004, 11:39 PM   #4
mardanian
Member
 
Registered: Mar 2004
Distribution: Fedora
Posts: 254

Rep: Reputation: 30
well do ask from gentoo gurus at irc.freenode.net ; #gentoo
they will probably help you faster
 
Old 05-12-2004, 03:42 AM   #5
GraemeK
Member
 
Registered: Aug 2003
Location: Essex, UK
Distribution: Windoze 2000, Fedora Core 3
Posts: 325

Rep: Reputation: 30
whats in your /etc/resolv.conf file?

I'm no expert but i think you need to have this file configured too.

Graeme.
 
Old 05-13-2004, 10:17 PM   #6
rdmenotte
Newbie
 
Registered: Apr 2004
Posts: 24

Original Poster
Rep: Reputation: 15
has

domain <mydomain> if that is what you are asking.
It also has other info like my dns servers etc
 
Old 10-09-2004, 05:14 PM   #7
crm
Member
 
Registered: Apr 2004
Location: leeds - UK
Distribution: Gentoo Stage 1 on Riser FS 4
Posts: 204

Rep: Reputation: 30
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
 
Old 10-09-2004, 05:17 PM   #8
crm
Member
 
Registered: Apr 2004
Location: leeds - UK
Distribution: Gentoo Stage 1 on Riser FS 4
Posts: 204

Rep: Reputation: 30
also:
Code:
bash-2.05b# cat /etc/resolv.conf
nameserver 192.168.9.11
nameserver 192.168.9.33
search coreline.local
 
Old 10-10-2004, 04:30 AM   #9
crm
Member
 
Registered: Apr 2004
Location: leeds - UK
Distribution: Gentoo Stage 1 on Riser FS 4
Posts: 204

Rep: Reputation: 30
boath scripts run correctally at start up...
pleese help i have no idea why it shouldent work
 
Old 03-28-2015, 04:27 AM   #10
satishsverma
LQ Newbie
 
Registered: Mar 2015
Posts: 1

Rep: Reputation: Disabled
Smile

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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
hostname, fqdn, /etc/hosts setup [GOD]Anck Slackware 9 07-20-2010 04:51 PM
Changing hostname, dnsdomainname, and domainname permanently. xemous Linux - Networking 6 12-16-2009 01:21 PM
Changing Hostname.../etc/hosts...? vous Linux - Networking 13 01-16-2008 08:38 PM
basic questions on hostname and domain name + related postfix questions Moebius Linux - Newbie 7 09-04-2007 11:50 AM
hosts.allow questions paleogryph Linux - Security 3 06-15-2005 11:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration