Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: Bind dns resolving local servers

  1. #11
    Join Date
    Nov 2009
    Location
    Catalunya, Spain
    Beans
    14,560
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Bind dns resolving local servers

    For each modification of the zone file you need to change the Serial value. Not sure if bind is insisting on that or not. I notice you have serial of 6 now and before, you didn't change it.

    Best to use date format with couple of digits on the end (two digit XX would allow you up to 99 changes on the same day). Try putting the serial at 2018052501 and restart bind.

    And the IN NS line is not correct, it needs dot at the end:
    Code:
    @   IN   NS   server001.linux-network.home.
    Change that line and the serial, restart bind and try the nslookup again.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 18.04 LTS 64bit

  2. #12
    Join Date
    Feb 2011
    Location
    Coquitlam, B.C. Canada
    Beans
    3,521
    Distro
    Ubuntu Development Release

    Re: Bind dns resolving local servers

    Quote Originally Posted by darkod View Post
    For each modification of the zone file you need to change the Serial value. Not sure if bind is insisting on that or not.
    It depends. see this.

    Quote Originally Posted by darkod View Post
    And the IN NS line is not correct, it needs dot at the end:
    Code:
    @   IN   NS   server001.linux-network.home.
    Good catch. I've been looking and looking and didn't see it.
    Any follow-up information on your issue would be appreciated. Please have the courtesy to report back.

  3. #13
    Join Date
    Oct 2009
    Beans
    139
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Bind dns resolving local servers

    I am now able to do a nslookup and dig and get results using the fqdn.

    dig:



    nslookup:




    question, to add my other servers do I just create the two A records for each server?

    @ IN A 192.168.1.110
    server002 IN A 192.168.1.110
    @ IN A 192.168.1.111
    server003 IN A 192.168.1.111

  4. #14
    Join Date
    Feb 2011
    Location
    Coquitlam, B.C. Canada
    Beans
    3,521
    Distro
    Ubuntu Development Release

    Re: Bind dns resolving local servers

    Quote Originally Posted by brent1975 View Post

    question, to add my other servers do I just create the two A records for each server?

    @ IN A 192.168.1.110
    server002 IN A 192.168.1.110
    @ IN A 192.168.1.111
    server003 IN A 192.168.1.111
    No. Leave out the @ lines. Do this:
    Code:
    server002              IN      A         192.168.1.110
    server003              IN      A         192.168.1.111
    Example
    Code:
    ;
    ; BIND data file for smythies.com
    ;
    $TTL    604800
    @       IN      SOA     smythies.com. doug.smythies.com. (
                            2016012601      ; Serial
                             604800         ; Refresh
                              86400         ; Retry
                            2419200         ; Expire
                             604800 )       ; Negative Cache TTL
                    IN      A       192.168.111.1
    ;
    @               IN      NS      ns1.smythies.com.
    ns1             IN      A       192.168.111.1
    www             IN      A       192.168.111.1
    
    DOUG-64         IN      CNAME   ns1
    mail            IN      CNAME   ns1
    Wireless-R      IN      A       192.168.111.57
    doug-xps        IN      A       192.168.111.100
    doug-xps2       IN      A       192.168.111.101
    s10             IN      A       192.168.111.102
    cyd-hp          IN      A       192.168.111.103
    cyd-hp2         IN      A       192.168.111.104
    tv01            IN      A       192.168.111.105
    Any follow-up information on your issue would be appreciated. Please have the courtesy to report back.

  5. #15
    Join Date
    Oct 2009
    Beans
    139
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Bind dns resolving local servers

    Thank you! I am now able to do a dig and nslookup from my ns server001 and get responses. I seem to be having issues from other devices getting the answers though. Have any suggestions on that one?

    on server002 here is what I get.

    here is my dig


    Here is my nslookup

  6. #16
    Join Date
    Feb 2011
    Location
    Coquitlam, B.C. Canada
    Beans
    3,521
    Distro
    Ubuntu Development Release

    Re: Bind dns resolving local servers

    well, you do not seem to have told server002 to use server001 as its DNS. How you do that depends on how server002 gets it IP address, and, I suppose, with 18.04 if you're using netplan or not. If you are using static IP addresses (and not netplan) you can specify in the /etc/network/interfaces file using the "dns-nameservers" stanza. If you are using DHCP and a DHCP server, then it can be specified with the lease response data using the "option domain-name-servers" stanza.
    Any follow-up information on your issue would be appreciated. Please have the courtesy to report back.

  7. #17
    Join Date
    Oct 2009
    Beans
    139
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Bind dns resolving local servers

    I use 16.04 and all my devices have static IP's. my test centos 7 box server002 was using dns 8.8.8.8. corrected dns and now they work. Thanks for stepping me through this.

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •