OSX $HOSTNAME меняется на iphone.mshome.net?
Терминал OSX Lion, используется для ssh/scp с разными серверами. Иногда хостнейм без видимой причины меняется:
iphone:~ user$ echo $PS1 \h:\W \u\$ iphone:~ user$ hostname MacBookAir.local iphone:~ user$ echo $HOSTNAME iphone.mshome.net
При этом, в других вкладках терминала, на этой же машине, хостнейм остается прежним:
MacBookAir:~ user$ echo $HOSTNAME MacBookAir.local
Как и кто может это делать? Почему только в одной вкладке? Почему именно iphone.mshome.net? Возможно, это связано со сменой точек wi-fi. В гугле ответа не нашел, помогите разобраться.
- Вопрос задан более трёх лет назад
- 2962 просмотра
Mshome net что это
Друзья, прошу помочь разобраться в совершенно непонятной для меня ситуации. Как-то задавался тут вопросом о наличии адекватного ПО, которое строит карту сети, мониторит её, позволяет применять утилиты и т.д. В итоге всё это время пользовался программой The Dude от MikroTik’а, но те забросили её реализацию (серверную часть) под Венду (а всем машине на ней). В итоге решил попробовать Algorius Net Viewer. При формировании карты сети (сканировании) в качестве инструментов предполагается следующее:
— ARP-ping;
— ICMP-ping;
— DNS;
— NetBIOS;
— SNMP;
— TCP.
Для начала я решил просканировать сеть чисто по DNS-записям и обнаружил, что одна из машин по итогу сканирования возвращает какое-то странное имя: ws19.mshome.net вместо стандартного суффикса ws19.thedomain. И тут я начал копать в этом направлении. Для начала стало любопытно, каким таким образом сканер проверяет DNS, но, увы, реализация зашита в anv_dns.dll, поэтому посмотреть что там и как происходит — нельзя.
Как известно, глянуть DNS-имя можно через nslookup:
Скрытый текст
>nslookup 192.168.32.119 Сервер: 91-186-205-113.site.ru Address: 91.186.205.113 Имя: ws19.thedomain Address: 192.168.32.119
Всё в порядке – ws19.thedomain.
Ещё DNS можно глянуть через ping -a – вроде как сначала резволвинг происходит по WINS, а потом по DNS (верно же?):
Скрытый текст
>ping -a 192.168.32.119 Обмен пакетами с ws19.mshome.net [192.168.32.119] с 32 байтами данных:
Ну и вот тут по DNS вылезает это непонятное ws19.mshome.net.
В общем, вопрос: как разобраться где зарыта собака с этим «mshome.net»?
По Интернету начитал следующее:
MShome.net is normal. It happens when you configure Internet Connection Share (ICS) on a computer. The ICS host requires a DNS name. If the computer has not been assigned a DNS domain name then MShome.net is automatically applied to the host computer. |
Действительно, на машине активен ICS, но дело в том, что DNS-имя машине выдается (ws19.thedomain), с чего вдруг присасывается этот «mshome.net»?
Пруф:
What is mshome.net?
sometimes I keep getting wrong dns suffix which is mshome.net and wrong DNS server which is 192.168.137.1. The solution that ive been doing is releasing ip and then renew it.
Guys i appriciate your help.
Popular Topics in General Networking
4 Replies
Sounds like a problem with your DHCP server, or you may have a rouge DHCP server configured accidentally. but more detail would be helpful.
Was this post helpful? thumb_up thumb_down
Dashrender
This person is a verified professional.
Verify your account to enable IT peers to see that you are a professional.
You might have a computer on the network with ICS enabled. That machine would be providing IP addresses and a domain name as you’ve seen. Check your computers to see if Internet Connection Sharing is enabled.
Was this post helpful? thumb_up thumb_down
We disbaled the ICS in the policy. but there are computers in the network that is not joined iin the AD. So if it occurs again. Its them :). Thanks guys.
Was this post helpful? thumb_up thumb_down
New contributor pimiento
MShome.net is normal. I happens when you configure Internet Connection Share (ICS) on a computer. The ICS host requires a DNS name. If the computer has not been assigned a DNS domain name then MShome.net is automatically applied to the host computer.
2 found this helpful thumb_up thumb_down
This topic has been locked by an administrator and is no longer open for commenting.
To continue this discussion, please ask a new question.
Mshome net что это
отключите скрытие расширений файлов, и вы увидите, что второй hosts файл имеет расширение .ics (файл каледаря). Как он там оказался — хз. если не нужен — удалите
Vovastone местный житель 24.07.16 15:23
NEW 24.07.16 15:23
в ответ Mascha57 24.07.16 15:08, Последний раз изменено 24.07.16 15:23 (Vovastone)
Его вообще не должно быть в списке там
C:\Windows\System32\drivers\etc
Валидол коренной житель 24.07.16 17:00
NEW 24.07.16 17:00
в ответ Mascha57 24.07.16 15:08, Последний раз изменено 24.07.16 17:01 (Валидол)
включите показ расширений, так как показано выше, и увидите что второй называется не hosts, а hosts.ics
это системный файл, удалять его не нужно
Corvus_Black коренной житель 24.07.16 17:32
NEW 24.07.16 17:32
в ответ Mascha57 24.07.16 15:08
можешь спокойно удалить — в файле всё равно всё закоментировано, т.е он не отвечает на запросы. СКорей всего кто-то когда-то пробовал настроить под mshome.net ДНС и забыл/отключил. Если уж совсем параноя замучила, то можете удалить все файлы в папке — после перезапуска компьютера они сами собой возникнут и всё будет в порядке. 🙂
Валидол коренной житель 24.07.16 17:52
NEW 24.07.16 17:52
в ответ Corvus_Black 24.07.16 17:32
>>СКорей всего кто-то когда-то пробовал настроить под mshome.net ДНС и забыл/отключил
похоже он садится вместе с десяткой
Vovastone местный житель 24.07.16 18:06
24.07.16 18:06
в ответ Mascha57 24.07.16 15:08
Точнее кто то пытался подключить Ваш компьютер к Windows 2008R2 server, одним словом бандит это.
В системе нет такого файла
Выкинь его и забудь
serger коренной житель 24.07.16 21:30
NEW 24.07.16 21:30
в ответ Mascha57 24.07.16 15:08, Последний раз изменено 24.07.16 21:32 (serger)
По этому пути увидела второй hosts C:\Windows\System32\drivers\etc
Увидела. А что собственно случилось? Винда загнулась? А если бы не увидела? Вопросов бы не было? Там ещё много чего можно увидеть. Не надо лезть куда не следует.
Нет «десятки» — нет проблем. ))
Mascha57 завсегдатай 24.07.16 22:22
NEW 24.07.16 22:22
в ответ serger 24.07.16 21:30
serger
Не надо лезть куда не следует.
Я бы не полезла куда не следует.
Но сегодня на рабочем столе увидела текстовый файл, меня это насторожило. Содержание текста смотрите внизу.
В реестере прогнала на поиск этого файла под которым он был сохранен R@1n
Ничего не нашла.
Антивирус Аваст ничего не нашел.
Сейчас я этот файл удалила в мусор. Этого достаточно?
10-ка у меня официальная
I do NOT release these programs so that you «the End-user» can benefit from it in terms of using software or any other of these releases without buying the required licenses. R@1n, however, believes that everyone should have the option to test and backup their program and be able to run it without any problems.
Further, I do NOT in any way condone the spreading of this program, in other words I do NOT spread the releases to any websites, P2P networks or any other public available location. I urge that this releases should not be spread like that at all.
I R@1n has nothing to do with the distribution of these program, it is all done by third parties. As such, and according to the laws where the individuals of i reside, it is not my responsibility what others decides to do with these releases. However, let it be said quite clearly:
«I DO NOT in any way condone the selling or redistribution of these program, this was NEVER my intention.»
R@1n does NOT take any responsibility of computer-loss or any data-errors that may occur from using these program. Keep in mind that you are using a third party solution to something we did not develop in the first place.
Do note that the usage of these program are legal in most countries outside the United States, IF and ONLY IF you own a full copy of the program — then you may use these program for backup purposes, and only that. It remains to be seen how affected you are of the End User License Agreements (EULAs). They can’t supersede domestic laws, remember that.
According to the «DMCA ACT» in the Unites States, you have no rights to circumvent a copy protection. Beware, they will punish you harder than if you stole the shrinkwrapped software in a mall. Though R@1n’s base of operation does not reside in the Unites States, and thus I am NOT bound to the US legislations like:
* No Electronic Theft Act
* Digital Millenium Copyright Act
* The Patriot Act
* «other US legislations»
You should ALWAYS buy the software that you do use.
This Software NOT encourage piracy, which is an act UNLAWFUL, as well as being a lack of respect towards those who dedicate time and effort to the development of applications.
I do not assume liability for incorrect use, that is NOT dedicated to a vision for informational or educational study. With this I can tell you that I dedicate myself to NOT piracy in any way, I care only to share and study all forms of system and evasion.
I disagree, in any form, software piracy and are NOT responsible for a eventale inappropriate or illegal use.
By using these program you automatically agree to the written agreement above, and thus the responsibility regarding whatever you are affected by any EULAs is with YOU and YOU only.
Thanks to: QAD, xinso, Hotbird64, nonosense, Nosferati87, Mikmik38, Cynecx, heldigard, Daz, Alphawaves, Nummer for the various source codes and the work!
Thanks to all the people who have supported the development in all its forms:
Thanks for the translation:
— azroach (English)
— Behdad Boujari (ÙØ§Ø±Ø³ÛŒ)
— roonney (Português)
— CraftByte (SlovenÅ¡Äina)
— Ripdevil (Deutsch)
— vanhoivo (Tiếng Việt)
— BL3D1 (Shqiptar)
— alnaloty (العربية)
— Phobos (PуÑÑкий)
— jordan4x (Français)
— WebMan (Română)
— zihan (ä¸å›½)
— Yaron.S (עברית)
WHERE TO FIND ME:
— on Twitter: @RainReLoader