@rem 新增DNS @prompt CMD$G @echo. @echo 備份DNS 設定 c:\MyIP_backup.txt @echo -------------------------------------------------------- @if exist "c:\MyIP_backup_pmf.txt" echo DNS 設定備份檔已存在, c:\MyIP_backup_pmf.txt @if not exist "c:\MyIP_backup_pmf.txt" netsh interface ip dump > "c:\MyIP_backup_pmf.txt" @echo. @echo. @echo. @echo -------------------------------------------------------- @echo 新增DNS Server設定 : Hinet Primary DNS netsh interface ip add dns 區域連線 168.95.1.1 1 netsh interface ip add dns "Local Area Connection" 168.95.1.1 1 @echo. @echo. @echo -------------------------------------------------------- @echo 新增DNS Server設定 : Hinet Secondary DNS netsh interface ip add dns "區域連線" 168.95.192.1 2 netsh interface ip add dns "Local Area Connection" 168.95.192.1 2 @echo. @echo 顯示目前DNS 設定 @echo -------------------------------------------------------- netsh interface ip show dns @echo -------------------------------------------------------- @echo. @echo 清除及重設DNS快取 ipconfig/flushdns ipconfig /registerdns @echo. @echo 檢查是否解出MONEY888主機IP @echo -------------------------------------------------------- ping www.money888.com.tw ping refinter.money888.com.tw :END @echo. @echo. @pause