LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Name Resolution Question (https://www.linuxquestions.org/questions/linux-networking-3/name-resolution-question-525128/)

jborn 02-02-2007 10:07 PM

Name Resolution Question
 
Hi,

I have a windows machince that has a share on it. I attempted to mount this share on my FC6 box and ran into the following:

mount -t cifs -o username=uname,password=passwd //winxp/share /mnt/music
mount error: could not find target server. TCP name winxp/share not found
No ip address specified and hostname not found

I then tried ping:

ping winxp
ping: unknown host winxp

ping localhost
ping: unknown host localhost

As you can see localhost didn't work either.

I could setup the mount via IP address, but would rather setup via name.

I'm running FC6. Do they have something off by default that I can turn on and automagically it will start working? If not what do I need to do for fedora to understand my window machine names?

Thanks

Micro420 02-02-2007 10:09 PM

edit /etc/hosts

Add your WinXP in there.
Code:

192.168.1.2  winxp win hal2000 whateverelsenameyouwant
first column is the ip address, obviously. The next spaces are the name(s) you want to give it. you can use winxp, win, or hal2000 and they will all point to 192.168.1.2

jborn 02-03-2007 06:30 AM

That fixed my problem.

Thanks for the information!


All times are GMT -5. The time now is 08:04 AM.