[Samba] Village Idiot (esq) again: My DNS is not working

Rowland Penny rowlandpenny at googlemail.com
Fri Feb 6 08:21:19 MST 2015


On 05/02/15 01:25, The Jimmest wrote:
> I spoke too soon in my last email. My DNS is not working.
>
> The host commands from the AD DC how-to all fail with NXDOMAIN.
>
> nslookup says server can't find nikola.ozco.home. Basically the same
> message.
>
> Here is a dump of my many tries.
>
> -----------------------------------------------------------------------------------------------------------------
>
> nikola ~ # export PATH=/usr/local/samba/bin:/usr/local/samba/sbin:$PATH
> nikola ~ # samba -d 3 -D
> lpcfg_load: refreshing parameters from /usr/local/samba/etc/smb.conf
> nikola ~ # cd /usr/local/samba/var
> nikola var # host -v -t SRV _ldap._tcp.ozco.home
> Trying "_ldap._tcp.ozco.home"
> Host _ldap._tcp.ozco.home not found: 3(NXDOMAIN)
> Received 113 bytes from 127.0.1.1#53 in 68 ms
> Received 113 bytes from 127.0.1.1#53 in 68 ms
> nikola var # host -t -v _kerberos._udp.ozco.home
> host: invalid type: -v
>
> nikola var # host -t -v SRV _kerberos._udp.ozco.home
> host: invalid type: -v
>
> nikola var # host -v -t SRV _kerberos._udp.ozco.home
> Trying "_kerberos._udp.ozco.home"
> Host _kerberos._udp.ozco.home not found: 3(NXDOMAIN)
> Received 117 bytes from 127.0.1.1#53 in 20 ms
> Received 117 bytes from 127.0.1.1#53 in 20 ms
> nikola var # host -v -t A nikola
> Trying "nikola"
> Host nikola not found: 3(NXDOMAIN)
> Received 99 bytes from 127.0.1.1#53 in 21 ms
> nikola var # host -v -t A nikola.ozco.home
> Trying "nikola.ozco.home"
> Host nikola.ozco.home not found: 3(NXDOMAIN)
> Received 109 bytes from 127.0.1.1#53 in 18 ms
> Received 109 bytes from 127.0.1.1#53 in 18 ms
> nikola var # ls
> cache  lib   locks      log.smbd     log.winbindd
> cores  lock  log.samba  log.wb-OZCO  run
> nikola var # tale log.wb-OZCO
> No command 'tale' found, did you mean:
>   Command 'talk' from package 'ytalk' (universe)
>   Command 'talk' from package 'talk' (universe)
>   Command 'talk' from package 'inetutils-talk' (universe)
>   Command 'ale' from package 'ale' (universe)
>   Command 'tali' from package 'tali' (universe)
> tale: command not found
> nikola var # tail log.wb-OZCO
> [2015/02/04 16:46:20.250169,  0]
> ../source3/winbindd/winbindd.c:266(winbindd_sig_term_handler)
>    Got sig[15] terminate (is_parent=0)
> nikola var # less log.wb-OZCO
> nikola var #
> nikola var # less log.samba
> nikola var # nslookup -po=53 nikola.oco.home
> Server:        127.0.1.1
> Address:    127.0.1.1#53
>
> ** server can't find nikola.oco.home: NXDOMAIN
>
> nikola var # ping nikola
> PING nikola (127.0.1.1) 56(84) bytes of data.
> 64 bytes from nikola (127.0.1.1): icmp_seq=1 ttl=64 time=0.033 ms
> 64 bytes from nikola (127.0.1.1): icmp_seq=2 ttl=64 time=0.032 ms
> ^C
> --- nikola ping statistics ---
> 2 packets transmitted, 2 received, 0% packet loss, time 999ms
> rtt min/avg/max/mdev = 0.032/0.032/0.033/0.005 ms
> nikola var # ping nikola.ozco.home
> ping: unknown host nikola.ozco.home
> nikola var # dig --help
> Invalid option: --help
> Usage:  dig [@global-server] [domain] [q-type] [q-class] {q-opt}
>              {global-d-opt} host [@local-server] {local-d-opt}
>              [ host [@local-server] {local-d-opt} [...]]
>
> Use "dig -h" (or "dig -h | more") for complete list of options
> nikola var # dig nikola.ozco.home
>
> ; <<>> DiG 9.9.5-3ubuntu0.1-Ubuntu <<>> nikola.ozco.home
> ;; global options: +cmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 4264
> ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
>
> ;; OPT PSEUDOSECTION:
> ; EDNS: version: 0, flags:; udp: 512
> ;; QUESTION SECTION:
> ;nikola.ozco.home.        IN    A
>
> ;; AUTHORITY SECTION:
> .            1795    IN    SOA    a.root-servers.net. nstld.verisign-grs.com.
> 2015020401 1800 900 604800 86400
>
> ;; Query time: 17 msec
> ;; SERVER: 127.0.1.1#53(127.0.1.1)
> ;; WHEN: Wed Feb 04 17:05:19 PST 2015
> ;; MSG SIZE  rcvd: 120
>
> nikola var # cat resolv.conf
> cat: resolv.conf: No such file or directory
> nikola var # 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.1.1
> nikola var # man resolvconf(8)
> bash: syntax error near unexpected token `('
> nikola var # man resolvconf
> nikola var # dig nikola.ozco.home
>
> ; <<>> DiG 9.9.5-3ubuntu0.1-Ubuntu <<>> nikola.ozco.home
> ;; global options: +cmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 19058
> ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
>
> ;; OPT PSEUDOSECTION:
> ; EDNS: version: 0, flags:; udp: 512
> ;; QUESTION SECTION:
> ;nikola.ozco.home.        IN    A
>
> ;; AUTHORITY SECTION:
> .            1797    IN    SOA    a.root-servers.net. nstld.verisign-grs.com.
> 2015020401 1800 900 604800 86400
>
> ;; Query time: 17 msec
> ;; SERVER: 127.0.1.1#53(127.0.1.1)
> ;; WHEN: Wed Feb 04 17:08:43 PST 2015
> ;; MSG SIZE  rcvd: 120
>
> nikola var # host -v -t SRV _ldap._tcp.ozco.home
> Trying "_ldap._tcp.ozco.home"
> Host _ldap._tcp.ozco.home not found: 3(NXDOMAIN)
> Received 113 bytes from 127.0.1.1#53 in 18 ms
> Received 113 bytes from 127.0.1.1#53 in 19 ms
> nikola var # host -v -t SRV _ldap._tcp.OZCO.HOME
> Trying "_ldap._tcp.OZCO.HOME"
> Host _ldap._tcp.OZCO.HOME not found: 3(NXDOMAIN)
> Received 113 bytes from 127.0.1.1#53 in 17 ms
> Received 113 bytes from 127.0.1.1#53 in 17 ms
> nikola var # nslookup -po=53 nikola.ozco.home
> Server:        127.0.1.1
> Address:    127.0.1.1#53
>
> ** server can't find nikola.ozco.home: NXDOMAIN
>
> nikola var # ls
> cache  lib   locks      log.smbd     log.winbindd
> cores  lock  log.samba  log.wb-OZCO  run
>
> --------------------------------------------------------------------------------------------------------------------------------------
>
> Attached is my log.samba.
>
> and /etc/services.
>
> And /etc/resolv.conf
>
> and smb.conf
>
> I really want to understand why this is happening. I'm trying to learn
> samba and AD in the hopes of finding a better job.
>
>

You cannot attach anything to a mail sent to the samba mailing list, it 
just gets stripped off, so try again and this time cut & paste them into 
the message, and this time, please answer the questions I asked earlier.

Rowland



More information about the samba mailing list