You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2023-06-02 13:40:58

WebGreg
Member
Registered: 2020-02-27
Posts: 729

FormCreator - question type - host

Hi.

How it's working? Because after setting this type, nothing is displayed / sending at all.
Same with type "IP address".

Last edited by WebGreg (2023-06-02 13:41:35)


--
GLPI 10.0.7
GLPI-Inventory 1.2.1
Ubuntu Server 20.04 LTS

Offline

#2 2023-06-02 15:04:43

btry
Moderator
Registered: 2015-10-01
Posts: 593

Re: FormCreator - question type - host

Hi

This question relies on DNS resolution from the IP of the coputer used to submit a form. It is possible that your server failed to resolve the IP, then you get an empty string in the answer.

Open a console on your server then try to issue a command nslookup with the IP of the computer used when the form has been  filled. If a few hours or more elapsed since the form has been filled, you shoud try to resolve the IP of some computers which are running right now. Check also the DNS configuration of your domain controller, if any.


No support with MP - Always run an upgrade task on a testing instance before running it on production! Always backup before any upgrade task!

Offline

#3 2023-06-02 18:58:04

WebGreg
Member
Registered: 2020-02-27
Posts: 729

Re: FormCreator - question type - host

Thank you. Indeed, nslookup by ip returns an error. Although pings work by name and by ip.


--
GLPI 10.0.7
GLPI-Inventory 1.2.1
Ubuntu Server 20.04 LTS

Offline

#4 2023-06-05 08:15:40

btry
Moderator
Registered: 2015-10-01
Posts: 593

Re: FormCreator - question type - host

Hi

Reverse DNS is not working well. You should investigate in your DNS server to fix that.


No support with MP - Always run an upgrade task on a testing instance before running it on production! Always backup before any upgrade task!

Offline

#5 2023-07-11 08:58:28

WebGreg
Member
Registered: 2020-02-27
Posts: 729

Re: FormCreator - question type - host

Hi btry

I already getting the computer name after 'nslookup ip' command. However, hostname field only returns an IP address.


--
GLPI 10.0.7
GLPI-Inventory 1.2.1
Ubuntu Server 20.04 LTS

Offline

#6 2023-07-11 09:11:51

btry
Moderator
Registered: 2015-10-01
Posts: 593

Re: FormCreator - question type - host

Hi

I don't know on which computer you ran nslookup. you should test on the server itself. Also, in AD environments it is quite common to have a misconfigured reverse DNS resolution. For a given IP to resolve, it may work at a given moment but fail later. It depends on many things.

I cannot help much as this is very likely out of scope of GLPI or Formcreator. Just be aware that Formcreator relies on reverse DNS. If the answer contains an IP then reverse resolution failed. There is absolutely no algorithm in the plugin to resolve an IP into a hostname.


No support with MP - Always run an upgrade task on a testing instance before running it on production! Always backup before any upgrade task!

Offline

#7 2023-07-11 11:34:04

WebGreg
Member
Registered: 2020-02-27
Posts: 729

Re: FormCreator - question type - host

Yes, the test was done on the GLPI server as you suggested earlier.

Previously, nslookup was returning an error at all. Now I get a response with the name, but as I mentioned - I only see the IP address in the hostname field.

In general, I did not notice any problems with accessing the station, either by IP or by name, in the network. I only have trouble here.


--
GLPI 10.0.7
GLPI-Inventory 1.2.1
Ubuntu Server 20.04 LTS

Offline

Board footer

Powered by FluxBB