LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-02-2009, 07:17 AM   #1
sheps126
LQ Newbie
 
Registered: Jan 2009
Posts: 13

Rep: Reputation: 0
Local Host Name & DNS Resolution Problem (Works on Windows but not on Linux)


Hi Guys,

I guess I am relatively new to Linux. I am using Fedora 9 (Sulphur) and needed to change the host name from the default 'localhost.localdomain' to 'fedora'. I did so in the '/etc/sysconfig/network' file and it seems that the host name has been changed accordingly (if I run '# hostname' it returns with 'fedora' as the hostname).

My problem lies in resolving the host name 'fedora' from the Fedora box (i.e '# ping fedora') - I just get a 'ping: unknown host fedora' response. This would sound like a DNS issue, but, and this is where I get lost, when I ping 'fedora' from a Windows box on the same network, it resolves as expected. Also, if I '# ping google.com' from the Fedora box, the domain resolves fine.

Apache was working fine (and still is) before I changed the hostname, but now when I start the service it warns me that it couldn't determine the fqdn ...

Any ideas?

I have disabled SELinux and the firewall just to be sure.
 
Old 01-02-2009, 07:27 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Hi,

Add it to
/etc/hosts

xxx.xxx.xxx.xxx fedora
 
Old 01-02-2009, 08:21 AM   #3
sheps126
LQ Newbie
 
Registered: Jan 2009
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks repo,

I realise that I can do that, but it won't solve the problem. The windows machine on the network is named lawrance ... I can't '# ping lawrance' from the Fedora box either, meaning I can't ping any other machine on the network using their respective host names.

Thanks again for the reply!
 
Old 01-02-2009, 06:29 PM   #4
malaprop
LQ Newbie
 
Registered: Dec 2008
Location: TX
Distribution: Ubuntu 8.10
Posts: 26

Rep: Reputation: 16
Do you have a DNS server on your network?
Is it in /etc/resolv.conf?

you might also have to put the domain name in there...
 
Old 01-03-2009, 04:09 AM   #5
sheps126
LQ Newbie
 
Registered: Jan 2009
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks malaprop,

Yes, there is a DNS and it is working. /etc/resolv.conf does have the correct DNS entries in it, and I can resolve any normal web address from the Fedora box, just not any other machine on the local network (yet from Windows I can). I think this might have something to do with the fact that Windows uses the NetBios names to resolve too, and Linux doesn't?

Thanks again for your reply!
 
Old 01-03-2009, 04:18 AM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Perhaps you can take a look at winbind and samba.
 
Old 01-03-2009, 08:12 AM   #7
ARC1450
Member
 
Registered: Jun 2005
Location: Odenton, MD
Distribution: Gentoo
Posts: 290

Rep: Reputation: 30
Windows does resolve through NetBIOS before DNS.

So, you don't have a DNS issue as long as you can properly resolve something like "www.google.com".

If you have a DNS server, remember in /etc/resolv.conf that you need to add a search suffix.
 
Old 01-03-2009, 10:11 AM   #8
malaprop
LQ Newbie
 
Registered: Dec 2008
Location: TX
Distribution: Ubuntu 8.10
Posts: 26

Rep: Reputation: 16
do you have a process running called avahi or avahi-daemon?

ps axw |grep avahi

kill it and see if that doesn't solve the problem.

I've seen that process cause this very issue.
 
1 members found this post helpful.
  


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
Local network DNS resolution fails, but DNS resolution to internet is OK farge Linux - Networking 6 05-28-2008 11:49 PM
BIND/DNS Host resolution problem Seventh Linux - Newbie 1 03-21-2007 03:38 PM
Windows/Linux Host Name Resolution VinnySem Linux - Networking 3 07-26-2005 09:24 PM
Windows XP as ICS host & Linux as client connection problem ! hemanfan Linux - Networking 3 06-08-2005 04:29 PM
how does dns/host names work on local lan gman_O0O0 Linux - Networking 1 04-11-2005 12:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:36 PM.

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