I try to make my subdomain operable on Centos 5 and Tinydns. I've added :
+en.mydomain.com:ip_address:3600
saved and did:
make
with no errors. But ping does not show this subdomain. What can I do to make my subdomain working using subdomain and how to diagnoze what is wrong now?
Accorindg to @womble i provide results of "Checking addresses of your computers" from: http://cr.yp.to/djbdns/run-server.html
- Reverse lookups: 12 my_ip.in-addr.arpa: (not good?).
- I get some netstat results
- Tinydns-get size is 92 so it's less than 512.
- Dnsq on en.mydomain.com issued on my server ip returns valid answer
- Dnsqr en.mydomain.com does not return answer (it's not good right?)
- /var/tinydns/log/main folder is empty so i can not diagnose log file (how to enable it?)
Dnstrace shows:
0:.:.:start:NS:.:. 0:.:.:start:A:.:my_ip 1:en.mydomain.com:.:my_ip:tx 1:en.mydomain.com:.:my_ip:A:en.mydomain.com:my_ip 1:en.mydomain.com:.:my_ip:NS:mydomain.com:ns.lxlabs.com 1:en.mydomain.com:.:my_ip:NS:mydomain.com:ns1.lxlabs.com 1:en.mydomain.com:.:my_ip:answer:en.mydomain.com 86400 A my_ip 1:ns.lxlabs.com:.:my_ip:tx 1:ns.lxlabs.com:.:my_ip:ALERT:query failed; timed out 1:ns1.lxlabs.com:.:my_ip:tx 1:ns1.lxlabs.com:.:my_ip:ALERT:query failed; timed out
Hope this help to provide answer.
Don't use ping. Query the nameserver in question directly with nslook, dig, dnsq or whatever your favourite tool is.
Also, the "Checking addresses of your computers" part of http://cr.yp.to/djbdns/run-server.html tells you how to query the tinydns data directly.
Edit: Try see if tinydns is listening on the correct interface, run:
netstat -an | grep ".53 "
Which will show all the processes listening on port 53. There should be an entry for your external interface and not just loopback.
You can try to talk to the authoritative DNS server itself, rather than going through a resolver:
With DNS, if you think you've done it right, it's generally a matter of waiting - for all the other resolvers (for the DJBdns set of programs, that would be dnscache) to clear, or you can force it ("svc -t /service/dnscache") to clear.
Ping is not the right thing though - 'dnsip', or the older 'dig', above.
You say you ran make but did you restart your server with
svc -t /service/tinydns
?Change the /service/tinydns path to match your setup of course.