for Win users with problem to find NAS by NAME

Currently reading
for Win users with problem to find NAS by NAME

2,486
840
NAS
Synology, TrueNAS
Operating system
  1. Linux
  2. Windows
when you are still having trouble setting up your Win OS based PC and can't map or resolve your NAS via NASNAME and you want to use NASNAME in the mapping only, here is a small script for your quick action:

Bash:
@echo off
SET NEWLINE=^& echo.
FIND /C /I "servername" %WINDIR%\system32\drivers\etc\hosts
IF %ERRORLEVEL% NEQ 0 ECHO %NEWLINE%^NAS.IP.ADDRESS NASNAME>>%WINDIR%\System32\drivers\etc\hosts

you need just edit this script in last line and replace part "NAS.IP.ADDRESS NASNAME" like this: 192.168.100.10 MYNAS
then save the script to somewhere e.g. C:\script.bat
and RUN it as ADMINISTRATOR
restart your computer and enjoy!
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

It's unclear to me what has been done. Did you download the DSM file for your unit, and apply it manually...
Replies
5
Views
1,293
Replies
2
Views
1,389

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Trending threads

Back
Top