Dynamic (ISP) and Static (my own) DNS configuration in Windows
Hi, I would like to be able to do something like 'prepending domain-name-servers to resolv.conf' file which is easily done in Linux. My problem is: sometimes I have a virtual machine running a DNS and a Web Server which I use to test my developed applications. So I'm able to access www.myapp1.org, www.myapp2.org, dev.myapp3.org, dev.myapp4.net, ... and when I want to put them online I use a free DNS service and configure my own DNS to respond to something like ironforge.dyndns-at-home.com:8000, that is delegated to www.myapp2.org, or any other domain I use locally. What I would like to do is to be able to keep using my ISP DNSs alongside my own DNS (which is rarely online), like I do in Linux already. I can't rely on my own DNS for caching and delegating to ISP DNSs, so configuring only my own DNS in network connection properties is not a valid solution. In the linux machines I achieve that by prepending 192.168.1.4 (static) to resolv.conf file. This way linux machines continue using DHCP and dynamic DNS as usual, but they also use my own DNS if it is online (automatically, no manual configuration). I wonder if I can achieve the same results in Windows too. Like prepending my DNS IP to hosts file or even a different solution.
March 21st, 2011 9:18pm

Found a workaround for the problem. On connection tcp/ip v4 properties, set static DNSs to: default: 192.168.1.4 (my local DNS) alternative: 192.168.1.1 (router) This way it first tries in the local DNS, then moves on to ISP DNS (works with WRT54G router, dunno if it is standard behavior). So both problems solved: decoupling from my local DNS (statically set to 192.168.1.4 as standard DNS); and still getting new DNS IPs because the router handles that (dynamically handled by my router at 192.168.1.1). Still, it would be better if I could do this all through the router itself, so that I don't need to go into all machines and configure it manually, but this is subject to another forum. Hope this can be useful to someone else.
Free Windows Admin Tool Kit Click here and download it now
March 21st, 2011 10:17pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics