Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #205520

Re: get my ip address

From tony <lists@vanderhoff.org>
Newsgroups linux.debian.user
Subject Re: get my ip address
Date 2019-02-19 16:50 +0100
Message-ID <xtfOG-6CI-1@gated-at.bofh.it> (permalink)
References <xrJ4u-2o3-9@gated-at.bofh.it> <xtflD-6tn-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 19/02/2019 16:10, Greg Wooledge wrote:
> On Fri, Feb 15, 2019 at 11:11:29AM +0100, tony wrote:
>> Debian 9. I need to read my IPv6 address into a python script.
> 
> Why?
> 
> <https://mywiki.wooledge.org/IpAddress> may offer some insight.
> 

Well, I'm sure you don't really want to know, and I don't think your
blog covers my use case. Correct me if I'm wrong on either count.

I have a network of IoTs consisting of 5 (I think) Paspberry Pis,
monitoring various things, and periodically sending the data to my VPS.
I need access to these hosts to manage them.

The network supplier is Orange France (spit!) who supply a dynamic DNS
on both IPv4 and IPv6. I need to access any of them. For some years, I
have been using NAT over IPv4 with some success. I simply collect the
router's address from the server using curl, compare it with the current
DNS setting, and run nsupdate if different.

Now, Orange (spit!) have recently discovered. IPv6, which makes
management much easier, so I'm in the process of changing over to that
protocol. Sadly the prefix is dynamic; ${deity} knows why. Each host
address is set up from router advertisement, so I figure I only need to
catch the host's current address, and set up the DNS accordingly. I'm
successfully doing that manually, but, of course, that's not very
satisfactory.

See - I told you it wasn't worth knowing!


Cheers, Tony

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

get my ip address tony <lists@vanderhoff.org> - 2019-02-15 11:40 +0100
  Re: get my ip address <tomas@tuxteam.de> - 2019-02-15 11:50 +0100
  Re: get my ip address Markus Schönhaber <debian-user@list-post.mks-mail.de> - 2019-02-15 12:10 +0100
    Re: get my ip address David Wright <deblis@lionunicorn.co.uk> - 2019-02-15 17:00 +0100
      Re: get my ip address David Wright <deblis@lionunicorn.co.uk> - 2019-02-16 01:00 +0100
        Re: get my ip address John Crawley <john@bunsenlabs.org> - 2019-02-16 03:20 +0100
          Re: get my ip address David Wright <deblis@lionunicorn.co.uk> - 2019-02-16 06:30 +0100
            Re: get my ip address John Crawley <john@bunsenlabs.org> - 2019-02-17 05:00 +0100
              Re: get my ip address David Wright <deblis@lionunicorn.co.uk> - 2019-02-20 05:40 +0100
      Re: get my ip address tony <lists@vanderhoff.org> - 2019-02-16 11:20 +0100
        Re: get my ip address David Wright <deblis@lionunicorn.co.uk> - 2019-02-20 05:40 +0100
  Re: get my ip address Greg Wooledge <wooledg@eeg.ccf.org> - 2019-02-19 16:20 +0100
    Re: get my ip address tony <lists@vanderhoff.org> - 2019-02-19 16:50 +0100
      Re: get my ip address Dan Ritter <dsr@randomstring.org> - 2019-02-19 17:40 +0100
        Re: get my ip address tony <lists@vanderhoff.org> - 2019-02-19 18:10 +0100
        Re: get my ip address Greg Wooledge <wooledg@eeg.ccf.org> - 2019-02-19 18:10 +0100
        Re: get my ip address tony <lists@vanderhoff.org> - 2019-02-20 11:40 +0100
          Re: get my ip address Dan Ritter <dsr@randomstring.org> - 2019-02-20 13:30 +0100
            Re: get my ip address tony <lists@vanderhoff.org> - 2019-02-20 14:00 +0100
  Re: get my ip address Jonathan de Boyne Pollard <J.deBoynePollard-newsgroups@NTLWorld.COM> - 2019-02-28 15:40 +0100

csiph-web