[Dnsmasq-discuss] Ping does not work but nslookup works (Use dnsmasq on Mac OS X)

Peng Yu pengyu.ut at gmail.com
Mon Dec 23 15:52:36 GMT 2013


> Use --log-queries to see check that the queries for *.oxygen.yulab are going
> to the right place. If they are, then check that 192.168.1.25 is givving the
> right answer.

I now added "log-queries"

/etc$ grep log-queries /opt/local/etc/dnsmasq.conf
log-queries
/etc$ sudo port unload dnsmasq
/etc$ sudo port load dnsmasq

I don't find where the log is from the manual. Would you please let me
know to check it?

> dig @192.168.1.25 oxygen.yulab

Here is the current output.

/etc$ ping oxygen.yulab
ping: cannot resolve oxygen.yulab: Unknown host
/etc$ nslookup oxygen.yulab
Server:        127.0.0.1
Address:    127.0.0.1#53

Name:    oxygen.yulab
Address: 192.168.1.163

/etc$ dig @192.168.1.25 oxygen.yulab

; <<>> DiG 9.8.5-P1 <<>> @192.168.1.25 oxygen.yulab
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 43460
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; QUESTION SECTION:
;oxygen.yulab.            IN    A

;; ANSWER SECTION:
oxygen.yulab.        604800    IN    A    192.168.1.163

;; AUTHORITY SECTION:
yulab.            604800    IN    NS    ns.yulab.

;; ADDITIONAL SECTION:
ns.yulab.        604800    IN    A    192.168.1.25

;; Query time: 3 msec
;; SERVER: 192.168.1.25#53(192.168.1.25)
;; WHEN: Mon Dec 23 09:48:53 CST 2013
;; MSG SIZE  rcvd: 79
/etc$ dig oxygen.yulab

; <<>> DiG 9.8.5-P1 <<>> oxygen.yulab
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 9105
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;oxygen.yulab.            IN    A

;; ANSWER SECTION:
oxygen.yulab.        604605    IN    A    192.168.1.163

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon Dec 23 09:52:01 CST 2013
;; MSG SIZE  rcvd: 46

-- 
Regards,
Peng



More information about the Dnsmasq-discuss mailing list