LinuxQuestions.org
Help answer threads with 0 replies.
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 06-23-2012, 07:27 AM   #1
teraquad
LQ Newbie
 
Registered: Jun 2012
Location: New Bern NC
Distribution: Fedora 17
Posts: 10

Rep: Reputation: Disabled
Can't resolve local ip's


Hi,

I recently installed Fedora 17 on 2 of my machines. Both fresh installations. Neither machine will ping by host name anything on the local network they return only outside ip addresses. I primarily want to use samba to transfer files. All my local hosts appear under the network servers but are unable to open.




Any help would be appriceated.

nsswitch.conf:
Code:
#
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files
initgroups: files

#hosts:     db files nisplus nis dns
#hosts:     files mdns4_minimal [NOTFOUND=return] dns myhostname

hosts:     files mdns4_minimal [NOTFOUND=return] dns zoneminder  


# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus
resolve.conf:
Code:
# Generated by NetworkManager
nameserver 66.76.227.40
nameserver 208.180.42.68
 
Old 06-23-2012, 01:36 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,976

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
You know the network is working since you say outside works. There was no need to attempt ping.

Guess you could verify ifconfig settings to include subnet and gateway, check that firewall and ports and services are available.

I suspect you mean you are trying to use some named resource that doesn't resolve via dns. Use nslookup or dig to verify name to ip.

Knowing how your old system resolved would have helped. Did it have hosts file entries?
 
Old 06-23-2012, 03:24 PM   #3
teraquad
LQ Newbie
 
Registered: Jun 2012
Location: New Bern NC
Distribution: Fedora 17
Posts: 10

Original Poster
Rep: Reputation: Disabled
Thanks for the reply!

I have 3 windows machines and 2 Linux fc17 machines plus 1 fc16 and 2 iomega nas units on my network. Not including the router dvr's net-tv etc. 18 nodes in all. One of the Linux machines, the fc16 works perfectly as do the windows machines. The code responsible for finding the ip/netbios pairs is either not working or mis-configured. Problem is i don't know what piece of code/service/whatever it is. If i did, i could isolate it in the hosts section of nsswitche.conf and proceed to find out why it's not working. nslookup will happily match up any host to the wrong outside ip. So as you said the dns is working. In fc16 the wins mnemonic in that file was the one. In fc17 it's something else. No wins server involved it is just the mnemonic for fc16 to use broadcast as well as wins and other methods to find the pair. I am pretty sure the broadcast method is my networks choice when it comes to netbios/samba name resolution. Firewalls and selinux is off on all but the windows machines. The hosts file is clean as i use dhcp for all the pc's.

Sorry i am not clearer in what i am trying to say.

Thanks Again!
 
Old 06-23-2012, 05:37 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,976

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Then we are back to hosts file or resolving via a windows server for names or a local dns to resolve names.

Might just install samba if not installed. yum install samba samba-client samba-common
 
Old 06-24-2012, 05:27 AM   #5
teraquad
LQ Newbie
 
Registered: Jun 2012
Location: New Bern NC
Distribution: Fedora 17
Posts: 10

Original Poster
Rep: Reputation: Disabled
Thanks for the reply,

Samba is installed with the addition of all files with samba in the description. I feel that nmb should be doing the name resoloution as the nmbscan -a command yelds the following

nmbscan -a
Code:
[george@vaio Desktop]$ nmbscan -a
nmbscan version 1.2.6 - vaio - Sun Jun 24 06:10:19 EDT 2012
domain OFFICE
  master-browser ZONEMINDER 192.168.1.70 -
  server CINDY-PC
    ip-address 192.168.1.102
      mac-address 00:1B:11:79:4D:1D
      smb-mac-address 00:1B:11:79:4D:1D
      arp-mac-address 00:1B:11:79:4D:1D
    server-software Windows Vista (TM) Business 6.0
    operating-system Windows Vista (TM) Business 6002 Service Pack 2
  server CINDYG
    ip-address 192.168.1.110
      mac-address 00:1A:70:11:C1:EC
      smb-mac-address 00:1A:70:11:C1:EC
      arp-mac-address 00:1A:70:11:C1:EC
    server-software Windows 2000 LAN Manager
    operating-system Windows 5.1
  server IOMEGA-01CBDD
    ip-address 192.168.1.8
      mac-address 00:D0:B8:01:CB:DD
      arp-mac-address 00:D0:B8:01:CB:DD
    server-software Samba 3.0.23c
    operating-system Unix
    share USBStorage
      share-type Disk
      share-comment USB Storage on Iomega StorCenter
    share public
      share-type Disk
    share IPC$
      share-type IPC
      share-comment IPC Service (Iomega StorCenter Pro 150d)
  server IOMEGA_1TB
    ip-address 192.168.1.6
      mac-address 00:D0:B8:0A:3F:F9
      arp-mac-address 00:D0:B8:0A:3F:F9
    server-software Samba 3.2.5
    operating-system Unix
    share photos
      share-type Disk
    share ActiveFolders
      share-type Disk
    share backups
      share-type Disk
    share public
      share-type Disk
    share movies
      share-type Disk
    share music
      share-type Disk
    share IPC$
      share-type IPC
      share-comment IPC Service (Home Media Drive)
  server VAIO
    ip-address 192.168.1.106
    server-software Samba 3.6.5-86.fc17
    operating-system Unix
    share Downloads
      share-type Disk
    share Public
      share-type Disk
    share IPC$
      share-type IPC
      share-comment IPC Service (Samba Server Version 3.6.5-86.fc17)
    share MX870LAN-1
      share-type Printer
    share HP-PhotoSmart-C3100
      share-type Printer
      share-comment HP PhotoSmart C3100
  server ZONEMINDER
    ip-address 192.168.1.70
      mac-address 00:1A:70:12:2F:43
      arp-mac-address 00:1A:70:12:2F:43
    server-software Samba 3.6.5-86.fc17
    operating-system Unix
    share Downloads
      share-type Disk
    share Public
      share-type Disk
    share IPC$
      share-type IPC
      share-comment IPC Service (Samba Server Version 3.6.5-86.fc17)
    share HP-PhotoSmart-C3100
      share-type Printer
      share-comment HP PhotoSmart C3100
    share Canon-MX870-series
      share-type Printer
      share-comment Canon MX870 series
    share MX870LAN-1
      share-type Printer
[george@vaio Desktop]$
All of the ip's and shares are correct. I dont believe that i need to add any name servers or load the hosts file with what would be dynamic ip's.

The folder under the network servers icon is full of the correct host it's just that clicking on all but self gives no results.

I am simply at a standstill.

Thanks again!
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2012-06-24 05:58:01.png
Views:	12
Size:	75.9 KB
ID:	9958   Click image for larger version

Name:	Screenshot from 2012-06-24 06:22:06.png
Views:	9
Size:	58.7 KB
ID:	9959  
 
Old 06-25-2012, 11:31 AM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,976

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Maybe we have somehow confused ourselves.

How about booting to some live cd on this box? Use one that is known to use samba, most of them do. It should just work. If so then we need to figure out what is wrong on the F17.
 
Old 06-25-2012, 03:07 PM   #7
teraquad
LQ Newbie
 
Registered: Jun 2012
Location: New Bern NC
Distribution: Fedora 17
Posts: 10

Original Poster
Rep: Reputation: Disabled
Good News!

I have got it 1/2 working. I added wins in the host section of the nsswitch.conf file and bang all but two of the hosts are working. I am sure they are soon to follow. i do have something funny going on with the on line functions, web browser going to suddenlinks search page The location within the hosts section of the nsswitch.conf file is probably the culprit.

hosts: files wins mdns4_minimal dns zoneminder [NOTFOUND=return]

This is the current arrangement, any suggestions?

I loaded the fedora 17 live cd and checked the arrangement of the nsswitch.conf file and found it to be as above with the exception if the wins entry. The computer did not see any network hosts. But it did know there was a work group and it's proper name.

I think i will load a live cd of ubuntu as it seems happier with windows.

Thanks for any ideas.
 
Old 06-27-2012, 07:32 PM   #8
teraquad
LQ Newbie
 
Registered: Jun 2012
Location: New Bern NC
Distribution: Fedora 17
Posts: 10

Original Poster
Rep: Reputation: Disabled
Hi,

I did a live disk boot of ubuntu and fedora 17. Both of them worked exactly the same as my present problem. That is to say that The network folder shows 1 machine but i cannot access the shares on it. It does not show the additional hosts on the network unless I add the wins to the nsswitch.conf With the wins entry added I can browse and open shares on all but two machines. Unfortunately with wins added FireFox behaves abnormally, not finding random web pages and not being able post to to websites.

Thanks!
 
Old 06-28-2012, 10:03 AM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,976

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Then it seems to be a user issue. The share is different than the file permissions.
 
Old 06-28-2012, 12:48 PM   #10
teraquad
LQ Newbie
 
Registered: Jun 2012
Location: New Bern NC
Distribution: Fedora 17
Posts: 10

Original Poster
Rep: Reputation: Disabled
Thanks for the reply!

I am not sure what a user issue is or how it differs from other problems. Perhaps it is just passwords or something like that?

Why would the one machine teraquad show up in the non wins situation and not in the wins situation? What clue is that giving?

Thanks!
 
Old 06-28-2012, 03:52 PM   #11
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,976

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
wins or not samba or part of the samba install has a way to resolve cifs or windows workgroup names by netbios. It is possible that in some server setup's you'd resolve name via ip to ad controller but you didn't mention this.
 
Old 06-29-2012, 05:18 AM   #12
teraquad
LQ Newbie
 
Registered: Jun 2012
Location: New Bern NC
Distribution: Fedora 17
Posts: 10

Original Poster
Rep: Reputation: Disabled
Thanks for the reply.

Sorry, I do not understand. I am in the dark about checking ip to hostname. Is there a command that would do this or am i looking for software?

Thanks!
 
Old 07-02-2012, 11:24 AM   #13
teraquad
LQ Newbie
 
Registered: Jun 2012
Location: New Bern NC
Distribution: Fedora 17
Posts: 10

Original Poster
Rep: Reputation: Disabled
Hi,
I have been searching for my problem this weekend and have found nothing. i did however rerun testparm on my machine and found the following. I was wondering if that is a problem or just a report on its activities I can't find rlimit_max in any form in the config file.


Code:
[root@zoneminder ~]# testparm /etc/samba/smb.conf
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[printers]"
Processing section "[Downloads]"
Processing section "[Public]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
	workgroup = OFFICE
	server string = Samba Server Version %v
	log file = /var/log/samba/log.%m
	max log size = 50
	wins support = Yes
	idmap config * : backend = tdb
	cups options = raw

[printers]
	comment = All Printers
	path = /var/spool/samba
	printable = Yes
	print ok = Yes
	browseable = No

[Downloads]
	path = /home/george/Downloads
	valid users = george
	read only = No

[Public]
	path = /home/george/Public
	valid users = george
	read only = No
This problem seems only to be with FC17 since all my windows and my lone f16 machine work via samba with no problems. It seems like it should be a problem for others. The only thing i see that makes my two machines special is that they are both fresh installs of fc17. Why the Ubuntu and fc17 live cd's do not find the others is beyond me.


Thanks!
 
  


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
Can't resolve local machines by hostname litlmary Linux - Networking 2 04-17-2012 01:02 PM
Unable to resolve local hostname rudivk Linux - Networking 6 12-10-2004 07:37 AM
bind & resolve local hosts jingo_man Linux - Networking 7 07-08-2004 02:56 PM
Cannot resolve local addresses on local network danielgrenyer Linux - Networking 6 01-14-2004 11:03 AM
Sendmail can't resolve names outside local network beng Linux - Networking 4 12-01-2003 12:09 PM

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

All times are GMT -5. The time now is 09:12 AM.

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