How to make old (Windows) hostname resolve to new (Linux) server?

We currently have a basic Windows PC running a Flexnet network license server. We want to move the license server to a Hyper-V Virtual Machine (VM) on a more-suitable machine (one with RAID and redundant power supplies). The VM is running CentOS Linux. There is NO Active Directory involved.

The (Windows) client machines connect to the old license server using its hostname (let's call it 'lmserver'). Currently the Linux VM is called 'LS2' (will be changed to 'lmserver' when I have everything configured) but only responds to ping if I use its IP address ('ping LS2' does not work).

The web searches I have done so far suggested the following options for making hostname resolution work with Linux, but I'm not sure which would be appropriate for this case.

  • Avahi
  • SAMBA (or possibly only part of it, perhaps Winbind)
  • Link-Local Multicast Name Resolution (LLMNR)
  • DNS
  • Hosts file modification on all client computers

Of these, the only one I feel I understand well enough to know it would do want I want is to add a name -> IP address mapping to the hosts file on each PC. However, there are rather a lot of PCs and I would rather make one central modification (otherwise I could reconfigure each PC to use the IP address to connect to the license server instead of the hostname). The examples I have seen with Avahi suggest that a .local suffix has to be added to the hostname, which would rule that out as an option as well.

Most of the comments I have read appear to recommend avoiding anything based on NetBIOS/WINS (which I think SAMBA/Winbind are) in favour of DNS. However in my experience DNS requires a domain (eg. the server would have to be lmserver.mycompany.com instead of just lmserver which again would force me to reconfigure every PC). We do have a local DNS server (on our Synology NAS) which keeps the NAS's DNS address (lets call it fserver.mycompany.com) working for VPN clients (the VPN server is also on the Synology currently, which means VPN clients are given IP addresses in a different subnet to computers on-site but we hope to move the VPN server (probably to a new router) in future too).

So, what do I need to do to get our PCs to obtain their software license from the new (VM) license server? If I should use SAMBA, do I need all of it and if not which part(s) should I install?

1
задан 24 October 2018 в 18:39
2 ответа

Вам просто нужно запустить DNS-сервер. Это позволит вам перенаправить все запросы, адресованные старому Windows-серверу, на новый Linux-сервер.

Я бы порекомендовал для запуска DNSmasq. Настройка довольно проста.

Инструкции по установке: https://linuxscriptshub.com/install-dnsmasq-centos-6-9/

Общая справка по настройке: https://wiki.archlinux.org/index.php/dnsmasq#Configuration

Настройка перенаправления: https://askubuntu.com/questions/53523/how-to-redirect-a-url-to-a-custom-ip-address

0
ответ дан 4 December 2019 в 03:36

FLEXnet-лицензии генерируются с MAC-адресом серверного адаптера внутри файла .lic обычно. Об этом не пишут в онлайне, но это может заблокировать настройку, которую вы хотите достигнуть.

Поэтому вам нужно больше, чем имя хоста, чтобы соответствовать, оно должно совпадать с MAC-адресом.

Если у вас все еще есть поддержка этих лицензий, то обычно их легко восстановить (если мы говорим об ACad, например)

Внутри ВМ linux вы можете выдать это, чтобы проверить, правильно ли установлено имя хоста FLEXNet;

./lmutil lmhostid -hostname

lmhostid - Copyright (c) 1989-2015 Flexera Software LLC. Все права Зарезервировано.

Идентификатором FlexNet Host ID этой машины является "HOSTNAME= mycomputerHostname"

Вам нужен SAMBA для установки имени хоста, но больше всего вам нужен FLEXNet deamon для работы и правильной настройки DNS для вашего клиентского компьютера, чтобы найти сервер FLEXNet по имени хоста.

Могу я спросить, почему вы не делаете P2V этой машины Windows ? поскольку управление сервером Windows FlexNet обычно проще, чем на linux, по этой причине я бы сделал P2V и скопировал MAC адрес ПК на хост, после чего ваш сервер был бы готов без изменений.

.
0
ответ дан 4 December 2019 в 03:36

Теги

Похожие вопросы