Apple Intelligence is now available on iPhone, iPad, and Mac!

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

High Sierra - Can't change NETBIOS name

Hi,


I have a problem in my LAN. My MacBookAir has these correct settings:


scutil --get ComputerName

MacBook Air di Fabio


scutil --get HostName

Air-di-Fabio


scutil --get LocalHostName

MacBook-Air-di-Fabio


But in the Advanced Network Preferences, I have a NetBios name of: Saltydog-A3 (which is the hostname of my smartphone on the LAN).

I can't change that NetBios Name as it appears stuck. Every time I try to change it, it reverts back to the smartphone name.


If I connect with ssh to my media center, I always get this message:


Last login: Sat Oct 21 11:18:49 2017 from saltydog-a3.station


My router, instead, lists the correct HostName of the LAN.


Any help?


Thanks

MacBook Air, macOS High Sierra (10.13)

Posted on Oct 21, 2017 2:58 AM

Reply
Question marked as Top-ranking reply

Posted on Oct 24, 2017 6:39 AM

fabio56 wrote:


What difference between isolating the Mac from the network or switching off the VSR? Maybe you meant to make a reboot to VSR to test it? I'll do later, as there are other users connected.


You can reboot if you prefer.


I have connected to a VPN (with Tunnelblick) to join a remote server. Once connected I had a look at the NetBios Name and.. voilà it was "MAC-DI-FABIO". Disconnecting from the VPN, the name was back to Saltydog-A3


You now understand why in my opinion is the Vodafone station the cause. Not because it is broken. Maybe the DNS service has gone crazy and a reboot will bring all services in order.

28 replies
Question marked as Top-ranking reply

Oct 24, 2017 6:39 AM in response to fabio56

fabio56 wrote:


What difference between isolating the Mac from the network or switching off the VSR? Maybe you meant to make a reboot to VSR to test it? I'll do later, as there are other users connected.


You can reboot if you prefer.


I have connected to a VPN (with Tunnelblick) to join a remote server. Once connected I had a look at the NetBios Name and.. voilà it was "MAC-DI-FABIO". Disconnecting from the VPN, the name was back to Saltydog-A3


You now understand why in my opinion is the Vodafone station the cause. Not because it is broken. Maybe the DNS service has gone crazy and a reboot will bring all services in order.

Oct 22, 2017 1:59 AM in response to fabio56

fabio56 wrote:


If I connect with ssh to my media center, I always get this message:


Last login: Sat Oct 21 11:18:49 2017 from saltydog-a3.station


My router, instead, lists the correct HostName of the LAN.



ssh doesn't care about NetBIOS name. So the above line means that the host, named saltydog-a3.station, made the last connection on the date/time printed.


.station is the suffix, DNS server add to the host name. I guess is a Vodafone station of some sort.


What this command gives in return


host -a MacBookAirIP


change MacBookAirIP with the actual IP your computer has.

Oct 22, 2017 7:26 AM in response to Alberto Ravasio

No. Saltydog-A3 is my smartphone and I have NEVER connected the smartphone to the media-center. Last connection was from my Mac, so ssh reports the wrong computer name (it is the NetBios Name in the Mac, which I am trying to change).


Running host -a 192.168.1.3 gives me 2 different names, but only the second is the correct one:


;; ANSWER SECTION:

3.1.168.192.in-addr.arpa. 3600 IN PTR Saltydog-A3.station.

3.1.168.192.in-addr.arpa. 3600 IN PTR Air-di-Fabio.station.

Oct 22, 2017 8:54 AM in response to fabio56

Your router is a Vodafone station isn't it?


I will try this. Disconnect the computer from the LAN, turning off Wi-Fi and or disconnect Ethernet cable if you have an Ethernet adapter.


Change the NetBIOS name in System Preferences. Be sure to click the OK (in WINS tab) and Apply (in Network). Click on the button Show All in System Preferences.


Execute


plutil -p /Library/Preferences/SystemConfiguration/com.apple.smb.server.plist

to confirm the name has changed, that is, the field

"NetBIOSName" => "newname"


got the correct name. Reconnect the computer to the LAN. If the name changes back to Saltydog-A3 maybe the is the Vodafone DNS that is playing dirty.

Oct 22, 2017 9:11 AM in response to Alberto Ravasio

Hi Alberto. Yes, it is a Vodafone Station Revolution, but it isn't playing dirty. That's why:


I did as you suggested. Disconnected the Mac from every network, opened System Preferences (a new random NetBios name was displaying) and changed the NetBios Name. But upon saving, the new name was not persistent and it wasn't saving. Every time I opened the WINS tab, it was showing the random name.

Upon re-connecting the Network, "Saltydog-A3' was back in the NetBios name field!

Oct 22, 2017 2:03 PM in response to fabio56

I'm not sure if this will work as I tried it on my Mac and it didn't.

Going back many OS versions, there was a bug that prevented the changes from sticking. I'm not sure if it was the NETBIOS name or WINS or Workgroup, but, if you make a copy of the network location and use that location, the changes made to it will stick.

In the Network system prefs, select Edit Locations from the Location popup menu. Use the Gear menu to Duplicate "Automatic" or whatever location you are currently using.

Switch to that network, then make the changes you need.


You may have to search very far back in these forums to find some tricks that may work.

Oct 23, 2017 10:09 AM in response to fabio56

I'm still using macOS Sierra, but yesterday evening I had for a couple of hours my nephew's MacBook Air. About a week ago I installed on that computer High Sierra, the October the 12th release not the very first one. I made some test changing the NetBIOS name and on the contrary to what happen in Sierra the only way to change the NetBIOS name was to change the computer name in System Preference -> Sharing.

Oct 24, 2017 6:39 AM in response to fabio56

Even though it is possible to set computer name in Terminal it is not necessary. You can easily do it in System Preferences.


Yesterday I did some more tests. What I wrote about my nephew's Mac (High Sierra) is also valid for Sierra. So nothing has changed between 10.12 and 10.13.

And I'm gonna tell you why.

Naming convention for NetBIOS name is that the name can be at most 16 alphanumeric characters long. User can assign 15 characters. The 16th is reserved.


Read here for reference.


In macOS the computer name can be longer. What you choose there, is also assigned to NetBIOS name. You can assign a different name if you want, from within WINS, but you must follow NetBIOS naming convention. If computer name is less then 15 characters, NetBIOS name will be the same as computer name. Otherwise it'll take a "pseudo" random name. I quoted pseudo because it is not random at all. In my testing, for a very long computer name, the NetBIOS name was set to MACBOOAIR-1B52. The first ten characters are obvious, the 11th character is always a dash and the remaining 4 are the last 2 hexadecimal figures of the network adapter MAC address.


Now you have some oddities. That's why I told you a few messages earlier that Vodafone station is playing dirty.


Now to confirm that my theory about VF station is true, please turn it off until your computer name settings are in place.


Assign to computer name a 15 chars or less, name. I wouldn't use spaces. I'll stick to letters and numbers only. But it's up to you.

Check if NetBIOS name has changed accordingly. If not, choose another name of your choice but lesser than 15 chars. Press enter to confirm.

Click OK then Applica, then close System Preferences.

Open System Prefereces and check again that NetBIOS name hasn't changed.

If all is fine. Turn back on Vodafone station.


Let me know

Oct 24, 2017 5:06 AM in response to Alberto Ravasio

What difference between isolating the Mac from the network or switching off the VSR? Maybe you meant to make a reboot to VSR to test it? I'll do later, as there are other users connected.


Meanwhile, just to add more weirdness: I have connected to a VPN (with Tunnelblick) to join a remote server. Once connected I had a look at the NetBios Name and.. voilà it was "MAC-DI-FABIO". Disconnecting from the VPN, the name was back to Saltydog-A3

Oct 24, 2017 6:38 AM in response to Alberto Ravasio

I have rebooted the router (VSR)...AND NOW IT IS FIXED!!


I really appreciate your kind assistance in this weird troubleshooting. And (to add some fog) the issue was coincident with the upgrade to High Sierra, even if the 2 actions are not related.


Thank you again! I really want to find another router, but Vodafone claims there is no equivalent (liars). If you want to talk a little about this, you can reach me at: fabio AT marzocca DOT net


Grazie infinite!

High Sierra - Can't change NETBIOS name

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.