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

Thread: DNS has broken using bind9 - Please help fix

  1. #11
    Join Date
    Feb 2016
    Beans
    11

    Re: DNS has broken using bind9 - Please help fix

    All sorted for home.mydomain.uk. Reverse lookups were working fine but forward lookups still gave an error. Running named-checkzone home.mydomain.uk /etc/bins/zones/db.home.mydomain.uk gave an "ignoring out-of-zone data (internal)" error. Changing internal., external., etc back to internal.home.mydomain.uk etc fixed this.

  2. #12
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: DNS has broken using bind9 - Please help fix

    Just a hint for building domain.uk along with home.domain.uk. You'll need to create a separate zone file for domain.uk and include a record like this:
    Code:
    home     IN     NS     192.168.1.1
    which tells it to look to the 192.168.1.1 server for the home subdomain.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

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

    Re: DNS has broken using bind9 - Please help fix

    Is that why a record of type:
    Code:
    external   IN   A   192.168.1.2
    didn't work? The OP says he has to put the FQDN to resolve correctly. Usually you put only the host(name) and the domain part is taken from the zone itself.

    But in this case it was a home subdomain so that might make a difference.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 18.04 LTS 64bit

  4. #14
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: DNS has broken using bind9 - Please help fix

    In the zone file as posted, "external" is the short name for "external.home.domain.uk". How that is handled by the resolver on a client machine depends on how the "domain" and "search" fields are configured in /etc/resolv.conf. If that has "search domain.uk" then "ping external" translates to "ping external.domain.uk" which is not defined. If resolv.conf has "search home.domain.uk" then "ping external" should work. Another option is to include search entries for both domain.uk and home.domain.uk in resolv.conf, or use "domain domain.uk" along with "search home.domain.uk".
    Last edited by SeijiSensei; February 8th, 2016 at 08:19 PM.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

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
  •