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

Register a local computer name to DNS server

Scheduled Pinned Locked Moved DHCP and DNS
6 Posts 3 Posters 2.4k 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.
  • J
    jasonli
    last edited by jasonli Feb 28, 2020, 7:59 PM Feb 28, 2020, 7:37 PM

    Hi I got two computer in my network that connected to my PFsense and they are in different VLAN. However I want to access the share folder from each other by name but it didn't work.

    So I was wondering if I could register both of my computer on DNS server, everytime i want to access the computer DNS can help to resolve the name for it.

    J G 2 Replies Last reply Feb 28, 2020, 8:02 PM Reply Quote 0
    • J
      JKnott @jasonli
      last edited by Feb 28, 2020, 8:02 PM

      @jasonli

      Yes, that's the purpose of a DNS server. Just add the computers, with IP address to the Host Overides, on the Resolver or Forwarder pages.

      PfSense running on Qotom mini PC
      i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
      UniFi AC-Lite access point

      I haven't lost my mind. It's around here...somewhere...

      1 Reply Last reply Reply Quote 0
      • J
        jasonli
        last edited by Mar 3, 2020, 1:58 AM

        I tried to put my hostname under the Host overides section but it required to put in a domain. I think thats for translating websites.

        J 1 Reply Last reply Mar 3, 2020, 2:20 AM Reply Quote 0
        • J
          JKnott @jasonli
          last edited by Mar 3, 2020, 2:20 AM

          @jasonli

          A DNS server requires both host and domain names. Do you not have a domain name you can use? If necessary, you can even use the domain name your ISP assigns you.

          PfSense running on Qotom mini PC
          i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
          UniFi AC-Lite access point

          I haven't lost my mind. It's around here...somewhere...

          1 Reply Last reply Reply Quote 0
          • G
            Gertjan @jasonli
            last edited by Gertjan Mar 3, 2020, 1:12 PM Mar 3, 2020, 1:11 PM

            @jasonli said in Register a local computer name to DNS server:

            Hi I got two computer in my network that connected to my PFsense and ....

            .... and are these PC's using the default DHCP client ?
            If this :

            5aa62baa-89e3-472e-a877-c3fbe068f832-image.png

            is checked, the PC's device name will get registered into the "DNS local host file" (see the /etc/hosts) and the DHCP status page, the log page.

            Now you can use that host name, try with simple ping hostname.
            The hostname will get - should be - resolved to at least an IPv4.

            That is, if you use the default pfSense resolver settings.

            If this is set as :

            8c54e988-c439-4dde-b298-1f75ea2140d0-image.png

            you can also ping to

            ping hostname.your-private-network.net
            

            which should resolve to the same IPv4.

            Btw : if the PC is on another network, thus another interface, firewall rules on pfSense should be set up to let pass the wanted traffic such as ICMP (= "ping protocol"), TCP and UDP (could be limited to ports if you know them all).

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

            1 Reply Last reply Reply Quote 0
            • J
              jasonli
              last edited by jasonli Mar 3, 2020, 6:40 PM Mar 3, 2020, 6:39 PM

              I figured out what happened to it because all of my servers are using static ip address and I haven't put the static ip address under the DHCP static mapping on the DHCP server page.Screen Shot 2020-03-03 at 10.37.02 AM.png
              After I typed in all the static ip address on the DHCP server and define the hostname for it, I am able to access the shared folder using the hostname i defined.

              1 Reply Last reply Reply Quote 0
              6 out of 6
              • First post
                6/6
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                This community forum collects and processes your personal information.
                consent.not_received