Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| 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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-28-2007, 03:11 PM
|
#1
|
|
Member
Registered: Nov 2003
Location: USA
Distribution: Ubuntu, Fedora
Posts: 415
Rep:
|
My hostname is NOT resolving correctly
Last night I installed Apache,Mysql and php in my Fedora box for testing/studying purposes. I changed my hostname to "fidel", but when I type fidel at the browser it takes me to a wiki page about fidel castro. How do I resolve this? Do I need to setup a DNS server also? thanks
|
|
|
|
08-28-2007, 03:35 PM
|
#2
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,707
|
you have no dns. the client isn't going to magically know what the server is called. if you want a simple dns implementation, i'd strignly recommend dnsmasq for a 2 minute setup.
|
|
|
|
08-28-2007, 04:14 PM
|
#3
|
|
Senior Member
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109
Rep:
|
You can edit /etc/hosts and add the IP/hostname there.
Dave
|
|
|
|
08-28-2007, 04:31 PM
|
#4
|
|
Member
Registered: Nov 2003
Location: USA
Distribution: Ubuntu, Fedora
Posts: 415
Original Poster
Rep:
|
I'm looking at it:
# Do not remove the following line, or various programs
# that require network functionality will fail.
::1 localhost.localdomain localhost
127.0.0.1 localhost
Can you give me an example of how should I edit this? thanks!
|
|
|
|
08-28-2007, 05:07 PM
|
#5
|
|
Moderator
Registered: May 2001
Posts: 24,805
|
Quote:
Originally Posted by cucolin@
Can you give me an example of how should I edit this? thanks!
|
In your case "fidel" is an alias for the machine. "man hosts" (try that in a terminal window) says: "IP_address canonical_hostname aliases", your example: "127.0.0.1 localhost fidel".
|
|
|
|
08-29-2007, 10:22 AM
|
#6
|
|
Member
Registered: Nov 2003
Location: USA
Distribution: Ubuntu, Fedora
Posts: 415
Original Poster
Rep:
|
Thanks for the info. unSpawn! I will try this tonight.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:59 PM.
|
|
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
|
|