uncommon network settings

soccnut

New Member
Messages
5
Hi,

I have a few problems related to uncommon network configuration.

Firstly, under network connections > adapter properties > ipv4 properties, I can choose to obtain DNS server automatically or specify my own DNS server. I would like to be able to choose different DNS servers based on which connection I am currently connected to. Is it possible? I believe this should be a common practice in corporate environment with local DNS servers serving internal zones. When employee brings back his notebook and connects to his home network, he should use a public DNS server.

I am currently using corporate DNS server as primary NS and public as secondary. However, I do experience 404 occasionally when browsing intranet because secondary NS was used to resolve. My corporate server is able to forward requests outside of our zone so I am looking to put both primary and secondary NS as my corporate NS.

Secondly, is it possible to specify the BSSID or mac address of the access point I wish to connect to? This is because there are multiple access points broadcasting the same SSID and I am automatically connected to the one with strongest signal. Im omitting the details because it is rather complicated but I do need to select a particular access point and there is no way around it.

Is windows 8 able to do so, if not are there are 3rd party software which allows such settings?

Thanks in advance.
 

My Computer

System One

  • OS
    Windows 8

My Computer

System One

  • OS
    Windows 10 Pro X64
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Lenovo IdeaCenter K450
    CPU
    Intel Quad Core i7-4770 @ 3.4Ghz
    Motherboard
    Lenovo
    Memory
    16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
    Graphics Card(s)
    Intel Integrated HD Graphics
    Sound Card
    Realtek HD Audio
    Monitor(s) Displays
    HP h2207
    Screen Resolution
    1680x1050@59Hz
    Hard Drives
    250GB Samsung EVO SATA-3 SSD;
    2TB Seagate ST2000DM001 SATA-2;
    1.5TB Seagate ST3150041AS SATA
    PSU
    500W
    Keyboard
    Wired USB
    Mouse
    Wired USB
    Internet Speed
    3GB Up, 30GB Down
    Browser
    SeaMonkey
    Antivirus
    Windows Defender; MBAM Pro
    Other Info
    UEFI/GPT
    PLDS DVD-RW DH16AERSH
My apologies. I (obviously) did not read the first sentence or two of that article. I know you could do this in XP and thought you would be able to do it in Win 7/8 but I just came across an article that said MS removed this ability in Vista and up.

What about two batch files to change the DNS? Change IP address and DNS servers using the Command Prompt - Help Desk Geek
 

My Computer

System One

  • OS
    Windows 10 Pro X64
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Lenovo IdeaCenter K450
    CPU
    Intel Quad Core i7-4770 @ 3.4Ghz
    Motherboard
    Lenovo
    Memory
    16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
    Graphics Card(s)
    Intel Integrated HD Graphics
    Sound Card
    Realtek HD Audio
    Monitor(s) Displays
    HP h2207
    Screen Resolution
    1680x1050@59Hz
    Hard Drives
    250GB Samsung EVO SATA-3 SSD;
    2TB Seagate ST2000DM001 SATA-2;
    1.5TB Seagate ST3150041AS SATA
    PSU
    500W
    Keyboard
    Wired USB
    Mouse
    Wired USB
    Internet Speed
    3GB Up, 30GB Down
    Browser
    SeaMonkey
    Antivirus
    Windows Defender; MBAM Pro
    Other Info
    UEFI/GPT
    PLDS DVD-RW DH16AERSH
Hi,

Thanks a lot for your help. I will implement a script to read from ipconfig every few seconds and use netsh above to change DNS information.

For any users in future who may be looking for a solution to a similar problem, there is a GUI utility out there
https://code.google.com/p/netprofiles/ if you are uncomfortable working in cmd line. Unfortunately, you have to manually switch profiles when you change the connection.
 

My Computer

System One

  • OS
    Windows 8
Seems like that would be a lot of overhead. Why not just a batch file you can launch from the desktop whenever you change locations that will set the IP address?
 

My Computer

System One

  • OS
    Windows 10 Pro X64
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Lenovo IdeaCenter K450
    CPU
    Intel Quad Core i7-4770 @ 3.4Ghz
    Motherboard
    Lenovo
    Memory
    16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
    Graphics Card(s)
    Intel Integrated HD Graphics
    Sound Card
    Realtek HD Audio
    Monitor(s) Displays
    HP h2207
    Screen Resolution
    1680x1050@59Hz
    Hard Drives
    250GB Samsung EVO SATA-3 SSD;
    2TB Seagate ST2000DM001 SATA-2;
    1.5TB Seagate ST3150041AS SATA
    PSU
    500W
    Keyboard
    Wired USB
    Mouse
    Wired USB
    Internet Speed
    3GB Up, 30GB Down
    Browser
    SeaMonkey
    Antivirus
    Windows Defender; MBAM Pro
    Other Info
    UEFI/GPT
    PLDS DVD-RW DH16AERSH
Personally feel quite a hassle to remember to click it everytime. My bad, the script will not be checking every few seconds, I will set it to run on boot so it will check only once.
 

My Computer

System One

  • OS
    Windows 8
Ah, much better solution.

Would you post the script when done?
 

My Computer

System One

  • OS
    Windows 10 Pro X64
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Lenovo IdeaCenter K450
    CPU
    Intel Quad Core i7-4770 @ 3.4Ghz
    Motherboard
    Lenovo
    Memory
    16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
    Graphics Card(s)
    Intel Integrated HD Graphics
    Sound Card
    Realtek HD Audio
    Monitor(s) Displays
    HP h2207
    Screen Resolution
    1680x1050@59Hz
    Hard Drives
    250GB Samsung EVO SATA-3 SSD;
    2TB Seagate ST2000DM001 SATA-2;
    1.5TB Seagate ST3150041AS SATA
    PSU
    500W
    Keyboard
    Wired USB
    Mouse
    Wired USB
    Internet Speed
    3GB Up, 30GB Down
    Browser
    SeaMonkey
    Antivirus
    Windows Defender; MBAM Pro
    Other Info
    UEFI/GPT
    PLDS DVD-RW DH16AERSH
You can also bind multiple DNS servers, gateways, and IP settings to a single NIC by using the Advanced TCP/IP settings. Just go to IPv4 properties then click the Advanced button which gets you to the Advanced TCP/IP settings.
 

Attachments

  • Advanced TCPIP settings.PNG
    Advanced TCPIP settings.PNG
    24 KB · Views: 107

My Computer

System One

  • OS
    Windows 8.1 Pro WMC
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Home built
    CPU
    Q9650 @ 4.05 GHz
    Motherboard
    Gforce 780i SLI FTW
    Memory
    8GB Gskill DDR2 1200Mhz
    Graphics Card(s)
    GTX-480
    Sound Card
    Asus D2 Xonar
    Monitor(s) Displays
    HannsG
    Screen Resolution
    1680x1050
    Hard Drives
    Gskill 120GB SSD
    PSU
    Thermal Take 1000watts
    Case
    Thermal Take Xtreme
    Cooling
    9 fans air cooled
    Keyboard
    G15 logitech
    Mouse
    G9 logitech
    Internet Speed
    50mbps
Simple powershell script here.

Code:
$ip = Get-WmiObject -Class Win32_NetworkAdapterConfiguration -Filter IPEnabled=TRUE 
if ($ip.IPAddress -eq "192.168.1.100") //this IP is assigned by my home router.
{
	netsh interface ip set dns “Wi-Fi” static 8.8.8.8//set to google public DNS
}
else
{
	netsh interface ip set dns “Wi-Fi” static 192.168.1.252//set to company DNS server
}
 

My Computer

System One

  • OS
    Windows 8
Back
Top