태그 보관물: dnsmasq

dnsmasq

로컬 서버가 해결되지 않는 이유는 무엇입니까? DO

로컬 네트워크에서 호스팅하는 특정 도메인 이름을 웹 브라우저를 사용하여 ping하거나 찾아 보려고하면 작동하지 않습니다. 그러나 dignslookup 은 세부 정보를 올바르게 반환합니다. 이 문제를 해결하려면 어떻게해야합니까?

로컬 네트워크의 DNS 서버와 DHCP 서버는 Windows 클라이언트에서 제대로 작동합니다.

$ ping ns1.domain.local
ping: unknown host ns1.domain.local
aaron@aaron-laptop:~
$ nslookup ns1.domain.local
Server:     127.0.0.1
Address:    127.0.0.1#53

Name:    ns1.domain.local
Address: 172.16.0.254

$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.0.1
search domain.local

$ nm-tool

NetworkManager Tool

State: connected (global)

- Device: eth0  [Wired connection 1] -------------------------------------------

  IPv4 Settings:
    Address:         172.16.0.93
    Prefix:          24 (255.255.255.0)
    Gateway:         172.16.0.2

    DNS:             172.16.0.254

</pre>

**Added additional info**

As per http://askubuntu.com/a/146310/10998
> For some reason avahi-daemon interferes with name resolver
<pre>
ping ns1
PING ns1.domain.local (172.16.0.254) 56(84) bytes of data.
64 bytes from ns1.domain.local (172.16.0.254): icmp_req=1 ttl=64 time=0.381 ms



답변

/etc/nsswitch.conf 파일을 편집하십시오 .

cat /etc/nsswitch.conf
...
#hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4
hosts:          files mdns4_minimal dns [NOTFOUND=return] mdns4
...

그 변화는 나를 위해 고쳤다. mdns 는 DNS보다 빠른 DNS 서비스의 특정 구현입니다. 이름을 올바르게 확인하지 않으며 [NOTFOUND = return] 옵션을 사용하면 표준 DNS가 사용되지 않습니다. 이것은 대부분의 인터넷에서 잘 작동하지만 어떤 이유로 든 사무실 해상도에서는 작동하지 않습니다.

DNS를 포함하도록 해상도를 변경하여 이제 예상대로 도메인 컨트롤러를 핑할 수 있습니다. 로컬 오피스 도메인에서 실행되는 다른 서비스뿐만 아니라

ping ns1.bidorbuy.local
PING ns1.domain.local (172.16.0.254) 56(84) bytes of data.
64 bytes from controler.domain.local (172.16.0.254): icmp_req=1 ttl=64 time=0.394 ms

ping office-blog.domain.local
PING officewebserver.domain.local (172.16.0.252) 56(84) bytes of data.
64 bytes from officewebserver.domain.local (172.16.0.252): icmp_req=1 ttl=64 time=0.914 ms


답변

avahi-daemon을 비활성화 할 수 있습니다. 어떤 이유로 avahi-daemon은 이름 확인자를 방해합니다. 나에게 부작용은 ns1을 핑하면 작동하지만 FQDN을 사용하려고하면 작동하지 않는다는 것입니다.


답변