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

    [RESOLVED] How do I make permanent entries in /etc/hosts?

    Scheduled Pinned Locked Moved General pfSense Questions
    4 Posts 3 Posters 5.1k Views
    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.
    • _
      __adam__
      last edited by

      I would like to add entries in /etc/hosts that survive a reboot and config changes. Currently, anything I add using "Diagnostics: Edit file" disappear after a config change or reboot. I am not using pfsense as a DNS server or DHCP server, but I am using it as a DNS forwarder.

      Before I add my entries the /etc/hosts file looks like this:

      127.0.0.1	localhost localhost.localdomain
      10.1.1.1	pfsense.localdomain pfsense
      

      My pfsense version info is:
      2.1.5-RELEASE (i386)
      built on Mon Aug 25 07:44:26 EDT 2014
      FreeBSD 8.3-RELEASE-p16

      1 Reply Last reply Reply Quote 0
      • DerelictD
        Derelict LAYER 8 Netgate
        last edited by

        Host overrides in the DNS forwarder don't do what you need?

        Chattanooga, Tennessee, USA
        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
        Do Not Chat For Help! NO_WAN_EGRESS(TM)

        1 Reply Last reply Reply Quote 0
        • H
          Harvy66
          last edited by

          Kind of a funny override in the first place. You only set 2 IP addresses. PFSense for me has many IP addresses and I find it better to worry about interfaces and not focus on any specific IP. What are you trying to accomplish?

          1 Reply Last reply Reply Quote 0
          • _
            __adam__
            last edited by

            Adding them to the Host Overrides works, thanks.

            I want the Traffic Graph to show FQDN for hosts on my local network, instead of just the IP addresses.

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