AW: Read Client Hostname

Matthias Mandlmeier matthias.mandlmeier at
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.




-----Ursprüngliche Nachricht-----
Von: Nikos Mavrogiannopoulos [mailto:n.mavrogiannopoulos at] 
Gesendet: Mittwoch, 2. März 2016 13:09
An: Matthias Mandlmeier <matthias.mandlmeier at>
Cc: openconnect-devel <openconnect-devel at>
Betreff: Re: Read Client Hostname

On Tue, Mar 1, 2016 at 8:28 PM, Matthias Mandlmeier <matthias.mandlmeier at> 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.

 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?


More information about the openconnect-devel mailing list