When mounting nas hostname don't work but IP is ok

Raspberry Pi related support

When mounting nas hostname don't work but IP is ok

Postby jonas18z » 15 Jan 2015, 19:32

User avatar
jonas18z
 
Posts: 34
Joined: 21 Oct 2014, 17:55

Re: When mounting nas hostname don't work but IP is ok

Postby hondagx35 » 15 Jan 2015, 22:53

Hi jonas18z,

*.local querying is not enabled by default in Arch Linux.
You have to install "nss-mdns" and configure it.
See here:
https://wiki.archlinux.org/index.php/av ... resolution
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: When mounting nas hostname don't work but IP is ok

Postby skrodahl » 15 Jan 2015, 23:00

-skrodahl

|| Audiobah TPA3116 || || ProJect Debut Carbon Espirit DC || / RaspBerry Pi / HifiBerry DAC ||
User avatar
skrodahl
Moderator
 
Posts: 160
Joined: 27 Jan 2014, 10:08
Location: Sweden

Re: When mounting nas hostname don't work but IP is ok

Postby hondagx35 » 15 Jan 2015, 23:48

Hi skrodahl,

thank you for the detailed how-to.
I will discuss this with the devolopers.

frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: When mounting nas hostname don't work but IP is ok

Postby skrodahl » 16 Jan 2015, 16:13

-skrodahl

|| Audiobah TPA3116 || || ProJect Debut Carbon Espirit DC || / RaspBerry Pi / HifiBerry DAC ||
User avatar
skrodahl
Moderator
 
Posts: 160
Joined: 27 Jan 2014, 10:08
Location: Sweden

Re: When mounting nas hostname don't work but IP is ok

Postby jass199012 » 20 Sep 2017, 16:01

Hi skrodahl,

I know this is an old thread, but I dont want to open a duplicate thread. So posting my question and hope I get a response.

I am facing this very issue on 0.4-beta on my RPi 2.
I am trying to access my windows 7 PC's shared drive using a hostname instead of IP address. I found this thread and followed all your steps, but it did not work. I got the following error:

"socket: Address family not supported by protocol"

ping -4 RMY-PC.local also did not work.

And I did not save any logs. Apologies for that.

Since I am a little comfortable with debian (and totally dumb when it comes to Arch linux), I flashed my card and burned Volumio which did not have this issue. But volumio has ailments of its own. The interface is sluggish and crude. Any changes in audio settings causes a total failure. In short, I am not willing to let go Rune, but this small missing feature is a huge roadblock. Hope you can suggest anything with the partial information that I am able to provide :-)
jass199012
 
Posts: 4
Joined: 20 Sep 2017, 15:44

Re: When mounting nas hostname don't work but IP is ok

Postby hondagx35 » 20 Sep 2017, 16:40

User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: When mounting nas hostname don't work but IP is ok

Postby jass199012 » 20 Sep 2017, 19:08

Hi Frank,

Thanks for the response.
Did you do anything in addition to the steps mentioned by skrodahl? Because I remember trying without .local also, without success. But will be able to confirm after I try again. Unfortunately, I bricked my card trying to burn RuneAudio image once more. I'll purchase another one on my way back from office tomorrow and will try to get back with the results ASAP. Please bear with me.

Thanks
- Jass
jass199012
 
Posts: 4
Joined: 20 Sep 2017, 15:44

Re: When mounting nas hostname don't work but IP is ok

Postby jass199012 » 21 Sep 2017, 15:19

Hi Frank,

I got a new card and did the following, in order:
1. Burned the image (succeeded)
2. Tried to mount RMY-PC from web interface, and ping via ssh (failed)
3. Installed nss-mdns and updated /etc/nsswitch.conf as suggested by skrodahl (succeeded)
5. a. ping RMY-PC (failed; error: "Address family not supported by protocol")
b. ping -4 RMY-PC (failed; error: "ping: RMY-PC: Name or service not known")
c. ping RMY-PC.local (failed; error: "Address family not supported by protocol")
d. ping -4 RMY-PC.local (failed; error: "ping: RMY-PC.local: Name or service not known")
6. ping -4 google.com (succeeded)
7. Tried to mount RMY-PC from web interface (failed)

RMY-PC has two shared drives (one for audio, another for video), accessible through a separate user (with password).
My other pi, running OSMC, is able to read files from both the drives.

Thanks,
-Jass
jass199012
 
Posts: 4
Joined: 20 Sep 2017, 15:44

Re: When mounting nas hostname don't work but IP is ok

Postby jass199012 » 23 Sep 2017, 09:45

jass199012
 
Posts: 4
Joined: 20 Sep 2017, 15:44

support RuneAudio Donate with PayPal


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 19 guests