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

    Example of Alias usage?

    Scheduled Pinned Locked Moved General pfSense Questions
    4 Posts 2 Posters 1.7k 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.
    • B
      BlueToast
      last edited by

      When I try to ping server.domain.com, it attempts to resolve the internet address.
      Before I setup pfSense and set the DHCPd server to use the pfSense server as the router, it would resolve to the LAN IP of the actual server (because of the /etc/aliases file).

      How do I do this so that when I ping servera.domain.com, it will resolve to the LAN IP I set for this alias in pfSense?

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

        http://doc.pfsense.org/index.php/Why_can%27t_I_access_forwarded_ports_on_my_WAN_IP_from_my_LAN/OPTx_networks%3F

        Method 2

        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
        • B
          BlueToast
          last edited by

          Hmm, it's not working. Any idea why? :?

          When I ping servera.domain.com, it's actually asking domain.com (on the internet) for the IP from its DNS records.

          EDIT: Ok, ok! I got it working. I did everything right, nothing was wrong. The reason "it wasn't working" was because my laptop isn't joined to the domain company.com (or domain.com), as are all the workstations here. If I ping from a workstation (being joined to the domain), it resolves to the correct LAN IP address that I am wanting it to resolve to.

          /thread

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

            You may need multiple overrides for variations of the domain.
            ( like example.com and www.example.com )

            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.