Sorry for mistake. As I said I am the beginner, am still learning. I am using windows 7 machine. For my tests to run I need to set the machine's DNS IP address manually. For example if my DNS server IP is 192.168.1.20 then I would go to Control Panel\Network and Internet\Network Connections, open the properties of Local LAN connection, open TCP/IP properties and set the DNS IP manually.
I want to do the same using script. Hope I am clear this time. Thanks, Aravind On Sun, Apr 7, 2013 at 11:57 AM, Gora Mohanty <g...@mimirtech.com> wrote: > On 7 April 2013 11:44, Aravind Kamble <arvind.kam...@gmail.com> wrote: > > Hi All, > > > > I am a beginner in Pyhton scripting. I want to know how can I set a > > predefined IP address as DNS IP of a machine in my Python script. > > You provide nowhere near enough details for anyone to help > you. To start with, what operating system? It is also not clear > what you want to do. Do you want to set the DNS nameserver > for the current machine that the DNS server is running on? > If so, you are very likely to need administrative access on the OS. > > Regards, > Gora > _______________________________________________ > BangPypers mailing list > BangPypers@python.org > http://mail.python.org/mailman/listinfo/bangpypers > _______________________________________________ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers