Changed internet provider today.
But now
smb://user@ip-address
works while
smb://user@host
does not.
Is this some king of cache-ing issue? How do I solve this?
Changed internet provider today.
But now
smb://user@ip-address
works while
smb://user@host
does not.
Is this some king of cache-ing issue? How do I solve this?
On Thu, 04 Jan 2018 22:06:01 +0000, ae lex wrote:
> Changed internet provider today.
>
> But now Code:
> --------------------
> smb://user@ip-address
> --------------------
> works while
> Code:
> --------------------
> smb://user@host
> --------------------
> does not.
>
> Is this some king of cache-ing issue? How do I solve this?
When you say “does not”, can you be more specific about what happens when
you try to use the hostname?
–
Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C
When I type into Dolphin’s location bar
smb://user@host/directory
(not literally “user”, “host” and “directory” but the applicable names)
I get
The file or folder smb://user@host/directory does not exist.
(anonymized, off course)
Yet when I type into Dolphin’s location bar
smb://user@IPaddress/directory/
(anonymized)
I get asked for a password and everything works.
The only thing that changed today was the modem provided by our new internet provider. But I’m only accessing another computer in our house. Yet somehow it cannot resolve the hostname (given that the IP address works).
Do you have that hostname registered to that IP address in DNS officially?
If not, have you some other way told this machine how to resolve
“hostname” to the proper IP address? Using which protocol?
Name resolution can work if the protocols are setup to do that, but drop
two machines on a network, give them IPs and hostnames, and they’ll never
know eachother’s hostnames unless they are doing some pretty abnormal
stuff. Some services, like DNS and DHCP, sometimes work together to make
this seem normal, but that’s not something the boxes themselves do on
their own as it is facilitated by DHCP and DNS on a third server.
–
Good luck.
If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below.
If you want to send me a private message, please let me know in the
forum as I do not use the web interface often.
On Fri, 05 Jan 2018 01:16:01 +0000, ae lex wrote:
> hendersj;2850031 Wrote:
>> When you say “does not”, can you be more specific about what happens
>> when you try to use the hostname?
>
> When I type into Dolphin’s location bar Code:
> --------------------
> smb://user@host/directory
> --------------------
> (not literally “user”, “host” and “directory” but the applicable names)
>
> I get
>
>
> Code:
> --------------------
> The file or folder smb://user@host/directory does not exist.
> --------------------
> (anonymized, off course)
>
> Yet when I type into Dolphin’s location bar Code:
> --------------------
> smb://user@IPaddress/directory/
> --------------------
> (anonymized)
>
> I get asked for a password and everything works.
>
> The only thing that changed today was the modem provided by our new
> internet provider. But I’m only accessing another computer in our house.
> Yet somehow it cannot resolve the hostname (given that the IP address
> works).
What happens if you ping the host? Does the ping response come back with
the proper address?
I do notice that in the first example, you have no trailing “/”, but in
the second, you do. What happens if you add a trailing “/” with the host?
–
Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C
No. It just worked before.
In other words, I was lucky with the modem from my previous internet provider?
Pinging the host responds with “ping: unknown host”
Doesn’t change anything.
On 01/05/2018 10:36 AM, ae lex wrote:
>
> ab;2850035 Wrote:
>> Do you have that hostname registered to that IP address in DNS
>> officially?
>> If not, have you some other way told this machine how to resolve
>> “hostname” to the proper IP address? Using which protocol?
>
> No. It just worked before.
If you add the host to your /etc/hosts file now, mapping it to the correct
address, does it just work again?
> ab;2850035 Wrote:
>> Name resolution can work if the protocols are setup to do that, but drop
>> two machines on a network, give them IPs and hostnames, and they’ll
>> never
>> know eachother’s hostnames unless they are doing some pretty abnormal
>> stuff. Some services, like DNS and DHCP, sometimes work together to
>> make
>> this seem normal, but that’s not something the boxes themselves do on
>> their own as it is facilitated by DHCP and DNS on a third server.
>
> In other words, I was lucky with the modem from my previous internet
> provider?
I would probably blame a better choice than pure luck; if your previous
router supported DDNS as part of its DHCP service then that may explain
things. It is not a critical part of DHCP or DNS to do that, but that
seems like the most-likely reason.
–
Good luck.
If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below.
If you want to send me a private message, please let me know in the
forum as I do not use the web interface often.
Checked the modem. Yesterday, it didn’t have “device names” for the other computers. Today it does.
That does make it work…until I reboot my computer and the modem assigns another ip address.
Interesting.
On Fri, 05 Jan 2018 17:36:01 +0000, ae lex wrote:
> hendersj;2850036 Wrote:
>> What happens if you ping the host? Does the ping response come back
>> with the proper address?
>
> Pinging the host responds with “ping: unknown host”
>
> hendersj;2850036 Wrote:
>> I do notice that in the first example, you have no trailing “/”, but in
>> the second, you do. What happens if you add a trailing “/” with the
>> host?
>
> Doesn’t change anything.
Sounds like the ‘modem’ is actually a combined modem and router - you
will probably want to look at the IP address configuration for the local
subnet and see if you can assign static addresses.
The old one probably used a feature of DHCP to update a local DNS
server with the hostname and address when assigning an address, and the
new one either isn’t configured for that or doesn’t support it.
Jim
–
Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C
On Fri, 05 Jan 2018 18:26:01 +0000, ae lex wrote:
> Checked the modem. Yesterday, it didn’t have “device names” for the
> other computers. Today it does.
Good news, sounds like.
–
Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C
You’re correct: it combines modem and router and wifi.
I did end up assigning static addresses — which was really easy with the new modem/router. The thing is, I only need them static to make the /etc/hosts file trick work.
Weirder still is, that the modem/router does say it has a DHCPv4 server and a DHCPv6 server. I can only toggle the DHCPv4 server from enabled to disabled, while the DHCPv6 server can only be toggled from stateless to stateful.
I thought so as well, but without the /etc/hosts file trick, pinging the host still gives “ping: unknown host”.
On Tue, 09 Jan 2018 19:36:02 +0000, ae lex wrote:
> I thought so as well, but without the /etc/hosts file trick, pinging the
> host still gives “ping: unknown host”.
Very likely the router either doesn’t have its own DNS server, or it’s
just not configured.
Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C
What brand/model is the new router?
I know not all like Avahi, but it can provide a means for local hostname resolution if desired…
https://wiki.archlinux.org/index.php/avahi#Hostname_resolution
Is this all within the same local LAN, like a bunch of windows and Linux computers talking to each other through a home-style router, all using the same IP addresses like typically for example 192.168.33.x/24 with router typically 192.168.33.1/24? If that’s a “yes” then you need to check your Samba settings. Samba was partly-built to take care of changing LAN IPs for Dolphin and situations like that. smb:// kinda implies Samba.
I wasn’t thinking about samba name resolution specifically. John is right.
name resolve order = bcast host lmhosts
nmblookup <NetBIOS_name>
Close. The router has a 192.168.xxx.x format. The other computers have a 192.168.xxx.xxx/24 format. But the answer is “yes”.
Yeah, I did try to look at samba because while I can do a lot of things from Dolphin, VLC needs it own username and password when I try to play a video from the shared folder and even then VLC doesn’t include the subtitle file.
The problem is, I have no idea how KDE even uses samba. Under KDE’s System Settings, I can only find “Connectivity > Windows Shares” which allows me to supply it with a default username and default password. Searching for samba in YAST gives me either “Samba Server” or “Windows Domain Membership”. I haven’t done anything with them after installing LEAP 42.3 on this computer.
I only found /etc/samba/smb.conf which I believe is the default file? Anyway, it doesn’t include “name resolve order”.
The command replies with “name_query failed to find name”.
Keep in mind this is basically a default install of LEAP 42.3 with multimedia enabled and a few additional applications installed.
That was what swerdna was implying. A simple LAN with a few hosts connected. As others have already speculated, your old router provided the DNS functionality that allowed this to work. The simplest mechanism samba provides for name resolution is by way of broadcast NetBIOS name resolution. If you configure smb.conf with the name resolve order like this
name resolve order = bcast host lmhosts
then broadcasting will take priority and you should be able to resolve by NetBIOS name (including Dolphin via smb://…). You will need to restart samba after the changes are made. Do that with
sudo systemctl restart smb.conf
and to ensure that the Leap 42.3 machine is broadcasting its NetBIOS name, make sure that nmb is running as well with
sudo systemctl enable nmb
sudo systemctl start nmb
Here’s a good blog explaining how to configure samba for use in a home network, and specifically using NetBIOS broadcasting for name resolution (rather than WINS or other methods) because its simple…
https://fitzcarraldoblog.wordpress.com/2016/10/17/a-correct-method-of-configuring-samba-for-browsing-smb-shares-in-a-home-network/