خرید بک لینک

Vote count: 0

I a begier of setting up a server. I tried to setup my local DNS cash server with "unbound". It looks working with ping but it does not work with undound-host. I copy my setting for unbound. If someone could find problem, please let me know.

in file1,

server:

    # receptive address
    interface: 127.0.0.1
    interface: 192.168.2.104

    # privalage of client: how clients can ask to server
    access-control: 127.0.0.1 allow
    access-control: 192.168.0.0/16 allow

    private-address: 192.168.0.0/16

in file2,

#query
# local-data: "hostname" "class: IN=inteet" "A = map to Ip4" "address"
local-data: "pc1.test.lan. IN A 192.168.2.104"

#reverse query
# local-data: "address" "PTR = pointer to hostname"
local-data: "104.2.168.192.in-addr.arpa. PTR pc1.test.lan."

#local-zone: <zonename> <behavior_at_failure>
local-zone: "lan." static #static search only in the domain. Inhibit recursive searching

tests

(0) /sbin/ifconfig shows local address (1) copy config files under /etc/unbound/unbound.conf.d/ (2) change permission by chmod 600 (3) restart unbound unbound-control stop and start (4) test unbound-host pc1.test.lan

inet addr:192.168.2.104
copy and chmod 600 unbound_server.conf
copy and chmod 600 unbound_local_data.conf
unbound-control stop
ok
unbound-control start
sudo unbound-host -v "pc1.test.lan"
Host pc1.test.lan not found: 3(NXDOMAIN). (insecure)
PING pc1.test.lan (192.168.2.104) 56(84) bytes of data. 64 bytes from pc1.test.lan (192.168.2.104): icmp_seq=1 ttl=64 time=0.034 ms

unbound looks working with ping but not with unbound-host. Thank you very much.

asked 33 secs ago

برچسب: نویسنده: استخدام کار تاريخ: جمعه 24 ارديبهشت 1395 ساعت: 10:13

صفحه بندی