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

    Installing DNS server

    Scheduled Pinned Locked Moved DHCP and DNS
    9 Posts 3 Posters 2.0k 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.
    • R
      robina80
      last edited by

      Hi all,

      does pfsense come with a dns server i could install as i need to resolve local.computers with there hostnames?

      when i installed pfsense first i added my isp dns servers in the initial.setup stage so atm im going through to my isp dns servers but if i try to resolve one of my hostnames will it not resolve as its trying to resolve it with my isp dns servers?

      rob

      1 Reply Last reply Reply Quote 0
      • KOMK
        KOM
        last edited by

        pfSense comes with a built-in DNS Forwarder, or you can install either BIND or dns-server from the Packages list.

        1 Reply Last reply Reply Quote 0
        • R
          robina80
          last edited by

          mmm at the moment my linux machine cant resolve my pc hostname, i have set the two machines to the same dns ip

          is it because i havent installed a dns server on my pfsense machine?

          1 Reply Last reply Reply Quote 0
          • KOMK
            KOM
            last edited by

            You have a Linux box and a pfSense box?  Which machine is your DNS, or is that another server?  Please describe your systems, WAN/LAN settings etc

            1 Reply Last reply Reply Quote 0
            • R
              robina80
              last edited by

              i just have a pfsense machine i dont have a linux dns server or for that matter any dns server on my LAN network

              my pfsense machine is forwarding to my ISP's dns server but i would really like my own dns server so i can resolve hostnames on my LAN

              my WAN is getting a DHCP address from my ISP

              my LAN i have set it as a static address and i have enabled DHCP server on that NIC

              whats the best dns server you think i should install bind or tinydns?

              1 Reply Last reply Reply Quote 0
              • KOMK
                KOM
                last edited by

                Unless you have a lot of hosts on your LAN, I would suggest simply enabling the built-in DNS Forwarder and then using some Host Overrides.  How many LAN clients do you have?

                1 Reply Last reply Reply Quote 0
                • R
                  robina80
                  last edited by

                  i have 8 active DHCP leases and 5 static ip addresses

                  ps. if i was to install a dns package what one would you suggest to install - bind or dns-server, what one is the most common and easier to manage?

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

                    The built-in DNS forwarder will work fine at that scale.

                    Set your DNS Servers to your ISP's (or google, opendns, etc) DNS Servers: System->General Setup->DNS Servers

                    Set your DHCP Servers to provide the default DNS Servers (leave the DNS server entries blank): Services->DHCP Server (select the appropriate interface)

                    Enable DNS Forwarder: Services->DNS Forwarder->Enable

                    Also on the DNS Forwarder page, you can enable registration of DHCP Leases and DHCP static entries in the DNS forwarder.  You can also set specific host/DNS overrides at the bottom.

                    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
                    • R
                      robina80
                      last edited by

                      Thanks Derelict i will give this a go

                      rob

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