Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Bind9 DNS Question

    I'm trying to configure my Bind9 Server to resolve hostnames, lets say * (I'm using another domain with name servers setup, it's hosted at hostgator). has public DNS entries like as,,, etc configured on that domain.

    From inside my network, I want to be able to resolve to an IP that I specify, I also want to be able to add in my own domains, like to an IP (which isn't set on the public website) on my network. If an entry doesn't exist, like say on my DNS server, then it will resolve the IP address normally (Using what ever DNS server my DNS server uses).

    So far, I have it working, but I must specify every domain. It is only resolving hostnames that I've specified for this domain. It doesn't resolve for example, unless I tell it how. I can't even ping unless I specify the IP.

    Basically: If Bind9 has entry for domain then give IP or else, use the name server specified (or the server's DNS server) to resolve the IP.

    $ORIGIN     ; designates the start of this zone file in the namespace
    $TTL 1h                  ; default expiration time of all resource records without their own TTL value
    ; BIND data file for
    @       IN      SOA (
                                2012112726         ; Serial
                                      7200         ; Refresh
                                       120         ; Retry
                                   2419200         ; Expire
                                    604800)        ; Default TTL
    @                       IN      NS
    @                       IN      NS
    server1			IN	A
    voip			IN	A

  2. #2
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Nottingham, England
    What you want to do is pretty common, you have a private DNS server that serves your own domains but is only visible on your LAN. All your on-LAN computers are then configured to use your internal DNS server (usually by DHCP, but you can do it statically).

    In your internal DNS server's DNS configuration add 'forwarder' lines to the named.conf. This will tell it which DNS servers to look at for domains it doesn't control.

    There's a bit of an explanation about how its done here:
    Linux user #126863 - see

Posting Permissions

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