[Dnsmasq-discuss] Why is a different TTL resturned for bare and FQDN queries?

Wojtek Swiatek w at swtk.info
Sat Feb 2 21:56:15 GMT 2019


switch-3 is a device which gets its IP via DHCP from dnsmasq. When trying
to resolve it on dnsmasq (which expands hosts):

--------------------------------------------------------------------------------------------
root at rpi1 ~# dig @10.200.0.40 switch-3

; <<>> DiG 9.11.4-4-Raspbian <<>> @10.200.0.40 switch-3
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 57399
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;switch-3.                      IN      A

;; ANSWER SECTION:
switch-3.               0       IN      A       10.200.0.123

;; Query time: 0 msec
;; SERVER: 10.200.0.40#53(10.200.0.40)
;; WHEN: Sat Feb 02 22:52:01 CET 2019
;; MSG SIZE  rcvd: 53

--------------------------------------------------------------------------------------------

root at rpi1 ~# dig @10.200.0.40 switch-3.swtk.info

; <<>> DiG 9.11.4-4-Raspbian <<>> @10.200.0.40 switch-3.swtk.info
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 39739
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;switch-3.swtk.info.            IN      A

;; ANSWER SECTION:
switch-3.swtk.info.     600     IN      A       10.200.0.123

;; Query time: 0 msec
;; SERVER: 10.200.0.40#53(10.200.0.40)
;; WHEN: Sat Feb 02 22:52:06 CET 2019
;; MSG SIZE  rcvd: 63

--------------------------------------------------------------------------------------------


So one response (to the bare query provides a TTL of 0, and the other one
(FQDN) - 600.

I do not know whether this normal/expected or not, and whether this is a
problem or not?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20190202/3d4fa921/attachment.html>


More information about the Dnsmasq-discuss mailing list