[Bug 956655] [NEW] dnsmasq spams out thousands of queries

Martin Pool mbp at canonical.com
Fri Mar 16 02:40:53 UTC 2012


Public bug reported:

I've repeatedly seen dnsmasq get into a situation where it repeatedly
spams out many many queries.  I'm not sure why; perhaps it's got into a
state where it's sending queries to itself?  I'm not precisely sure how
to reproduce it but it's something to do with my machine suspending and
resuming and/or bringing up/down wired and wireless interfaces.

partial strace:


select(76, [3 5 6 7 8 11 12 13 14 15 16 17 21 25 27 29 32 37 40 42 44 46 47 49 51 53 56 58 59 60 63 66 67 71 73 75], [], [], NULL) = 1 (in [6])
recvmsg(6, {msg_name(16)={sa_family=AF_INET, sin_port=htons(6667), sin_addr=inet_addr("192.168.178.23")}, msg_iov(1)=[{"\214(\1\0\0\1\0\0\0\0\0\0\10accounts\6google\3com"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 47
sendto(16, " X\1\0\0\1\0\0\0\0\0\0\10accounts\6google\3com"..., 47, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 47
select(76, [3 5 6 7 8 11 12 13 14 15 16 17 21 25 27 29 32 37 40 42 44 46 47 49 51 53 56 58 59 60 63 66 67 71 73 75], [], [], NULL) = 1 (in [6])
recvmsg(6, {msg_name(16)={sa_family=AF_INET, sin_port=htons(6667), sin_addr=inet_addr("192.168.178.23")}, msg_iov(1)=[{"\214(\1\0\0\1\0\0\0\0\0\0\10accounts\6google\3com"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 47
sendto(16, " X\1\0\0\1\0\0\0\0\0\0\10accounts\6google\3com"..., 47, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 47
select(76, [3 5 6 7 8 11 12 13 14 15 16 17 21 25 27 29 32 37 40 42 44 46 47 49 51 53 56 58 59 60 63 66 67 71 73 75], [], [], NULL) = 1 (in [6])
recvmsg(6, {msg_name(16)={sa_family=AF_INET, sin_port=htons(42547), sin_addr=inet_addr("192.168.178.23")}, msg_iov(1)=[{"\6\216\1\0\0\1\0\0\0\0\0\0\10accounts\6google\3com"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 47
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 18
fcntl(18, F_GETFL)                      = 0x2 (flags O_RDWR)
fcntl(18, F_SETFL, O_RDWR|O_NONBLOCK)   = 0
bind(18, {sa_family=AF_INET, sin_port=htons(52043), sin_addr=inet_addr("0.0.0.0")}, 16) = 0
sendto(18, "\27\376\1\0\0\1\0\0\0\0\0\0\10accounts\6google\3com"..., 47, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 47
select(76, [3 5 6 7 8 11 12 13 14 15 16 17 18 21 25 27 29 32 37 40 42 44 46 47 49 51 53 56 58 59 60 63 66 67 71 73 75], [], [], NULL) = 1 (in [6])
recvmsg(6, {msg_name(16)={sa_family=AF_INET, sin_port=htons(42547), sin_addr=inet_addr("192.168.178.23")}, msg_iov(1)=[{"\6\216\1\0\0\1\0\0\0\0\0\0\10accounts\6google\3com"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 47
sendto(18, "\27\376\1\0\0\1\0\0\0\0\0\0\10accounts\6google\3com"..., 47, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 47
select(76, [3 5 6 7 8 11 12 13 14 15 16 17 18 21 25 27 29 32 37 40 42 44 46 47 49 51 53 56 58 59 60 63 66 67 71 73 75], [], [], NULL) = 1 (in [6])
recvmsg(6, {msg_name(16)={sa_family=AF_INET, sin_port=htons(42547), sin_addr=inet_addr("192.168.178.23")}, msg_iov(1)=[{"\6\216\1\0\0\1\0\0\0\0\0\0\10accounts\6google\3com"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 47
sendto(18, "\27\376\1\0\0\1\0\0\0\0\0\0\10accounts\6google\3com"..., 47, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 47
select(76, [3 5 6 7 8 11 12 13 14 15 16 17 18 21 25 27 29 32 37 40 42 44 46 47 49 51 53 56 58 59 60 63 66 67 71 73 75], [], [], NULL) = 1 (in [6])
recvmsg(6, {msg_name(16)={sa_family=AF_INET, sin_port=htons(42547), sin_addr=inet_addr("192.168.178.23")}, msg_iov(1)=[{"\6\216\1\0\0\1\0\0\0\0\0\0\10accounts\6google\3com"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 47
sendto(18, "\27\376\1\0\0\1\0\0\0\0\0\0\10accounts\6google\3com"..., 47, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 47
select(76, [3 5 6 7 8 11 12 13 14 15 16 17 18 21 25 27 29 32 37 40 42 44 46 47 49 51 53 56 58 59 60 63 66 67 71 73 75], [], [], NULL) = 1 (in [6])
recvmsg(6, {msg_name(16)={sa_family=AF_INET, sin_port=htons(42547), sin_addr=inet_addr("192.168.178.23")}, msg_iov(1)=[{"\6\216\1\0\0\1\0\0\0\0\0\0\10accounts\6google\3com"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 47
sendto(18, "\27\376\1\0\0\1\0\0\0\0\0\0\10accounts\6google\3com"..., 47, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 47
select(76, [3 5 6 7 8 11 12 13 14 15 16 17 18 21 25 27 29 32 37 40 42 44 46 47 49 51 53 56 58 59 60 63 66 67 71 73 75], [], [], NULL) = 1 (in [6])
recvmsg(6, {msg_name(16)={sa_family=AF_INET, sin_port=htons(42547), sin_addr=inet_addr("192.168.178.23")}, msg_iov(1)=[{"\6\216\1\0\0\1\0\0\0\0\0\0\10accounts\6google\3com"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 47
sendto(18, "\27\376\1\0\0\1\0\0\0\0\0\0\10accounts\6google\3com"..., 47, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 47
select(76, [3 5 6 7 8 11 12 13 14 15 16 17 18 21 25 27 29 32 37 40 42 44 46 47 49 51 53 56 58 59 60 63 66 67 71 73 75], [], [], NULL) = 1 (in [6])
recvmsg(6, {msg_name(16)={sa_family=AF_INET, sin_port=htons(42547), sin_addr=inet_addr("192.168.178.23")}, msg_iov(1)=[{"\6\216\1\0\0\1\0\0\0\0\0\0\10accounts\6google\3com"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 47
sendto(18, "\27\376\1\0\0\1\0\0\0\0\0\0\10accounts\6google\3com"..., 47, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 47
select(76, [3 5 6 7 8 11 12 13 14 15 16 17 18 21 25 27 29 32 37 40 42 44 46 47 49 51 53 56 58 59 60 63 66 67 71 73 75], [], [], NULL) = 1 (in [6])
recvmsg(6, {msg_name(16)={sa_family=AF_INET, sin_port=htons(42547), sin_addr=inet_addr("192.168.178.23")}, msg_iov(1)=[{"\6\216\1\0\0\1\0\0\0\0\0\0\10accounts\6google\3com"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 47
sendto(18, "\27\376\1\0\0\1\0\0\0\0\0\0\10accounts\6google\3com"..., 47, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 47
select(76, [3 5 6 7 8 11 12 13 14 15 16 17 18 21 25 27 29 32 37 40 42 44 46 47 49 51 53 56 58 59 60 63 66 67 71 73 75], [], [], NULL) = 1 (in [6])
recvmsg(6, {msg_name(16)={sa_family=AF_INET, sin_port=htons(44461), sin_addr=inet_addr("192.168.178.23")}, msg_iov(1)=[{"\237\30\1\0\0\1\0\0\0\0\0\0\10accounts\6google\3com"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 47
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 19
fcntl(19, F_GETFL)                      = 0x2 (flags O_RDWR)
fcntl(19, F_SETFL, O_RDWR|O_NONBLOCK)   = 0
bind(19, {sa_family=AF_INET, sin_port=htons(58093), sin_addr=inet_addr("0.0.0.0")}, 16) = 0
sendto(19, "SQ\1\0\0\1\0\0\0\0\0\0\10accounts\6google\3com"..., 47, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 47
select(76, [3 5 6 7 8 11 12 13 14 15 16 17 18 19 21 25 27 29 32 37 40 42 44 46 47 49 51 53 56 58 59 60 63 66 67 71 73 75], [], [], NULL) = 1 (in [6])
recvmsg(6, {msg_name(16)={sa_family=AF_INET, sin_port=htons(44461), sin_addr=inet_addr("192.168.178.23")}, msg_iov(1)=[{"\237\30\1\0\0\1\0\0\0\0\0\0\10accounts\6google\3com"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 47
sendto(19, "SQ\1\0\0\1\0\0\0\0\0\0\10accounts\6google\3com"..., 47, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 47
select(76, [3 5 6 7 8 11 12 13 14 15 16 17 18 19 21 25 27 29 32 37 40 42 44 46 47 49 51 53 56 58 59 60 63 66 67 71 73 75], [], [], NULL) = 1 (in [6])
recvmsg(6, {msg_name(16)={sa_family=AF_INET, sin_port=htons(44461), sin_addr=inet_addr("192.168.178.23")}, msg_iov(1)=[{"\237\30\1\0\0\1\0\0\0\0\0\0\10accounts\6google\3com"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 47
sendto(19, "SQ\1\0\0\1\0\0\0\0\0\0\10accounts\6google\3com"..., 47, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 47
select(76, [3 5 6 7 8 11 12 13 14 15 16 17 18 19 21 25 27 29 32 37 40 42 44 46 47 49 51 53 56 58 59 60 63 66 67 71 73 75], [], [], NULL) = 1 (in [6])
recvmsg(6, {msg_name(16)={sa_family=AF_INET, sin_port=htons(44461), sin_addr=inet_addr("192.168.178.23")}, msg_iov(1)=[{"\237\30\1\0\0\1\0\0\0\0\0\0\10accounts\6google\3com"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 47
sendto(19, "SQ\1\0\0\1\0\0\0\0\0\0\10accounts\6google\3com"..., 47, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 47
select(76, [3 5 6 7 8 11 12 13 14 15 16 17 18 19 21 25 27 29 32 37 40 42 44 46 47 49 51 53 56 58 59 60 63 66 67 71 73 75], [], [], NULL) = 1 (in [6])

** Affects: dnsmasq (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to dnsmasq in Ubuntu.
https://bugs.launchpad.net/bugs/956655

Title:
  dnsmasq spams out thousands of queries

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dnsmasq/+bug/956655/+subscriptions



More information about the Ubuntu-server-bugs mailing list