the :iscman:`named.conf` file has been modified as shown:
.. code-block:: c
- :linenos:
// authoritative primary named.conf file
// options clause defining the server-wide properties
The :iscman:`named.conf` file has been modified as shown:
.. code-block:: c
- :linenos:
// authoritative secondary named.conf file
// options clause defining the server-wide properties
as required by the user.
.. code-block:: c
- :linenos:
// base named.conf file
// Recommended that you always maintain a change log in this file as shown here
(domain) name is **localhost.**
.. code-block::
- :linenos:
$TTL 3h
localhost. SOA localhost. nobody.localhost. 42 1d 12h 1w 3h
``localhost.rev`` is shown for completeness:
.. code-block::
- :linenos:
$TTL 1D
@ IN SOA localhost. root.localhost. (
**254.168.192.in-addr.arpa**.
.. code-block::
- :linenos:
; reverse map zone file for 192.168.254.4 only
$TTL 2d ; 172800 seconds
It is therefore a **closed** resolver and cannot be used in wider network attacks.
.. code-block:: c
- :linenos:
// resolver named.conf file
// Two corporate subnets we wish to allow queries from
provided<selective_forward_sample>`.
.. code-block:: c
- :linenos:
// forwarding named.conf file
// Two corporate subnets we wish to allow queries from
those IPs from which it will accept recursive queries.
.. code-block:: c
- :linenos:
// selective forwarding named.conf file
// Two corporate subnets we wish to allow queries from