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

DNS BIND help to setup.

Scheduled Pinned Locked Moved DHCP and DNS
17 Posts 3 Posters 2.5k 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.
  • N
    notaduck
    last edited by Jul 22, 2015, 6:59 PM

    Some time i have to learn it so now might better be the time..

    I was wondering if there is a step by step guide to setup BIND DNS internal (it should only work on lan)
    I have absolute no knowledge about the setup of a DNS but it would be nice if i just could use example.localdomain insted of IP's to acces some of my servers there shouldn't be access to through the internet

    1 Reply Last reply Reply Quote 0
    • K
      KOM
      last edited by Jul 22, 2015, 7:28 PM

      Unless you have a burning need to learn bind specifically, why not just use the built-in forwarder?

      1 Reply Last reply Reply Quote 0
      • N
        notaduck
        last edited by Jul 22, 2015, 8:08 PM

        Well if that can do the job then there is no problem.
        Butbiw there a step by step guide ør something else there could help me with the setup?

        1 Reply Last reply Reply Quote 0
        • K
          KOM
          last edited by Jul 22, 2015, 8:12 PM

          What setup???  It's enabled by default.  Go to Services - DNS Forwarder and populate the Host Overrides with your custom DNS entries.

          1 Reply Last reply Reply Quote 0
          • N
            notaduck
            last edited by Jul 22, 2015, 9:18 PM

            So if i have a server running with

            hostname : Mysql-Ubuntu
            IP : 10.0.2.4

            then i can just go into Services - DNS Forwarder

            and enter Hostname : Mysql-ubuntu
                            Domainname : Local
                            IP Adress : 10.0.2.4

            and then head into my browser and type http://mysql-ubuntu.local/phpmyadmin

            and thats it ? it wouldnt be sent to a nameserver outside my network or anything ?
            sry for being such a dummy here..

            1 Reply Last reply Reply Quote 0
            • K
              KOM
              last edited by Jul 23, 2015, 12:53 AM

              and thats it ?

              Try it and see!  :D

              it wouldnt be sent to a nameserver outside my network or anything ?

              No.  Unless you have a rule on WAN that allows 53 TCP/UDP in, nobody will see any DNS service on your WAN address.  The Forwarder will serve any overrides you have set (even for other valid external domains) to your LAN clients and fetch anything else from the DNS servers you have set in your General config.

              1 Reply Last reply Reply Quote 0
              • N
                notaduck
                last edited by Jul 23, 2015, 4:35 AM

                Lol yearh i can see how that looks :D i did eventually try btw :D
                and i failed…......
                it didn't worked at all? nothing was happening

                Selection_014.png_thumb
                Selection_014.png
                Selection_015.png_thumb
                Selection_015.png
                Selection_013.jpg
                Selection_013.jpg_thumb

                1 Reply Last reply Reply Quote 0
                • K
                  KOM
                  last edited by Jul 23, 2015, 1:08 PM

                  1.  You have no defined DNS servers upstream.  This won't solve your immediate problem, but it's something you need to fix if you want the forwarder to handle non-local domains.

                  2.  DNS Forwarder should be bound to localhost, not All.

                  3.  Why is the Listen port set to 54?  Leave it blank to use the default DNS port 53.

                  1 Reply Last reply Reply Quote 0
                  • N
                    notaduck
                    last edited by Jul 23, 2015, 5:35 PM

                    1. This is where a step by step guide or somthing else would be good to have ( I must admit i am totally lost here)
                    2. is changed to localhost now.
                    3. it is set to 54 because the DNS resolver is running on port 53 and the DNS forwarder can't run on the same port (error message)

                    1 Reply Last reply Reply Quote 0
                    • D
                      doktornotor Banned
                      last edited by Jul 23, 2015, 5:55 PM

                      Why are you running two DNS servers? Nothing will query it on port 54. If you are already running the DNS resolver, then set up the host overrides in the DNS resolver and move on!

                      1 Reply Last reply Reply Quote 0
                      • N
                        notaduck
                        last edited by Jul 23, 2015, 6:04 PM

                        Again i tam out of knowledge here. ask me to setup a proxy server or anything else and i will do it but i am still in the learning process and DNS is like an unknown country to me.

                        I have already tried to setup the Host Overrides in DNS Resolver but it isnt working ? ipmi and mysql isn't working but landscape and esxi are ?

                        Selection_016.png
                        Selection_016.png_thumb

                        1 Reply Last reply Reply Quote 0
                        • D
                          doktornotor Banned
                          last edited by Jul 23, 2015, 6:14 PM

                          ??? ??? ??? Why are all those hosts in come separate random domain? ??? ??? ???

                          1 Reply Last reply Reply Quote 0
                          • N
                            notaduck
                            last edited by Jul 23, 2015, 6:28 PM

                            So if my domain under system > General Setup is for an example home. then my domains should be named home ?
                            and then i could access it with  ipmi.home…..  :-[

                            thanks man :D i almost feel embarrassed for being so stupid now....

                            can i ask you what the difference is between resolver and forwareder?

                            1 Reply Last reply Reply Quote 0
                            • D
                              doktornotor Banned
                              last edited by Jul 23, 2015, 6:36 PM

                              @notaduck:

                              So if my domain under system > General Setup is for an example home. then my domains should be named home ?
                              and then i could access it with  ipmi.home…..  :-[
                              [/quote]

                              Well yes, whole lot easier to remember than having random domain for every host, no?  ;D

                              @notaduck:

                              can i ask you what the difference is between resolver and forwareder?

                              For the purpose discussed here, none. Otherwise, forwarder forwards the queries to usptream DNS servers, the resolver does recursive resolution itself by default.

                              1 Reply Last reply Reply Quote 0
                              • N
                                notaduck
                                last edited by Jul 23, 2015, 6:52 PM

                                well after i fired up my Esxi whitebox with 6 VM's on it became pretty difficult to remember where the different IPs were leading me too :D so yes

                                aaaarh :) can i ask you why i was adviced to setup a DNS forwareder instead ?

                                1 Reply Last reply Reply Quote 0
                                • K
                                  KOM
                                  last edited by Jul 23, 2015, 7:54 PM

                                  can i ask you why i was adviced to setup a DNS forwareder instead ?

                                  I'll take this one…  I stupidly didn't bother to check as to which one you were already running, and I didn't remember that it's the resolver that is the default now in 2.2 and not the forwarder.

                                  1 Reply Last reply Reply Quote 0
                                  • N
                                    notaduck
                                    last edited by Jul 23, 2015, 8:00 PM

                                    Well that make sense :) thanks for the your time

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