Ad Widget

Collapse

FQDN - check IP Address

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dap
    Junior Member
    • Sep 2023
    • 5

    #1

    FQDN - check IP Address


    Hi folks,
    We've just starting using Zabbix and we are quite (very!!!) new with all the systems possibilities and tips-and-tricks.

    We would like to have an overview of when the IP address of a give FQDN changes
    I've been looking at forums and uncle-goggle .. but most the of the answers I can find are somewhat partial (which might be because the answer is given with the expectation of good knowledge of the system).

    Any one can provide a "baby-steps" way to implement such external check procedure.
    Thank you in advance for the assistance.

    Daniele

    ​
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4806

    #2

    net.dns.record[<ip>,name,<type>,<timeout>,<count>,<protocol>]​

    Record the results, create trigger based on change.

    Comment

    • dap
      Junior Member
      • Sep 2023
      • 5

      #3
      Hi,
      yes - saw that - I didn't mention that the FQDN address is not a physical (or virtual device) that any agent can be installed on.

      The remote location (in our case a ship) updates the FQDN DNS name IP Address once the internet carrier changes - either LTE or different Satellites will provide different IPs - but I cannot install anything on the remote end for this
      the ping result to the FQDN name will always return an IP ... just need to figure out how to retrieve it ad then add triggers based on change, as you mentioned.

      Comment

      • cyber
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Dec 2006
        • 4806

        #4
        But you don't need to install anything on the other end... As I understand you need to find out, when that IP changes... so doing regular dns lookups (on zabbix server for example), should give you that ? Or I misunderstand something ?

        Comment

        • dap
          Junior Member
          • Sep 2023
          • 5

          #5
          maybe I'm looking at this the wrong way ...

          on the "other side" there is no machine at all ...
          so I thought to
          - create an host manually - ie: abc.xyz
          - then create an item using ... I thought a "simple check option" or similar - as I cannot use the agent option.
          as I understand choosing by the agent option Zabbix server is looking for an agent n the "other end" to send/retrieve data
          the net.dns.record option requires an agent as for what I understand

          but i've tried to setup an item using the zabbix agent 2 to perform the checks - but never get a result out of it.

          Comment

          • cyber
            Senior Member
            Zabbix Certified SpecialistZabbix Certified Professional
            • Dec 2006
            • 4806

            #6
            There is no need to create a specific host for just that endpoint... You can add an item to existing host (to your Zabbix server also, as it also has an agent), call it "IP of <FQDN>" and key net.dns.record()... and let it do its work...

            So what was the issue of not getting any result? You need an A record... so for example "net.dns.record[,google.com,A]" returns "google.com A 142.250.74.46", some preprocessing to extract just IP from there...

            I am not a network person, but I kind of doubt that you will see your "SHIP" by same name but different address each time it switches service provider... There has to be a bit more to it.. Some vpn tunnels or something.. local networks here and there.. But as said.. I am not network person, I might have absolutely crappy understanding ..

            Comment

            • dap
              Junior Member
              • Sep 2023
              • 5

              #7
              Hi - sometime I forget that we are dealing with a "special environment "


              ONBOARD
              we have a Zabbix Proxy that connects to the Zabbix shore server via a VPN tunnel using internal IP - these will never change of course.
              we also a "noip" dns record update that will check what is the current public IP provided by the carrier and update the FQDN DNS entry.

              so the shoreside Zabix main server will talk to the onboard server only using the VPN tunnel and internal IP.
              and this is all good.


              FROM shoreside
              by pinging the FQDN DNS name I can see what the actual public IP of the vessel is.
              The IP returned does not resolve to any machine - so there is no existing host I can can link the item to or that the agent can talk to.


              There is no problem to schedule a remote session - if you think might be the best option to better understand (and surely better explain) the setup and requirements - and will definitely benefit us​

              Thank you
              Daniele

              Comment

              • dap
                Junior Member
                • Sep 2023
                • 5

                #8
                Hi - am dumb !!!
                I finally figured it out based on your previous reply - THANK YOU.!!!

                Comment

                Working...