- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- hostname and FQDN
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2004 10:37 PM
12-14-2004 10:37 PM
i've got Linux machine - RedHat Enterprise 3 ES.
I need hostname command to return FQDN fish.sea.cz, but it returns only fish.
What's wrong?
line in my /etc/hosts...
nnn.nnn.nnn.hhh fish.sea.cz fish
PF
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2004 11:25 PM
12-14-2004 11:25 PM
Re: hostname and FQDN
try to configure your /etc/hosts as
nnn.nnn.nnn.hhh fish.sea.cz fish localhost.localdomain
Anyway you may also try
# echo `hostname``dnsdomainname`
regards,
xyko
regards,
xyko
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2004 11:58 PM
12-14-2004 11:58 PM
Re: hostname and FQDN
it doesn't help.
I need to use hostname due to oracle.
PF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2004 12:02 AM
12-15-2004 12:02 AM
Re: hostname and FQDN
did you tried my first solution ?
configure your /etc/hosts as
nnn.nnn.nnn.hhh fish.sea.cz fish localhost.localdomain
regards,
xyko
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2004 12:36 AM
12-15-2004 12:36 AM
Re: hostname and FQDN
i did.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2004 01:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2004 01:22 AM
12-15-2004 01:22 AM
Re: hostname and FQDN
The correct is /etc/sysconfig/network.
I guess you don't need to reboot the server but only to restart the network.
#/etc/init.d/network restart
regards,
Xyko
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2004 01:52 AM
12-15-2004 01:52 AM
Re: hostname and FQDN
THANKS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2004 01:53 AM
12-15-2004 01:53 AM