AW: Read Client Hostname
Matthias Mandlmeier
matthias.mandlmeier at online.de
Wed Mar 2 09:10:47 PST 2016
Hi Nikos,
In the debug Log I see for example in the X-CSTP-Hostname my hostname with HTTP: X-CSTP-Hostname: Matthiass-iPhone in the Server Debug Log. My question is now How to read this variable in a script that I can send an Dynamic DNS Update to my Bind DNS Server that also other Clients can resolve the Hostname to an IP Adress when they are connected via VPN.
Thanks.
Regards
Matthias
-----Ursprüngliche Nachricht-----
Von: Nikos Mavrogiannopoulos [mailto:n.mavrogiannopoulos at gmail.com]
Gesendet: Mittwoch, 2. März 2016 13:09
An: Matthias Mandlmeier <matthias.mandlmeier at online.de>
Cc: openconnect-devel <openconnect-devel at lists.infradead.org>
Betreff: Re: Read Client Hostname
On Tue, Mar 1, 2016 at 8:28 PM, Matthias Mandlmeier <matthias.mandlmeier at online.de> wrote:
> Hello,
> I'd like to read the Client Hostname but when I use the Hostname Value
> it is empty. I want to use the Client Hostname for Update the DNS
> Records on my DNS Server.
Hi,
Could you be more specific? The hostname is read from the X-CSTP-Hostname header as sent by the client. Do you see the header in client or server debug log but no environment variable is set?
regards,
Nikos
More information about the openconnect-devel
mailing list