Форум русскоязычного сообщества Ubuntu


Получить помощь и пообщаться с другими пользователями Ubuntu можно
на irc канале #ubuntu-ru в сети Freenode
и в Jabber конференции ubuntu@conference.jabber.ru

Автор Тема: Разрешение netBiose имен [РЕШЕНО]  (Прочитано 1451 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн Александр_Тверь

  • Автор темы
  • Участник
  • *
  • Сообщений: 130
    • Просмотр профиля
Разрешение netBiose имен [РЕШЕНО]
« : 16 Марта 2011, 09:05:45 »
Добрый день!
собственно проблема:

$ping t-server
ping: unknown host t-server

$findsmb

                                *=DMB
                                +=LMB
IP ADDR         NETBIOS NAME     WORKGROUP/OS/VERSION
---------------------------------------------------------------------
10.1.1.2        T-SERVER      [DOMAIN] [Windows Server 2003 R2 Service Pack 2] [Windows Server 2003 R2 5.2]


через smbclient никаких проблем обращения по имени к машинам нет (заходит на шары, видит все машины), а через ping фигу.

раньше все работало, а тут раз и сломалось :( даже не знаю куда смотреть.

Как происходит разрешение имен? Что могло поломаться?
p.s. ubuntu 10.04

Пользователь решил продолжить мысль 16 Марта 2011, 09:27:22:
Всем спасибо за внимание! Разобрался :)
http://www.gkspk.com/view/techie/ping-windows-pc-using-netbios-name/
Цитировать
In a small windows network you can contact (i.e. ping etc.) one windows computer from another using their name even if there isn’t a DNS server in the network. However, from a computer running linux, you would need to know the ip address of the computer you want to contact. The “computer name” the windows computers use in this instance are their netbios names which other computers discover using WINS resolution. Linux computers are usually not set up to use this.

The most common solution is to just add just add the PCs to your hosts file. But that would become tiresome if you have more than a couple of computers, and would not work at all if your computers use dynamic IPs.

The proper solution is much simpler and it works with dynamic IPs. You simply add a wins option to the hosts list of your /etc/nsswitch.conf file. This would make your linux computer aware of the netbios names of all computers on the network.

For example it could look similar to the following:

hosts: files dns mdns4 wins

After you have made this change, you can simply start contacting the windows PCs using their name rather than IP.

не знаю какая программа поменяла конфиги, но  "hosts: files dns mdns4 wins" - исправило ситуацию.
« Последнее редактирование: 16 Марта 2011, 22:29:55 от Александр_Тверь »

 

Страница сгенерирована за 0.017 секунд. Запросов: 20.