Hello everyone, this is my test of DNS:
hostname: host1.example.com
IP: 192.168.1.2
Router IP: 192.168.1.1
During installing freebsd,specify that search is
hosts ---- Not modified
After start local_unbound, 192.168.1.1 be configured as forwarder.
/etc/resolv.conf
Then turned off Unbound DNSSEC,
ping freebsd.org ---- OK
But
ping host1.example.com
, it will try to get IP from internet, not what I imagined would get local host1 IP.
Where am I wrong?
Thanks.
hostname: host1.example.com
IP: 192.168.1.2
Router IP: 192.168.1.1
During installing freebsd,specify that search is
example.com
and DNS is 192.168.1.1
.hosts ---- Not modified
After start local_unbound, 192.168.1.1 be configured as forwarder.
/etc/resolv.conf
search example.com
# nameserver 192.168.1.1
nameserver 127.0.0.1
options edns0
Then turned off Unbound DNSSEC,
ping freebsd.org ---- OK
But
ping host1.example.com
, it will try to get IP from internet, not what I imagined would get local host1 IP.
Where am I wrong?
Thanks.