Linux - NetworkingThis 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.
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
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.
# 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!
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".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.