Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Hosts file not remember after reboot (need help new member)

    General pfSense Questions
    3
    5
    2.6k
    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.
    • C
      ccsniper
      last edited by

      anyone can help me ,i edit hosts file at  /etc/hosts and  /var/etc/hosts  but hosts files not remember after reboot.  :'(

      thank you for advance.

      1 Reply Last reply Reply Quote 0
      • GruensFroeschliG
        GruensFroeschli
        last edited by

        Add your hosts under "Services" –> "DNS forwarder"

        We do what we must, because we can.

        Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

        1 Reply Last reply Reply Quote 0
        • C
          ccsniper
          last edited by

          @GruensFroeschli:

          Add your hosts under "Services" –> "DNS forwarder"

          ok. it's work ,thank you for help me very quick. ;)

          1 Reply Last reply Reply Quote 0
          • T
            tomv
            last edited by

            @GruensFroeschli:

            Add your hosts under "Services" –> "DNS forwarder"

            Is this supposed to work for a single name (not fully qualified)?

            I'm trying to get a machine called test to resolve but nothing happens.

            Host  Domain  IP          Description
            test          test          1.2.3.4         test

            I want to be able to ping test and have it respond at 1.2.3.4
            It should also respond to http://test

            thanks

            btw: /etc/hosts shows
            1.2.3.4     test    test.test

            but I can only ping test.test….. not simply    test

            update:
            It took a few minutes, but my other machines are now able to ping "test"

            Is there something I need to restart to make this happen quicker or do I just need to let it runs its course?

            1 Reply Last reply Reply Quote 0
            • GruensFroeschliG
              GruensFroeschli
              last edited by

              Search the forum.
              I posted somewhere screenshots of exactly this.

              To access test instead of test.test you have to leve the field host empty.

              ie:

              Host    Domain    IP            Description
                            test          1.2.3.4        test

              We do what we must, because we can.

              Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.