Local DNS Server Question

Discussion in 'Server Operation' started by Juston O Griggs, Jul 16, 2021 at 4:50 PM.

  1. Juston O Griggs

    Juston O Griggs New Member

    Hello,
    Not sure if Im posting this in the right thread or not, but I have a home network with mutiple servers/ip addresses, and I was wondering how I could go about setting up a local DNS server? Something like "myhome.lan" so I can just use serverXX.myhome.lan to access my individual machines instead of having to rember what IP address is for what server? Im fairly new to networking and stuff, and I want to learn, so any help would be welcomed! Thanks!
     
  2. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    I use my network firewall/router for this purpose (well, I just override some dns names/lookups, I don't use a fake domain, but it's pretty much the same effect).

    An alternate would be to install a dns server (eg. bind) on a local server and use that server to resolve dns inside your network; configure it to be authoritative for myhome.lan, and to recursively resolve queries for your clients (or I suppose forward them to another dns server).
     
  3. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    My signature has link to DNS tutorial, It uses ISPConfig to setup DNS servers.
    You can set up two name servers without ISPConfig if you know how bind or some other DNS software works. A book like Albitz, Liu: DNS and BIND is good to have.
    If you find setting up name servers too much work, old and good way is to use /etc/hosts file. Create one with all IP-addressses and hostnames in your local LAN, and copy the lines to all your computers (https://en.wikipedia.org/wiki/Hosts_(file))
     
  4. Juston O Griggs

    Juston O Griggs New Member

    Thank you! This is what I was looking for I belive! :cool:
     
  5. Juston O Griggs

    Juston O Griggs New Member

    One question though... I know I'll beed to set up ISPConfig on a VM, but would I need to do one for each DNS server as well? or can I do it all on the same VM I put IPSConfig on?
     
  6. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    What?
    For each ISPConfig server you set up you need a virtual machine or a real physical machine, if that is what you are asking.
    If you only want to set up name service for your internal LAN you can get by with only one host, which has the ISPConfig panel and name service. Then you have only one name server so if you want two name servers you need two hosts.
     
  7. Juston O Griggs

    Juston O Griggs New Member

    okay, Thank you...
    Yeah I think I just want one server to handle internal dns for "myhome.lan". Setting this up will not affect outside connections correct? (being ble to reach outside sites from any machine/vm)
     
  8. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    If done correctly it does not prevent outside connections.
    Check you have in forwarders statements some suitable name servers, for example your internet service providers name servers or other name servers that are close to your hosts.
     

Share This Page