Re: Cross-platform way to retrieve the current (Operative system) DNS server IP address in python

2010-04-30 Thread Hans Mulder
joamag wrote: It's not my ip address that I want to discover... I want to discover my default dns server ip address. This ip is stored in an operative system basis. Dos anyone know how to get it ? You asked for a cross-platform solution; there probably isn't one. The code below works on

Re: Cross-platform way to retrieve the current (Operative system) DNS server IP address in python

2010-04-27 Thread joamag
On 24 Abr, 14:50, DarkBlue pict...@gmail.com wrote: On Apr 22, 4:55 pm, joamag joa...@gmail.com wrote: Does anybody know a cross platform way to retrieve the default DNS server IP address in python ? Thanks ! João import os,urllib2,re def getIpAddr():         Function for parsing

Re: Cross-platform way to retrieve the current (Operative system) DNS server IP address in python

2010-04-27 Thread Tiago Katcipis
maybe this helps you: http://pypi.python.org/pypi/netifaces/0.3 best regards, Katcipis On Tue, Apr 27, 2010 at 7:49 PM, joamag joa...@gmail.com wrote: On 24 Abr, 14:50, DarkBlue pict...@gmail.com wrote: On Apr 22, 4:55 pm, joamag joa...@gmail.com wrote: Does anybody know a cross

Re: Cross-platform way to retrieve the current (Operative system) DNS server IP address in python

2010-04-24 Thread DarkBlue
On Apr 22, 4:55 pm, joamag joa...@gmail.com wrote: Does anybody know a cross platform way to retrieve the default DNS server IP address in python ? Thanks ! João import os,urllib2,re def getIpAddr(): Function for parsing external ip adress by pinging dyndns.com

Cross-platform way to retrieve the current (Operative system) DNS server IP address in python

2010-04-22 Thread joamag
Does anybody know a cross platform way to retrieve the default DNS server IP address in python ? Thanks ! João -- http://mail.python.org/mailman/listinfo/python-list