LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

named.conf

main configuration file for BIND, the most widely used DNS server software

TLDR

Basic options block
$ options { directory "/var/named"; };
copy
Define zone
$ zone "example.com" { type master; file "example.com.zone"; };
copy
Forward-only resolver
$ options { forwarders { 8.8.8.8; }; forward only; };
copy
Allow queries from network
$ options { allow-query { 192.168.1.0/24; }; };
copy

SYNOPSIS

/etc/named.conf or /etc/bind/named.conf

DESCRIPTION

named.conf is the main configuration file for BIND (Berkeley Internet Name Domain), the most widely used DNS server software. It defines zones, options, and access controls.The configuration uses a C-like syntax with blocks and statements.

PARAMETERS

options

Global server options.
zone
Zone definition block.
acl
Access control list.
logging
Logging configuration.
view
View definition.
include
Include external file.

EXAMPLE CONFIG

$ acl internal { 192.168.0.0/16; localhost; };

options {
    directory "/var/named";
    allow-query { internal; };
    recursion yes;
    forwarders { 8.8.8.8; 8.8.4.4; };
};

zone "example.com" {
    type master;
    file "zones/example.com.zone";
};
copy

CAVEATS

Syntax errors prevent BIND from starting. Use named-checkconf to validate. Permissions on zone files matter.

SEE ALSO

named(8), rndc(8), dig(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid