Noted with thanks. I will contact the script authors.
On 2020-08-17 07:16, Cameron Simpson wrote:
On 16Aug2020 17:41, Turritopsis Dohrnii Teo En Ming
wrote:
Subject: I discovered a bug in the no-ip dynamic dns free hostname
auto renewal/confirmation script written by loblab
The best thing
On 16Aug2020 17:41, Turritopsis Dohrnii Teo En Ming
wrote:
>Subject: I discovered a bug in the no-ip dynamic dns free hostname
>auto renewal/confirmation script written by loblab
The best thing to do here is to submit this as an issue here:
https://github.com/loblab/noip-renew/
Subject: I discovered a bug in the no-ip dynamic dns free hostname auto
renewal/confirmation script written by loblab
Good day from Singapore,
Programming code troubleshooting person: Mr. Turritopsis Dohrnii Teo En
Ming (Targeted Individual)
Country: Singapore
Date: 15 to 16 August 2020
docs say, turning the hostname into an IP address and
working with that would be incorrect.
Say we have a server, 'fred.weasley.example.com', which is also known as
'www.example.com'. Its reverse DNS pointer is
'fred.weasley.example.com'. Now, if we have 'e
On 12/09/18 15:29, Florian Bergmann wrote:
Hello,
While I was debugging some salt issues I dug into the python code and found a
piece of code in the `socket.py` module that surprised my a bit:
In the `getfqdn` function the `gethostbyaddr` name function is being called with
a `hostname` instead
Hello,
While I was debugging some salt issues I dug into the python code and found a
piece of code in the `socket.py` module that surprised my a bit:
In the `getfqdn` function the `gethostbyaddr` name function is being called with
a `hostname` instead of an `ipaddress`:
```python
def getfqdn
On Tue, Sep 3, 2013 at 3:52 AM, wrote:
> To be honest, knowing nothing about DNS configuration, I don't even know if
> adding the entry to /etc/hosts is the "proper" fix or if the issue should be
> fixed somewhere else (or perhaps "didn't know", as you seem to imply that
> that is not the corr
On Monday, September 2, 2013 5:45:26 AM UTC-7, Roy Smith wrote:
> In article <[email protected]>,
> [email protected] wrote:
>
> > As it happens I found a better way: just add the proper entry to /etc/hosts.
>
> You have not found a better way. You still
In article <[email protected]>,
[email protected] wrote:
> As it happens I found a better way: just add the proper entry to /etc/hosts.
You have not found a better way. You still have a network (or more
specifically, DNS) configuration that's broken.
Wh
On Mon, Sep 2, 2013 at 3:28 PM, wrote:
> On Sunday, September 1, 2013 2:03:56 PM UTC-7, Chris Angelico wrote:
>
>> > I tried using netifaces (https://pypi.python.org/pypi/netifaces) which
>> > seems to rely on getifaddrs (according to the doc, I didn't check the
>> > source). Again, it returns
On Sunday, September 1, 2013 2:03:56 PM UTC-7, Chris Angelico wrote:
> > I tried using netifaces (https://pypi.python.org/pypi/netifaces) which
> > seems to rely on getifaddrs (according to the doc, I didn't check the
> > source). Again, it returns nearly instantaneously the correct IP address.
way to call that from core Python. But a Google search for 'python
>> getifaddrs' shows up a few third-party modules that might be of use to
>> you; that'd be a lot quicker and more reliable than trying to look up
>> your own hostname and depending on the results.
>
#x27;python
> getifaddrs' shows up a few third-party modules that might be of use to
> you; that'd be a lot quicker and more reliable than trying to look up
> your own hostname and depending on the results.
>
> ChrisA
I tried using netifaces (https://pypi.python.org/p
On Saturday, August 31, 2013 10:06:43 PM UTC-7, Michael Torrie wrote:
> On 08/31/2013 10:51 PM, [email protected] wrote:
>
> > It is the call to gethostbyname_ex that is very slow. The call to
> > gethostname is quick (and returns the same string as
> > /usr/
issue. The C function
you want to be calling is getifaddrs(), and I don't think there's a
way to call that from core Python. But a Google search for 'python
getifaddrs' shows up a few third-party modules that might be of use to
you; that'd be a lot quicker and more reliable
In article <[email protected]>,
[email protected] wrote:
> It is the call to gethostbyname_ex that is very slow. The call to
> gethostname is quick (and returns the same string as /usr/bin/hostname).
First, please stop posting with Google
On 08/31/2013 10:51 PM, [email protected] wrote:
> It is the call to gethostbyname_ex that is very slow. The call to
> gethostname is quick (and returns the same string as
> /usr/bin/hostname).
What gethostbyname_ex and /usr/bin/hostname do are very different
things. gethostbyname_
It is the call to gethostbyname_ex that is very slow. The call to gethostname
is quick (and returns the same string as /usr/bin/hostname).
On Saturday, August 31, 2013 6:01:00 PM UTC-7, Roy Smith wrote:
> In article ,
>
> [email protected] wrote:
>
>
>
> > Hi,
&
sort of configuration issue which is causing
some DNS query to timeout. The first step, is to figure out which part
is taking so long. Open up a python shell and run:
>>> name = socket.gethostname()
see how long that takes and what it returns. Then, assuming it returns
a s
Hi,
At startup, IPython (qtconsole) calls
"socket.gethostbyname_ex(socket.gethostname())[2]" to find a list of IP
addresses that point to the machine. On a Linux server that I manage this call
is extremely slow (>20s)... which I have trouble understanding as "ip addr
show" seems to give the sa
> >
>
> > > print ("#####")
>
> >
>
> > >
>
> >
>
> > > print ("# Choose from the options below #")
>
> >
>
> > >
>
> >
&
except EnvironmentError as e:
>> print(e)
>> sys.exit(1)
>>
>> print("\nFile {0} exists!".format(filename))
>> print("\nGetting IP addresses for hosts")
>> print("\n")
>> els
> > print ("#\n")
>
> >
>
> >
>
> >
>
> > mchoice = int(raw_input("Please enter your choice> "))
>
> >
>
> > while mchoice !=1 and mchoice !=2:
>
&
(raw_input("Please enter your choice> "))
>
> while mchoice !=1 and mchoice !=2:
>
> print("{0} is not a menu option.".format(mchoice))
>
> mchoice = int(raw_input("Please try again> "))
>
>
>
>
>
> if mchoice
On Wed, Sep 19, 2012 at 6:50 PM, Dan Katorza wrote:
> i know about the while loop , but forgive me i just don't have a clue how to
> use it for this situation.
You've already used one. What you need to do is surround your entire
code with the loop, so that as soon as it gets to the bottom, it go
llo, please enter file name here> ")
if filename.endswith(".txt"):
try:
infile = open(filename)
except EnvironmentError as e:
print(e)
sys.exit(1)
print("\nFile {0} exists!".format(filename))
print("\nGetting IP addresses for hosts"
On Wed, Sep 19, 2012 at 5:41 PM, Dan Katorza wrote:
>
> Hello again,
> I have another question and i hope you will understand me..
> Is there any option where you can set the program to go back to lets say the
> top of the code?
> I mean if the program finished the operation and i want to stay in
t; --
>
> >
>
> > #!/usr/bin/env python
>
> >
>
> > #Get the IP Address
>
> >
>
> >
...
-
First
-
#!/usr/bin/env python
#Get the IP Address
print("hello, please enter file name here>"),
import socket
for line in open(raw_input()):
hostname = line.strip()
print("IP address for {0} is
{1}
.
>
>
>
> this is what i have so far
>
> --
>
> #!/usr/bin/env python
>
> #Get the IP Address
>
>
>
> import socket
>
> hostname = 'need it to read from a text file
t; i need to get an ip address from list of hostnames which are in a textfile.
>>
>>
>>
>> this is what i have so far
>>
>> --
>>
>> #!/usr/bin/env python
>>
>> #Ge
.
>
>
>
> this is what i have so far
>
> --
>
> #!/usr/bin/env python
>
> #Get the IP Address
>
>
>
> import socket
>
> hostname = 'need it to read from a text file
> i need to get an ip address from list of hostnames which are in a textfile.
>
> this is what i have so far
> --
> #!/usr/bin/env python
> #Get the IP Address
>
> import socket
> hostname = '
On 9/12/2012 10:41 AM, [email protected] wrote:
it's not really homework, i found a lab exercise on the web
> and i;m trying to study with it. maybe not the most efficient way.
i have a file with hostnames ordered line by line.
Key fact for this exercise: open files are iterable.
So your
gt;>
>>
>> i need to get an ip address from list of hostnames which are in a
>> textfile.
>>
>>
>>
>> this is what i have so far
>>
>>
--
>>
>> #!/usr/
ile.
>
>
>
> this is what i have so far
>
> --
>
> #!/usr/bin/env python
>
> #Get the IP Address
>
>
>
> import socket
>
> hostname = 'need it to read from a text
sic pointer.
You have there something that successfully resolves one hostname to an
IP address. Now you want to expand that to reading an entire file of
them and resolving them all. Presumably you need to produce a list of
IP addresses; check the question as to whether you need to create a
file, or ou
ython
#Get the IP Address
import socket
hostname = 'need it to read from a text file'
addr = socket.gethostbyname(hostname)
print 'The address of ', hostname, 'is', addr
---
any idea ?
sor
On Thu, Apr 28, 2011 at 1:18 PM, cjblaine wrote:
> Thanks for the reply, Ned.
>
> Bummer for me. Check this out:
>
> C code on Solaris 10 SPARC returns the following with nscd
> running (the Solaris Naming Services Caching Daemon, on by
> default):
>
I'm guessing the IP's PTR record is pointing
Thanks for the reply, Ned.
Bummer for me. Check this out:
C code on Solaris 10 SPARC returns the following with nscd
running (the Solaris Naming Services Caching Daemon, on by
default):
PRIMARY according to gethostbyaddr(): my-dns-cname.our.org
ALIAS according to gethostbyaddr(): primary.ou
In article
<850c85c0-be6e-4eec-b6b1-5c79e1716...@glegroupsg2000goo.googlegroups.com
>, cjblaine wrote:
> Python 2.7.1 (perhaps others)
>
> I believe this is a bug. Comments?
>
> Docs state: Return a triple (hostname, aliaslist, ipaddrlist)
> where hostname is the prim
Python 2.7.1 (perhaps others)
I believe this is a bug. Comments?
Docs state: Return a triple (hostname, aliaslist, ipaddrlist)
where hostname is the primary host name responding to the
given ip_address, aliaslist is a (possibly empty) list of
alternative host names for the same address, and
The Python Packaging Index (the software formerly known
as Cheeseshop) is now available at
http://pypi.python.org/pypi
The old addresses (www.python.org/pypi, and
cheeseshop.python.org/pypi) will continue to work,
either as aliases or using HTTP redirections.
The software was renamed to its old
Grant Edwards wrote:
> On 2006-09-01, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > Can anybody explain this one?
>
> >>>> print os.getenv('HOSTNAME')
> > None
> >>>>
> > [EMAIL PROTECTED] ~ $ echo $HOSTNAME
> >
On 2006-09-01, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Can anybody explain this one?
>>>> print os.getenv('HOSTNAME')
> None
>>>>
> [EMAIL PROTECTED] ~ $ echo $HOSTNAME
> kermit
Perhaps the HOSTNAME variable isn't exported?
-
Can anybody explain this one?
[EMAIL PROTECTED] ~ $ python
Python 2.4.3 (#1, Jul 27 2006, 13:07:44)
[GCC 3.4.6 (Gentoo 3.4.6-r1, ssp-3.4.5-1.0, pie-8.7.9)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> imp
faulkner írta:
> my boss has a similar problem with his home internet connection in
> general. he traced it back to his router, which was in the first couple
> generations of routers. how old are the routers you tested this on?
> aside from upgrading them, if they are the problem, i can suggest a
>
connect()
> File "/usr/local/lib/python2.4/httplib.py", line 1072, in connect
> sock.connect((self.host, self.port))
> File "", line 1, in connect
> gaierror: (8, 'hostname nor servname provided, or not known')
>
> The program is connecting to
ib/python2.4/httplib.py", line 1072, in connect
sock.connect((self.host, self.port))
File "", line 1, in connect
gaierror: (8, 'hostname nor servname provided, or not known')
The program is connecting to the same host about 2 times per minute.
After running for
tput
> self.send(msg)
> File "/usr/local/lib/python2.4/httplib.py", line 646, in send
> self.connect()
> File "/usr/local/lib/python2.4/httplib.py", line 1072, in connect
> sock.connect((self.host, self.port))
> File "", line 1, in connect
>
n2.4/httplib.py", line 1072, in connect
sock.connect((self.host, self.port))
File "", line 1, in connect
gaierror: (8, 'hostname nor servname provided, or not known')
This exception does not stop my server program and it keeps trying to
connect to the xmlrpc server
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Wow! This was a fast answer and it works.
That's why we used to joke about Guido's time machine: somebody would
express a need (sometimes phrased as a suggestion for an enhancement),
and Guido would zip back in time and implement the needed functiona
Wow! This was a fast answer and it works.
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi
> Iam new in Python.
> I want to know for my first Project in Python how i can get the
> Hostname from a URL?
>>> import urlparse
>>> urlparse.urlsplit('http://foo.bar.com/zapzap')
('http
Hi
Iam new in Python.
I want to know for my first Project in Python how i can get the
Hostname from a URL?
Thanks for Help
--
http://mail.python.org/mailman/listinfo/python-list
55 matches
Mail list logo