Package Search
 
Members: 353 | Topics: 767 | Posts: 3211
We welcome our newest member: ClintBarton
Info
» You aren't logged in, login or registerOnline: No members and 17 guests | Time: 14:07
hosts - settings right ?!?
paldo Support Forum    paldo    General Support
Reply Reply   Subscribe Topic Subscribe Topic
2 posts found.
 hosts - settings right ?!?
Moderator
 
 
Linux-Dude
 
Posts: 1187
Registered: 2006-11-23
I run some commands:

[amsoft@gawab:~]$ cat /etc/hosts
127.0.0.1 gawab.com gawab localhost
[amsoft@gawab:~]$ cat /etc/domainname
gawab.com
[amsoft@gawab:~]$ cat /etc/hostname
gawab
[amsoft@gawab:~]$ uname -n
gawab
[amsoft@gawab:~]$ hostname -a
gawab localhost
[amsoft@gawab:~]$ hostname -s
gawab
[amsoft@gawab:~]$ hostname -d
com
[amsoft@gawab:~]$ hostname -f
gawab.com
[amsoft@gawab:~]$ cat /proc/sys/kernel/hostname
gawab
[amsoft@gawab:~]$


is all fine ?

or this:

[amsoft@gawab:~]$ su
Password:
[root@gawab:/home/amsoft]# hostname gawab.com
[root@gawab:/home/amsoft]# cat /proc/sys/kernel/hostname
gawab.com
Profile   Private Message   E-Mail
Created: 2006-11-24 20:35 | Modified: 2006-11-24 20:37 by Amnon82
Highlight selected Text   Edit   Delete   Quote Reply
 Re: hosts - settings right ?!?
Administrator
 
 
 
Posts: 426
Registered: 2004-09-09
The fully-qualified domain name (FQDN) usually consists of 3 levels or more, e.g. example.gawab.com. /etc/hostname would have to contain "example" and /etc/hosts "127.0.0.1 example.gawab.com example localhost". hostname -f would result in "example.gawab.com", then.

If you want to use just gawab.com as FQDN, you should set /etc/domainname to just "com" and leave everything as is.
Profile   Private Message   Web
Created: 2006-12-06 14:09
Highlight selected Text   Edit   Delete   Quote Reply
Subscribe Topic Subscribe Topic
powered by bitron board 1.23a