ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    FreePBX and DNS settings

    IT Discussion
    freepbx dns
    3
    16
    2.4k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • AdamFA
      AdamF
      last edited by

      For those of you running FreePBX on Vultr. Do you set your NIC to DHCP, or Static? If you leave the NIC as DHCP, does your DNS entries get stripped out on reboot?

      For example, if I set the DNS entries using the system admin module, like so:

      127.0.0.1
      8.8.8.8
      1.1.1.1

      Then reboot the server, most of the time, it will automatically return the DNS entries to what I assume is the DNS provided by DHCP. Does the System Admin module not over ride this?

      JaredBuschJ scottalanmillerS 3 Replies Last reply Reply Quote 0
      • JaredBuschJ
        JaredBusch @AdamF
        last edited by

        @fuznutz04 said in FreePBX and DNS settings:

        For those of you running FreePBX on Vultr. Do you set your NIC to DHCP, or Static? If you leave the NIC as DHCP, does your DNS entries get stripped out on reboot?

        For example, if I set the DNS entries using the system admin module, like so:

        127.0.0.1
        8.8.8.8
        1.1.1.1

        Then reboot the server, most of the time, it will automatically return the DNS entries to what I assume is the DNS provided by DHCP. Does the System Admin module not over ride this?

        If you are setting it, you are doing it wrong.

        You have no control over what Vultr sets up, so of course you have to use DHCP.

        I never bother to change the DNS entry, except to add the 127.0.0.1 address. though, I have no actual need for it.

        1 Reply Last reply Reply Quote 0
        • scottalanmillerS
          scottalanmiller @AdamF
          last edited by

          @fuznutz04 said in FreePBX and DNS settings:

          Do you set your NIC to DHCP, or Static?

          Can't do static.

          AdamFA 1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller @AdamF
            last edited by

            @fuznutz04 said in FreePBX and DNS settings:

            Then reboot the server, most of the time, it will automatically return the DNS entries to what I assume is the DNS provided by DHCP.

            For a server, you want their DNS because they have a local cache in the datacenter.

            JaredBuschJ 1 Reply Last reply Reply Quote 0
            • JaredBuschJ
              JaredBusch @scottalanmiller
              last edited by

              @scottalanmiller said in FreePBX and DNS settings:

              @fuznutz04 said in FreePBX and DNS settings:

              Then reboot the server, most of the time, it will automatically return the DNS entries to what I assume is the DNS provided by DHCP.

              For a server, you want their DNS because they have a local cache in the datacenter.

              Is that documented someplace? I never bothered to look.

              1 Reply Last reply Reply Quote 0
              • JaredBuschJ
                JaredBusch
                last edited by

                Just updated the DNS on our Bundy PBX and rebooted it as no one was on the phone.

                Entries are still there.

                87fee371-b0cc-4c6b-9e03-0e2005cb4637-image.png

                AdamFA 1 Reply Last reply Reply Quote 0
                • AdamFA
                  AdamF @scottalanmiller
                  last edited by

                  @scottalanmiller said in FreePBX and DNS settings:

                  @fuznutz04 said in FreePBX and DNS settings:

                  Do you set your NIC to DHCP, or Static?

                  Can't do static.

                  So you CAN set it. I've done it. Are you supposed to, apparently not.

                  scottalanmillerS 1 Reply Last reply Reply Quote 0
                  • AdamFA
                    AdamF @JaredBusch
                    last edited by

                    @JaredBusch said in FreePBX and DNS settings:

                    Just updated the DNS on our Bundy PBX and rebooted it as no one was on the phone.

                    Entries are still there.

                    87fee371-b0cc-4c6b-9e03-0e2005cb4637-image.png

                    I've set it on mine, because is specifically says to set the first one to 127.0.0.1. Was 127.0.0.1 in your DNS entries before you set it?

                    1 Reply Last reply Reply Quote 0
                    • scottalanmillerS
                      scottalanmiller @AdamF
                      last edited by

                      @fuznutz04 said in FreePBX and DNS settings:

                      @scottalanmiller said in FreePBX and DNS settings:

                      @fuznutz04 said in FreePBX and DNS settings:

                      Do you set your NIC to DHCP, or Static?

                      Can't do static.

                      So you CAN set it. I've done it. Are you supposed to, apparently not.

                      You CAN, yes. But only to the number handed out by DHCP.

                      AdamFA 1 Reply Last reply Reply Quote 0
                      • AdamFA
                        AdamF @scottalanmiller
                        last edited by

                        @scottalanmiller So you don't set it to 127.0.0.1 like is says to in the GUI?

                        scottalanmillerS 1 Reply Last reply Reply Quote 0
                        • scottalanmillerS
                          scottalanmiller @AdamF
                          last edited by

                          @fuznutz04 said in FreePBX and DNS settings:

                          @scottalanmiller So you don't set it to 127.0.0.1 like is says to in the GUI?

                          I do not.

                          JaredBuschJ 1 Reply Last reply Reply Quote 0
                          • JaredBuschJ
                            JaredBusch @scottalanmiller
                            last edited by JaredBusch

                            @scottalanmiller said in FreePBX and DNS settings:

                            @fuznutz04 said in FreePBX and DNS settings:

                            @scottalanmiller So you don't set it to 127.0.0.1 like is says to in the GUI?

                            I do not.

                            You two are discussing two different things, be specific!

                            1. DNS
                            2. Static IP.

                            @fuznutz04 of course you can use the FreePBX GUI to make the IP static, but no, you should never. It breaks the entire process. You can never restore or move or anything that VM because when you do any of that, you will get a new DHCP assigned IPv4 from Vultr.

                            @scottalanmiller I typically will enter the 127.0.0.1 DNS just because there have been rare bugs with the Dashboard module over the years that having 127.0.0.1 in the DNS has prevented from being a nuisance.

                            @fuznutz04 The 127.0.0.1 has been there ever since I setup this server almost a year ago. I just added the Cloudflare DNS entries today for the test.

                            AdamFA 1 Reply Last reply Reply Quote 0
                            • AdamFA
                              AdamF @JaredBusch
                              last edited by

                              @JaredBusch Agreed. Should be more specific.

                              I will keep the NIC on DHCP.

                              The DNS thing just got me thinking. Especially since it says about setting it specifically in the UI. @Scott says not to set it. You say to set it to 127.0.0.1 and the Vultr DNS.

                              scottalanmillerS 1 Reply Last reply Reply Quote 0
                              • scottalanmillerS
                                scottalanmiller @AdamF
                                last edited by

                                @fuznutz04 said in FreePBX and DNS settings:

                                @Scott says not to set it. You say to set it to 127.0.0.1 and the Vultr DNS.

                                No, Scott says he doesn't use it, not that you shouldn't. Not the same thing πŸ˜‰

                                AdamFA 1 Reply Last reply Reply Quote 0
                                • AdamFA
                                  AdamF @scottalanmiller
                                  last edited by

                                  @scottalanmiller said in FreePBX and DNS settings:

                                  @fuznutz04 said in FreePBX and DNS settings:

                                  @Scott says not to set it. You say to set it to 127.0.0.1 and the Vultr DNS.

                                  No, Scott says he doesn't use it, not that you shouldn't. Not the same thing πŸ˜‰

                                  But doesn't this just write it to the /etc/resolve file anyway? I could set DNS statically via the file, but I'm still unclear what the best practice is for FreePBX in regards to DNS.

                                  JaredBuschJ 1 Reply Last reply Reply Quote 0
                                  • JaredBuschJ
                                    JaredBusch @AdamF
                                    last edited by

                                    @fuznutz04 said in FreePBX and DNS settings:

                                    @scottalanmiller said in FreePBX and DNS settings:

                                    @fuznutz04 said in FreePBX and DNS settings:

                                    @Scott says not to set it. You say to set it to 127.0.0.1 and the Vultr DNS.

                                    No, Scott says he doesn't use it, not that you shouldn't. Not the same thing πŸ˜‰

                                    But doesn't this just write it to the /etc/resolve file anyway? I could set DNS statically via the file, but I'm still unclear what the best practice is for FreePBX in regards to DNS.

                                    To not fuck with it unless you have a reason to.

                                    FreePBX is an appliance. A software appliance, but an appliance. You don’t fuck with it under the hood unless you have a good reason to do so.

                                    1 Reply Last reply Reply Quote 1
                                    • 1 / 1
                                    • First post
                                      Last post