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


Groups > linux.debian.user > #205525

Re: get my ip address

From Greg Wooledge <wooledg@eeg.ccf.org>
Newsgroups linux.debian.user
Subject Re: get my ip address
Date 2019-02-19 18:10 +0100
Message-ID <xth45-7vC-3@gated-at.bofh.it> (permalink)
References <xrJ4u-2o3-9@gated-at.bofh.it> <xtflD-6tn-5@gated-at.bofh.it> <xtfOG-6CI-1@gated-at.bofh.it> <xtgB4-772-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Feb 19, 2019 at 11:36:49AM -0500, Dan Ritter wrote:
> tony wrote: 
> > 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.

> That sounds like a job for a dynamic dns client.

Agreed.

> existing Debian packages:
> 
> ddclient (multiple backend services supported)
> ddupdate (also supports multiple services, more plugin-oriented)
> dyfi  (Finnish users only)
> dyndns   (multiple services)
> ez-ipupdate (multiple services)
> ipcheck (dyndns protocol specific, but many services use it)
> isc-dhcp-client-ddns  (adds dynamic dns to DHCP)

And the specific case of dynamic DNS updates is definitely covered
on the wiki page that I linked (https://mywiki.wooledge.org/IpAddress).
It even has sample code for Debian 8.

If you need to use a special python dynamic DNS client for some reason,
that's fine.  Just hook it from the dhclient-exit-hooks.d directory and
let it use the new_ip_address environment variable.  The example is
right there on the wiki page.  Just replace /usr/local/sbin/dync with
your python program (assuming it takes the IP address on the argument list).

Oh... wait, you said IPv6 in the original message, right?  Ugh.  I don't
know IPv6 myself, but fortunately we can look that up... um, somewhere!

wooledg:~$ man dhclient-script | grep 6
       $new_dhcp6_server_id.  The options that the client explicitly requested

... OK, apparently not *there*.

But looking through /sbin/dhclient-script itself, there appear to be
the following variables:

new_ip6_address
new_dhcp6_name_servers
new_dhcp5_domain_search

Maybe those will help?  Give it a shot.  Or wait for someone who knows IPv6
to chime in.

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