Configure dns server

Discussion in 'Installation/Configuration' started by napseo, Jul 7, 2016.

  1. napseo

    napseo New Member

    I have several questions about dns. I have apache server on my computer and static ip and i bought domain. So when i enter in my browser blablabla.com , it redirects me to my site. Its ok. But i want to setup my own dns server on the same computer where i have my site. I set up bind9. Here are some questions:
    1. Should i buy two domain's, so there will be my dns server and is it necessarily that ns will look like ns1.blablabla.com or its ok if it is blublublu.com ?
    2. When i buy domain for my dns server, should i add record (on the site where i bought it)
      Code:
      @       A      "mi ip where  my site is
      ?
    3. When i do this, i must enter ns(blublublu.com or ns1.blablabla.com) in site where i bought domain blablabla.com (my site) ? It will work because dns use 53 port, and apache use 80 port ?
    4. Did i correctly write db.blablabla.com int /etc/bind ?
    Code:
    $TTL 604800
    
    @   IN  SOA blablabla.com. root.blablabla.com. (
                      2     ; Serial
                 604800     ; Refresh
                  86400     ; Retry
                2419200     ; Expire
                 604800 )   ; Negative Cache TTL
        IN  A   192.168.100.13
    ;
    
    @   IN  NS  blublublu.com. (ns.blablabla.com) ??
    @   IN  A   192.168.100.13 ??? or there must be my static ip addresse ??
    @   IN  AAAA    ::1
    ns  IN  A   192.168.100.13
     
  2. Echtap

    Echtap New Member

    You don't need to buy another domain for your nameservers. Simple use ns1.blablabla.com and keep it altogether.
     
  3. napseo

    napseo New Member

    okey. i set up dns server localy. nslookup and dig works fine. I have made glue record on the site where i bought my site domain, so that ns now look like ns.blablabla.com. How i can make dns server to be seen from Internet ?
     
  4. Echtap

    Echtap New Member

    You need to use something like BIND or TinyDNS (running on Linux) to setup a DNS server.
     

Share This Page