# How to bind a server configured for such?

**URL:** <https://forums.rockylinux.org/t/how-to-bind-a-server-configured-for-such/7605>\
**Category:** Rocky Linux Help & Support\
**Created:** [October 20, 2022, 10:46am UTC](https://forums.rockylinux.org/t/how-to-bind-a-server-configured-for-such/7605 "2022-10-20T10:46:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rlamintegrator](https://avatars.discourse-cdn.com/v4/letter/r/bb73d2/32.png) [@rlamintegrator](https://forums.rockylinux.org/u/rlamintegrator)\
**Post date:** [October 20, 2022, 10:46am UTC](https://forums.rockylinux.org/t/how-to-bind-a-server-configured-for-such/7605/1 "2022-10-20T10:46:59Z")

</div>

Local named server(without internet).  
Bind Listen on interfaces:  
lo(127.0.0.1), vlan43(192.168.43.1), vlan41(192.168.41.1)

from a neighboring device(192.168.43.77) comes A request to the DNS server(192.168.43.1):  
SERVER22: type A, class IN

In the query does not specify a search zone…  
How to configure bind server to look for this requested hostname in the [myzone.org](http://myzone.org)  
?

---

<div class="post-metadata">

**Author:** ![rlamintegrator](https://avatars.discourse-cdn.com/v4/letter/r/bb73d2/32.png) [@rlamintegrator](https://forums.rockylinux.org/u/rlamintegrator)\
**Post date:** [October 23, 2022, 8:51am UTC](https://forums.rockylinux.org/t/how-to-bind-a-server-configured-for-such/7605/2 "2022-10-23T08:51:43Z")

</div>

Problem resolved:  
I used “view” and created Privet Root Zone for this “view”.  
for example:  
vi /etc/named.conf  
and add this:

```auto
acl amytestacl {
    192.168.143.111/32; 192.168.143.116/32; 10.0.17.13/32;
};

view "amytestview" {
    match-clients { amytestacl; };
    zone "." in {
        type master;
        file "root8765.zone";
    };
};

```

cat /var/named/root8765.zone

```auto
@ 1D IN SOA localhost. root.localhost. (
        20221022130500 ;
        3H ;
        15M ;
        1W ;
        1D ) ;

1D IN NS localhost.

localhost. 1D IN A 127.0.0.1
tratata432 1D IN A 192.168.143.110

```

Attention !!!:

1. all other zones must be placed in a separate viewer  
example:

```auto
view "dall" {
   match-clients { any; };

zone "." IN {
        type hint;
        file "named.ca";
};

zone "myoffice.ua" IN {
// allow-transfer { any; };
        allow-transfer { 172.8.21.4; 192.168.121.8;};
        also-notify { 172.8.21.4; 192.168.121.8; };
        file "forward.myoffice.ua";
.......
};

2) viewer "amytestview" must be before the viewer "dall" in the /etc/named.conf file !

```

---

<div class="post-metadata">

**Author:** ![brian](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/brian/32/5777_2.png) [@brian](https://forums.rockylinux.org/u/brian)\
**Post date:** [August 25, 2023, 3:36am UTC](https://forums.rockylinux.org/t/how-to-bind-a-server-configured-for-such/7605/3 "2023-08-25T03:36:50Z")

</div>


