Clustering Dockerized Elasticsearch with multiple Docker Host - docker

Trying to make it clustering with docker compose.
I have two elasticsearch docker containers which are deployed in different Docker Hosts.
docker version: 18.06.3-ce
elasticsearch : 6.5.2
docker-compose.yml for docker-container-1
services:
elasticsearch:
restart: always
hostname: elasticsearch
image: docker-elk/elasticsearch:1.0.0
build:
context: elasticsearch
dockerfile: Dockerfile
environment:
discovery.type: zen
ports:
- 9200:9200
- 9300:9300
env_file:
- ./elasticsearch/elasticsearch.env
volumes:
- elasticsearch_data:/usr/share/elasticsearch/data
docker-compose.yml for docker-container-2
services:
elasticsearch:
restart: always
hostname: elasticsearch
image: docker-elk/elasticsearch:1.0.0
build:
context: elasticsearch
dockerfile: Dockerfile
environment:
discovery.type: zen
ports:
- 9200:9200
- 9300:9300
env_file:
- ./elasticsearch/elasticsearch.env
volumes:
- elasticsearch_data:/usr/share/elasticsearch/data
elasticsearch.yml on the elasticsearch-docker-container-1 on the Docker-Host 1
xpack.security.enabled: true
cluster.name: es-cluster
node.name: es1
network.host: 0.0.0.0
node.master: true
node.data: true
transport.tcp.port: 9300
path.data: /usr/share/elasticsearch/data
path.logs: /usr/share/elasticsearch/logs
discovery.zen.minimum_master_nodes: 2
gateway.recover_after_nodes: 1
discovery.zen.ping.unicast.hosts: ["host1:9300", "host2:9300","host1:9200", "host2:9200"]
network.publish_host: host1
elasticsearch.yml on the elasticsearch-docker-container-2 on the Docker-Host 2
xpack.security.enabled: true
cluster.name: es-cluster
node.name: es2
network.host: 0.0.0.0
node.master: true
node.data: true
transport.tcp.port: 9300
path.data: /usr/share/elasticsearch/data
path.logs: /usr/share/elasticsearch/logs
discovery.zen.minimum_master_nodes: 2
gateway.recover_after_nodes: 1
discovery.zen.ping.unicast.hosts: ["host1:9300", "host2:9300","host1:9200", "host2:9200"]
network.publish_host: host2
Below is the result of GET /_cluster/health?pretty and it shows that there is only one node.
{
"cluster_name" : "dps_geocluster",
"status" : "yellow",
"timed_out" : false,
"number_of_nodes" : 1,
"number_of_data_nodes" : 1,
"active_primary_shards" : 33,
"active_shards" : 33,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 30,
"delayed_unassigned_shards" : 0,
"number_of_pending_tasks" : 0,
"number_of_in_flight_fetch" : 0,
"task_max_waiting_in_queue_millis" : 0,
"active_shards_percent_as_number" : 52.38095238095239
}
According to the document below at least three elasticsearch nodes are required.
https://www.elastic.co/guide/en/elasticsearch/reference/6.5/modules-node.html
Each elasticsearch container should be at different Docker host?

The following was the cause of error. After increasing the value of vm.max_map_count into 262144 with sysctl, it works fine.
elasticsearch_1 | [1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
Now number_of_nodes is 2.
{
"cluster_name" : "es-cluster",
"status" : "yellow",
"timed_out" : false,
"number_of_nodes" : 2,
"number_of_data_nodes" : 2,
"active_primary_shards" : 35,
"active_shards" : 37,
"relocating_shards" : 0,
"initializing_shards" : 2,
"unassigned_shards" : 31,
"delayed_unassigned_shards" : 0,
"number_of_pending_tasks" : 0,
"number_of_in_flight_fetch" : 0,
"task_max_waiting_in_queue_millis" : 0,
"active_shards_percent_as_number" : 52.85714285714286
}

Related

Redis crash when turning into replica

I am using redis through docker in my project with the latest version 5.0.7.
I keep the default config of redis, except the appendonly that i put to yes to have persistence of my data.
When i see the save config, it is empty and it does help me because i don't need rdb backup but the problem is i still have logs "DB saved on disk" even if this option is deactivate.
but the real problem is that sometime, the instance redis which is turning in "standalone" was trying to turn into replica. I think the reason is because it is doing backups according to my research. This problem is stopping redis to listen to the user requests and my API went down.
Here is my config :
1) "dbfilename"
2) "dump.rdb"
3) "requirepass"
4) ""
5) "masterauth"
6) ""
7) "cluster-announce-ip"
8) ""
9) "unixsocket"
10) ""
11) "logfile"
12) ""
13) "pidfile"
14) ""
15) "slave-announce-ip"
16) ""
17) "replica-announce-ip"
18) ""
19) "maxmemory"
20) "0"
21) "proto-max-bulk-len"
22) "536870912"
23) "client-query-buffer-limit"
24) "1073741824"
25) "maxmemory-samples"
26) "5"
27) "lfu-log-factor"
28) "10"
29) "lfu-decay-time"
30) "1"
31) "timeout"
32) "0"
33) "active-defrag-threshold-lower"
34) "10"
35) "active-defrag-threshold-upper"
36) "100"
37) "active-defrag-ignore-bytes"
38) "104857600"
39) "active-defrag-cycle-min"
40) "5"
41) "active-defrag-cycle-max"
42) "75"
43) "active-defrag-max-scan-fields"
44) "1000"
45) "auto-aof-rewrite-percentage"
46) "100"
47) "auto-aof-rewrite-min-size"
48) "67108864"
49) "hash-max-ziplist-entries"
50) "512"
51) "hash-max-ziplist-value"
52) "64"
53) "stream-node-max-bytes"
54) "4096"
55) "stream-node-max-entries"
56) "100"
57) "list-max-ziplist-size"
58) "-2"
59) "list-compress-depth"
60) "0"
61) "set-max-intset-entries"
62) "512"
63) "zset-max-ziplist-entries"
64) "128"
65) "zset-max-ziplist-value"
66) "64"
67) "hll-sparse-max-bytes"
68) "3000"
69) "lua-time-limit"
70) "5000"
71) "slowlog-log-slower-than"
72) "10000"
73) "latency-monitor-threshold"
74) "0"
75) "slowlog-max-len"
76) "128"
77) "port"
78) "6379"
79) "cluster-announce-port"
80) "0"
81) "cluster-announce-bus-port"
82) "0"
83) "tcp-backlog"
84) "511"
85) "databases"
86) "16"
87) "repl-ping-slave-period"
88) "10"
89) "repl-ping-replica-period"
90) "10"
91) "repl-timeout"
92) "60"
93) "repl-backlog-size"
94) "1048576"
95) "repl-backlog-ttl"
96) "3600"
97) "maxclients"
98) "10000"
99) "watchdog-period"
100) "0"
101) "slave-priority"
102) "100"
103) "replica-priority"
104) "100"
105) "slave-announce-port"
106) "0"
107) "replica-announce-port"
108) "0"
109) "min-slaves-to-write"
110) "0"
111) "min-replicas-to-write"
112) "0"
113) "min-slaves-max-lag"
114) "10"
115) "min-replicas-max-lag"
116) "10"
117) "hz"
118) "10"
119) "cluster-node-timeout"
120) "15000"
121) "cluster-migration-barrier"
122) "1"
123) "cluster-slave-validity-factor"
124) "10"
125) "cluster-replica-validity-factor"
126) "10"
127) "repl-diskless-sync-delay"
128) "5"
129) "tcp-keepalive"
130) "300"
131) "cluster-require-full-coverage"
132) "yes"
133) "cluster-slave-no-failover"
134) "no"
135) "cluster-replica-no-failover"
136) "no"
137) "no-appendfsync-on-rewrite"
138) "no"
139) "slave-serve-stale-data"
140) "yes"
141) "replica-serve-stale-data"
142) "yes"
143) "slave-read-only"
144) "yes"
145) "replica-read-only"
146) "yes"
147) "slave-ignore-maxmemory"
148) "yes"
149) "replica-ignore-maxmemory"
150) "yes"
151) "stop-writes-on-bgsave-error"
152) "yes"
157) "rdbchecksum"
158) "yes"
159) "activerehashing"
160) "yes"
161) "activedefrag"
162) "no"
163) "protected-mode"
164) "no"
165) "repl-disable-tcp-nodelay"
166) "no"
167) "repl-diskless-sync"
168) "no"
169) "aof-rewrite-incremental-fsync"
170) "yes"
171) "rdb-save-incremental-fsync"
172) "yes"
173) "aof-load-truncated"
174) "yes"
175) "aof-use-rdb-preamble"
176) "yes"
177) "lazyfree-lazy-eviction"
178) "no"
179) "lazyfree-lazy-expire"
180) "no"
181) "lazyfree-lazy-server-del"
182) "no"
183) "slave-lazy-flush"
184) "no"
185) "replica-lazy-flush"
186) "no"
187) "dynamic-hz"
188) "yes"
189) "maxmemory-policy"
190) "noeviction"
191) "loglevel"
192) "notice"
193) "supervised"
194) "no"
195) "appendfsync"
196) "everysec"
197) "syslog-facility"
198) "local0"
199) "appendonly"
200) "yes"
201) "dir"
202) "/data"
203) "save"
204) ""
205) "client-output-buffer-limit"
206) "normal 0 0 0 slave 268435456 67108864 60 pubsub 33554432 8388608 60"
207) "unixsocketperm"
208) "0"
209) "slaveof"
210) ""
211) "notify-keyspace-events"
212) ""
213) "bind"
214) ""
And here is the logs before redis stopped listening to the requests redis logs
Thanks for your help.
Finally i found that this commands where exectued by another client to provoke the DB saved disk and also the command SlaveOf to turn the master node into slave.
The configuration of redis is good.

How to calculate cpu utilization of container in docker using http api

I know that the CPU utilization of the container can be obtained by docker stats:
#docker stats
CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS
05076af468cd mystifying_kepler 0.02% 10.5MiB / 5.712GiB 0.18% 656B / 0B 0B / 0B 1
And I want to get this data through the HTTP api:http api.
Data i get from this http api is :
{
"read": "2019-11-26T22:18:33.027963669Z",
"preread": "2019-11-26T22:18:32.013978454Z",
"pids_stats": {
"current": 1
},
"blkio_stats": {
"io_service_bytes_recursive": [],
"io_serviced_recursive": [],
"io_queue_recursive": [],
"io_service_time_recursive": [],
"io_wait_time_recursive": [],
"io_merged_recursive": [],
"io_time_recursive": [],
"sectors_recursive": []
},
"num_procs": 0,
"storage_stats": {},
"cpu_stats": {
"cpu_usage": {
"total_usage": 361652820,
"percpu_usage": [361652820],
"usage_in_kernelmode": 50000000,
"usage_in_usermode": 100000000
},
"system_cpu_usage": 144599100000000,
"online_cpus": 1,
"throttling_data": {
"periods": 0,
"throttled_periods": 0,
"throttled_time": 0
}
},
"precpu_stats": {
"cpu_usage": {
"total_usage": 361488978,
"percpu_usage": [361488978],
"usage_in_kernelmode": 50000000,
"usage_in_usermode": 100000000
},
"system_cpu_usage": 144598090000000,
"online_cpus": 1,
"throttling_data": {
"periods": 0,
"throttled_periods": 0,
"throttled_time": 0
}
},
"memory_stats": {
"usage": 11005952,
"max_usage": 11108352,
"stats": {
"active_anon": 11005952,
"active_file": 0,
"cache": 0,
"dirty": 0,
"hierarchical_memory_limit": 9223372036854771712,
"hierarchical_memsw_limit": 9223372036854771712,
"inactive_anon": 0,
"inactive_file": 0,
"mapped_file": 0,
"pgfault": 8151,
"pgmajfault": 0,
"pgpgin": 4137,
"pgpgout": 1450,
"rss": 11005952,
"rss_huge": 0,
"total_active_anon": 11005952,
"total_active_file": 0,
"total_cache": 0,
"total_dirty": 0,
"total_inactive_anon": 0,
"total_inactive_file": 0,
"total_mapped_file": 0,
"total_pgfault": 8151,
"total_pgmajfault": 0,
"total_pgpgin": 4137,
"total_pgpgout": 1450,
"total_rss": 11005952,
"total_rss_huge": 0,
"total_unevictable": 0,
"total_writeback": 0,
"unevictable": 0,
"writeback": 0
},
"limit": 6133108736
},
"name": "/mystifying_kepler",
"id": "05076af468cdeb3d15d147a25e8ccee5f4d029ffcba1d60f14f84e2c9e25d6a9",
"networks": {
"eth0": {
"rx_bytes": 656,
"rx_packets": 8,
"rx_errors": 0,
"rx_dropped": 0,
"tx_bytes": 0,
"tx_packets": 0,
"tx_errors": 0,
"tx_dropped": 0
}
}
}
I was able to calculate the utilization of memory from the data, but I didn't find a way to get the CPU utilization .
And ideas?
You've probably solved this by now, but for the next person... This example is in Python, but the data fields and math are the same if you're making API calls.
The API returns cumulative values, so you need more than one sample - do the math using the difference between samples to get the utilization for that period. This example uses the streaming mode, which pushes an update every second.
# These initial values will seed the "last" cycle's saved values
containerCPU = 0
systemCPU = 0
container = client.containers.get(containerID)
#This function is blocking; the loop will proceed when there's a new update to iterate
for stats in container.stats(decode=True):
#Save the values from the last sample
lastContainerCPU = containerCPU
lastSystemCPU = systemCPU
#Get the container's usage, the total system capacity, and the number of CPUs
#The math returns a Linux-style %util, where 100.0 = 1 CPU core fully used
containerCPU = stats.get('cpu_stats',{}).get('cpu_usage',{}).get('total_usage')
systemCPU = stats.get('cpu_stats',{}).get('system_cpu_usage')
numCPU = len(stats.get('cpu_stats',{}).get('cpu_usage',{}).get('percpu_usage',0))
# Skip the first sample (result will be wrong because the saved values are 0)
if lastContainerCPU and lastSystemCPU:
cpuUtil = (containerCPU - lastContainerCPU) / (systemCPU - lastSystemCPU)
cpuUtil = cpuUtil * numCPU * 100
print(cpuUtil)

in memory amqp for dev and testing

I am using rabbit in my services, but for restrictions I cant download on local. For that I want to use in memory broker and figured qpic can work. I have below configuration and in logs I can see qpid broker starts fine but when spring boot tries to send message it cant connect.
#Bean
Broker broker() throws Exception {
org.apache.qpid.server.Broker broker = new org.apache.qpid.server.Broker();
BrokerOptions brokerOptions = new BrokerOptions();
brokerOptions.setConfigProperty("qpid.amqp_port", "5672");
brokerOptions.setConfigProperty("qpid.broker.defaultPreferenceStoreAttributes", "{\"type\": \"Noop\"}");
brokerOptions.setConfigProperty("qpid.vhost", "/");
brokerOptions.setConfigurationStoreType("Memory");
brokerOptions.setStartupLoggedToSystemOut(false);
broker.startup(brokerOptions);
return broker;
}
in resource I have initial-config as below:
{
"name": "Embedded Test Broker",
"modelVersion": "6.1",
"authenticationproviders" : [{
"name": "password",
"type": "Plain",
"secureOnlyMechanisms": [],
"users": [{"name": "guest", "password": "guest", "type": "managed"}]
}],
"ports": [{
"name": "AMQP",
"port": "${qpid.amqp_port}",
"authenticationProvider": "password",
"protocols": [ "AMQP_0_9_1" ],
"transports": [ "TCP" ],
"virtualhostaliases": [{
"name": "${qpid.vhost}",
"type": "nameAlias"
}]
}],
"virtualhostnodes" : [{
"name": "${qpid.vhost}",
"type": "Memory",
"virtualHostInitialConfiguration": "{ \"type\": \"Memory\" }"
}]
}
Error I am getting
2018-08-15 19:55:07 CachingConnectionFactory - Attempting to connect to: [localhost:5672]
2018-08-15 19:55:07 NonBlockingConnection - Identified transport encryption as NONE
2018-08-15 19:55:07 NonBlockingConnection - Read 8 byte(s)
2018-08-15 19:55:07 TaskExecutorImpl - Submitting Task['create' on '/127.0.0.1:56891(?)'] to executor Broker-Config
2018-08-15 19:55:07 TaskExecutorImpl - Performing Task['create' on '/127.0.0.1:56891(?)']
2018-08-15 19:55:07 open - [con:2(/127.0.0.1:56891)] CON-1001 : Open : Destination : AMQP(127.0.0.1:5672) : Protocol Version : 0-9-1
2018-08-15 19:55:07 TaskExecutorImpl - Running runnable com.google.common.util.concurrent.Futures$6#3979d0 through executor interface
2018-08-15 19:55:07 TaskExecutorImpl - Running runnable com.google.common.util.concurrent.Futures$6#db842 through executor interface
2018-08-15 19:55:07 TaskExecutorImpl - Running runnable com.google.common.util.concurrent.Futures$6#4c9750 through executor interface
2018-08-15 19:55:07 AMQPConnection_0_8Impl - RECV ProtocolHeader [AMQP0091 ]
2018-08-15 19:55:07 TaskExecutorImpl - Task['create' on '/127.0.0.1:56891(?)'] performed successfully with result: null
2018-08-15 19:55:07 AMQPConnection_0_8Impl - SEND: Frame channelId: 0, bodyFrame: [ConnectionStartBodyImpl: versionMajor=0, versionMinor=9, serverProperties={product=[LONG_STRING: qpid], version=[LONG_STRING: 6.1.1], qpid.build=[LONG_STRING: 1775107], qpid.instance_name=[LONG_STRING: Embedded Test Broker], qpid.close_when_no_route=[LONG_STRING: true], qpid.message_compression_supported=[LONG_STRING: true], qpid.confirmed_publish_supported=[LONG_STRING: true], qpid.virtualhost_properties_supported=[LONG_STRING: true], qpid.queue_lifetime_supported=[LONG_STRING: true]}, mechanisms=[80, 76, 65, 73, 78, 32, 67, 82, 65, 77, 45, 77, 68, 53, 32, 83, 67, 82, 65, 77, 45, 83, 72, 65, 45, 49, 32, 83, 67, 82, 65, 77, 45, 83, 72, 65, 45, 50, 53, 54], locales=[101, 110, 95, 85, 83]]
2018-08-15 19:55:07 FieldTable - FieldTable::writeToBuffer: Writing encoded length of 308...
2018-08-15 19:55:07 FieldTable - {product=[LONG_STRING: qpid], version=[LONG_STRING: 6.1.1], qpid.build=[LONG_STRING: 1775107], qpid.instance_name=[LONG_STRING: Embedded Test Broker], qpid.close_when_no_route=[LONG_STRING: true], qpid.message_compression_supported=[LONG_STRING: true], qpid.confirmed_publish_supported=[LONG_STRING: true], qpid.virtualhost_properties_supported=[LONG_STRING: true], qpid.queue_lifetime_supported=[LONG_STRING: true]}
2018-08-15 19:55:07 NonBlockingConnection - Written 379 bytes
2018-08-15 19:55:07 NonBlockingConnection - Read 0 byte(s)
2018-08-15 19:55:07 NonBlockingConnection - Read 443 byte(s)
2018-08-15 19:55:07 AMQPConnection_0_8Impl - RECV ConnectionStartOk[ clientProperties: {connection_name=[LONG_STRING: rabbitConnectionFactory#1800efd:1], product=[LONG_STRING: RabbitMQ], copyright=[LONG_STRING: Copyright (c) 2007-2017 Pivotal Software, Inc.], capabilities=[FIELD_TABLE: {exchange_exchange_bindings=[BOOLEAN: true], connection.blocked=[BOOLEAN: true], authentication_failure_close=[BOOLEAN: true], basic.nack=[BOOLEAN: true], publisher_confirms=[BOOLEAN: true], consumer_cancel_notify=[BOOLEAN: true]}], information=[LONG_STRING: Licensed under the MPL. See http://www.rabbitmq.com/], version=[LONG_STRING: 5.1.2], platform=[LONG_STRING: Java]} mechanism: PLAIN response: ******** locale: en_US ]
2018-08-15 19:55:07 AMQPConnection_0_8Impl - SASL Mechanism selected: PLAIN Locale : en_US
2018-08-15 19:55:07 AMQPConnection_0_8Impl - Connected as: Subject:
Principal: guest
2018-08-15 19:55:07 AMQPConnection_0_8Impl - SEND: Frame channelId: 0, bodyFrame: [ConnectionTuneBodyImpl: channelMax=256, frameMax=262136, heartbeat=0]
2018-08-15 19:55:07 BrokerDecoder - Frame handled in 1 ms.
2018-08-15 19:55:07 NonBlockingConnection - Written 20 bytes
2018-08-15 19:55:07 NonBlockingConnection - Read 0 byte(s)
2018-08-15 19:55:07 NonBlockingConnection - Read 36 byte(s)
2018-08-15 19:55:07 AMQPConnection_0_8Impl - RECV ConnectionTuneOk[ channelMax: 256 frameMax: 262136 heartbeat: 60 ]
2018-08-15 19:55:07 BrokerDecoder - Frame handled in 0 ms.
2018-08-15 19:55:07 AMQPConnection_0_8Impl - RECV ConnectionOpen[ virtualHost: / capabilities: null insist: false ]
2018-08-15 19:55:07 AMQPConnection_0_8Impl - SEND: Frame channelId: 0, bodyFrame: [ConnectionCloseBodyImpl: replyCode=404, replyText=Unknown virtual host: '/', classId=10, methodId=40]
2018-08-15 19:55:07 BrokerDecoder - Frame handled in 0 ms.
2018-08-15 19:55:07 NonBlockingConnection - Written 44 bytes
2018-08-15 19:55:07 NonBlockingConnection - Read 0 byte(s)
2018-08-15 19:55:07 NonBlockingConnection - Read 12 byte(s)
2018-08-15 19:55:07 AMQPConnection_0_8Impl - RECV ConnectionCloseOk
2018-08-15 19:55:07 NonBlockingConnection - Closing /127.0.0.1:56891
2018-08-15 19:55:07 BrokerDecoder - Frame handled in 1 ms.
2018-08-15 19:55:07 MultiVersionProtocolEngine - Closed
2018-08-15 19:55:07 TaskExecutorImpl - Running runnable org.apache.qpid.server.transport.AbstractAMQPConnection$1#ddf89f through executor interface
2018-08-15 19:55:07 ForgivingExceptionHandler - An unexpected connection driver error occured
java.net.SocketException: socket closed
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at java.io.DataInputStream.readUnsignedByte(Unknown Source)
at com.rabbitmq.client.impl.Frame.readFrom(Frame.java:91)
at com.rabbitmq.client.impl.SocketFrameHandler.readFrame(SocketFrameHandler.java:164)
at com.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.java:580)
at java.lang.Thread.run(Unknown Source)
2018-08-15 19:55:07 NonBlockingConnection - Identified transport encryption as NONE
2018-08-15 19:55:07 close - [con:2(guest#/127.0.0.1:56891)] CON-1002 : Close
2018-08-15 19:55:07 NonBlockingConnection - Read 8 byte(s)
2018-08-15 19:55:07 TaskExecutorImpl - Submitting Task['create' on '/0:0:0:0:0:0:0:1:56892(?)'] to executor Broker-Config
2018-08-15 19:55:07 TaskExecutorImpl - Performing Task['create' on '/0:0:0:0:0:0:0:1:56892(?)']
2018-08-15 19:55:07 open - [con:3(/0:0:0:0:0:0:0:1:56892)] CON-1001 : Open : Destination : AMQP(0:0:0:0:0:0:0:1:5672) : Protocol Version : 0-9-1
2018-08-15 19:55:07 TaskExecutorImpl - Running runnable com.google.common.util.concurrent.Futures$6#146d207 through executor interface
2018-08-15 19:55:07 TaskExecutorImpl - Running runnable com.google.common.util.concurrent.Futures$6#1d1fae1 through executor interface
2018-08-15 19:55:07 TaskExecutorImpl - Running runnable com.google.common.util.concurrent.Futures$6#ed29c3 through executor interface
2018-08-15 19:55:07 TaskExecutorImpl - Task['create' on '/0:0:0:0:0:0:0:1:56892(?)'] performed successfully with result: null
2018-08-15 19:55:07 AMQPConnection_0_8Impl - RECV ProtocolHeader [AMQP0091 ]
2018-08-15 19:55:07 AMQPConnection_0_8Impl - SEND: Frame channelId: 0, bodyFrame: [ConnectionStartBodyImpl: versionMajor=0, versionMinor=9, serverProperties={product=[LONG_STRING: qpid], version=[LONG_STRING: 6.1.1], qpid.build=[LONG_STRING: 1775107], qpid.instance_name=[LONG_STRING: Embedded Test Broker], qpid.close_when_no_route=[LONG_STRING: true], qpid.message_compression_supported=[LONG_STRING: true], qpid.confirmed_publish_supported=[LONG_STRING: true], qpid.virtualhost_properties_supported=[LONG_STRING: true], qpid.queue_lifetime_supported=[LONG_STRING: true]}, mechanisms=[80, 76, 65, 73, 78, 32, 67, 82, 65, 77, 45, 77, 68, 53, 32, 83, 67, 82, 65, 77, 45, 83, 72, 65, 45, 49, 32, 83, 67, 82, 65, 77, 45, 83, 72, 65, 45, 50, 53, 54], locales=[101, 110, 95, 85, 83]]
2018-08-15 19:55:07 FieldTable - FieldTable::writeToBuffer: Writing encoded length of 308...
2018-08-15 19:55:07 FieldTable - {product=[LONG_STRING: qpid], version=[LONG_STRING: 6.1.1], qpid.build=[LONG_STRING: 1775107], qpid.instance_name=[LONG_STRING: Embedded Test Broker], qpid.close_when_no_route=[LONG_STRING: true], qpid.message_compression_supported=[LONG_STRING: true], qpid.confirmed_publish_supported=[LONG_STRING: true], qpid.virtualhost_properties_supported=[LONG_STRING: true], qpid.queue_lifetime_supported=[LONG_STRING: true]}
2018-08-15 19:55:07 NonBlockingConnection - Written 379 bytes
2018-08-15 19:55:07 NonBlockingConnection - Read 0 byte(s)
2018-08-15 19:55:07 NonBlockingConnection - Read 443 byte(s)
2018-08-15 19:55:07 AMQPConnection_0_8Impl - RECV ConnectionStartOk[ clientProperties: {connection_name=[LONG_STRING: rabbitConnectionFactory#1800efd:1], product=[LONG_STRING: RabbitMQ], copyright=[LONG_STRING: Copyright (c) 2007-2017 Pivotal Software, Inc.], capabilities=[FIELD_TABLE: {exchange_exchange_bindings=[BOOLEAN: true], connection.blocked=[BOOLEAN: true], authentication_failure_close=[BOOLEAN: true], basic.nack=[BOOLEAN: true], publisher_confirms=[BOOLEAN: true], consumer_cancel_notify=[BOOLEAN: true]}], information=[LONG_STRING: Licensed under the MPL. See http://www.rabbitmq.com/], version=[LONG_STRING: 5.1.2], platform=[LONG_STRING: Java]} mechanism: PLAIN response: ******** locale: en_US ]
2018-08-15 19:55:07 AMQPConnection_0_8Impl - SASL Mechanism selected: PLAIN Locale : en_US
2018-08-15 19:55:07 AMQPConnection_0_8Impl - Connected as: Subject:
Principal: guest
2018-08-15 19:55:07 AMQPConnection_0_8Impl - SEND: Frame channelId: 0, bodyFrame: [ConnectionTuneBodyImpl: channelMax=256, frameMax=262136, heartbeat=0]
2018-08-15 19:55:07 BrokerDecoder - Frame handled in 1 ms.
2018-08-15 19:55:07 NonBlockingConnection - Written 20 bytes
2018-08-15 19:55:07 NonBlockingConnection - Read 0 byte(s)
2018-08-15 19:55:07 NonBlockingConnection - Read 36 byte(s)
2018-08-15 19:55:07 AMQPConnection_0_8Impl - RECV ConnectionTuneOk[ channelMax: 256 frameMax: 262136 heartbeat: 60 ]
2018-08-15 19:55:07 BrokerDecoder - Frame handled in 0 ms.
2018-08-15 19:55:07 AMQPConnection_0_8Impl - RECV ConnectionOpen[ virtualHost: / capabilities: null insist: false ]
2018-08-15 19:55:07 AMQPConnection_0_8Impl - SEND: Frame channelId: 0, bodyFrame: [ConnectionCloseBodyImpl: replyCode=404, replyText=Unknown virtual host: '/', classId=10, methodId=40]
2018-08-15 19:55:07 BrokerDecoder - Frame handled in 0 ms.
2018-08-15 19:55:07 NonBlockingConnection - Written 44 bytes
2018-08-15 19:55:07 NonBlockingConnection - Read 0 byte(s)
2018-08-15 19:55:07 NonBlockingConnection - Read 12 byte(s)
2018-08-15 19:55:07 RequestServiceImpl - Failure sending message to queue...storing for later delivery {java.io.IOException}
2018-08-15 19:55:07 AMQPConnection_0_8Impl - RECV ConnectionCloseOk
2018-08-15 19:55:07 NonBlockingConnection - Closing /0:0:0:0:0:0:0:1:56892
2018-08-15 19:55:07 BrokerDecoder - Frame handled in 0 ms.
2018-08-15 19:55:07 MultiVersionProtocolEngine - Closed
2018-08-15 19:55:07 ForgivingExceptionHandler - An unexpected connection driver error occured
java.net.SocketException: socket closed
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at java.io.DataInputStream.readUnsignedByte(Unknown Source)
at com.rabbitmq.client.impl.Frame.readFrom(Frame.java:91)
at com.rabbitmq.client.impl.SocketFrameHandler.readFrame(SocketFrameHandler.java:164)
at com.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.java:580)
at java.lang.Thread.run(Unknown Source)
2018-08-15 19:55:07 TaskExecutorImpl - Running runnable org.apache.qpid.server.transport.AbstractAMQPConnection$1#c30ce0 through executor interface
2018-08-15 19:55:07 close - [con:3(guest#null)] CON-1002 : Close
2018-08-15 19:55:20 BrokerImpl - Assigning target sizes based on total target 207591833
2018-08-15 19:55:20 BrokerImpl - Assigning target size 207591833 to vhost VirtualHost[id=556d86e7-d4f7-4428-9a54-86b280bdd515, name=/, type=Memory]
2018-08-15 19:55:20 AbstractVirtualHost - Allocating target size to queues, total target: 207591833 ; total enqueued size 0
If your need is to mimic RabbitMQ behavior, I would suggest using rabbitmq-mock to avoid the need of a port (which can be an issue in CI runs) and improve startup time.
Simply add the dependency to your build tool, if you are using Maven:
<dependency>
<groupId>com.github.fridujo</groupId>
<artifactId>rabbitmq-mock</artifactId>
<version>1.0.14</version>
<scope>test</scope>
</dependency>
Then replace or override your Spring ConnectionFactory with:
#Bean
public ConnectionFactory connectionFactory() {
return new CachingConnectionFactory(MockConnectionFactoryFactory.build());
}
Both RabbitTemplate and SimpleMessageListenerContainer should behave as if they were connected to a real RabbitMQ broker.
Here is a complete sample test using Spring-Boot.
Your AMQP client is requesting a virtualhost that does not exist on the Broker. The Broker is replying "Unknown virtual host". Check the connection details that are passed by the client.
2018-08-15 19:55:07 AMQPConnection_0_8Impl - RECV ConnectionOpen[ virtualHost: / capabilities: null insist: false ]
2018-08-15 19:55:07 AMQPConnection_0_8Impl - SEND: Frame channelId: 0, bodyFrame: [ConnectionCloseBodyImpl: replyCode=404, replyText=Unknown virtual host: '/', classId=10, methodId=40]}}
Separately, I notice that you are using quite an old Broker version (6.1.1), I'd suggest choosing a newer release.
FYI:
Excellent and self-explaining example of RabbitMQ testing using rabbitmq-mock here:
rabbitmq-mock | SpringIntegrationTest.java
rabbitmqrabbitmq-mockspring-rabbitspring-amqpspring-integration-amqp

unable to access server in docker container from outside host machine

I have a linux machine (Host-591) hosting 2 VM instances. In the first VM instance (Docker03), inside a container, I have a Flask web server hosted, which runs on tcp/81 and publishes it. The host machine, Docker03 maps it to port tcp/5003.
From Docker03, I am able to access the Flask server:
root#Docker03:/home/ubuntu/docker/app3# curl http://192.168.122.103:5003/
Hello Root!
root#Docker03:/home/ubuntu/docker/app3#
But from the host linux machine, I am not able to access the server.
[root#Host-591 ~]# curl http://192.168.122.103:5003/
^C
Ping from the host machine to the server in the container inside Docker03 works fine.
[root#Host-591 ~]# ping 192.168.122.103 -c 1
PING 192.168.122.103 (192.168.122.103) 56(84) bytes of data.
64 bytes from 192.168.122.103: icmp_seq=1 ttl=64 time=0.225 ms
--- 192.168.122.103 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.225/0.225/0.225/0.000 ms
A simple telnet from the Host machine to the Flask server's port shows TCP connection can be established:
[root#Host-591 ~]# telnet 192.168.122.103 5003
Trying 192.168.122.103...
Connected to 192.168.122.103.
Escape character is '^]'.
^]
telnet> q
Connection closed.
[root#Host-591 ~]# ifconfig virbr0
virbr0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
ether 52:54:00:1a:d4:4d txqueuelen 1000 (Ethernet)
RX packets 30436 bytes 7466531 (7.1 MiB)
RX errors 0 dropped 24 overruns 0 frame 0
TX packets 42414 bytes 65991140 (62.9 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
The iptables rules on Docker03 VM instance looks like:
root#Docker03:/home/ubuntu/docker/app3# iptables -t nat -vL -n
Chain PREROUTING (policy ACCEPT 1 packets, 84 bytes)
pkts bytes target prot opt in out source destination
1 84 DOCKER-INGRESS all -- * * 0.0.0.0/0 0.0.0.0/0 ADDRTYPE match dst-type LOCAL
3 204 DOCKER all -- * * 0.0.0.0/0 0.0.0.0/0 ADDRTYPE match dst-type LOCAL
Chain INPUT (policy ACCEPT 1 packets, 84 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 5 packets, 364 bytes)
pkts bytes target prot opt in out source destination
4 240 DOCKER-INGRESS all -- * * 0.0.0.0/0 0.0.0.0/0 ADDRTYPE match dst-type LOCAL
0 0 DOCKER all -- * * 0.0.0.0/0 !127.0.0.0/8 ADDRTYPE match dst-type LOCAL
Chain POSTROUTING (policy ACCEPT 5 packets, 364 bytes)
pkts bytes target prot opt in out source destination
4 240 MASQUERADE all -- * docker_gwbridge 0.0.0.0/0 0.0.0.0/0 ADDRTYPE match src-type LOCAL
0 0 MASQUERADE all -- * !docker_gwbridge 172.18.0.0/16 0.0.0.0/0
9 582 MASQUERADE all -- * !docker0 172.17.0.0/16 0.0.0.0/0
Chain DOCKER (2 references)
pkts bytes target prot opt in out source destination
0 0 RETURN all -- docker_gwbridge * 0.0.0.0/0 0.0.0.0/0
0 0 RETURN all -- docker0 * 0.0.0.0/0 0.0.0.0/0
Chain DOCKER-INGRESS (2 references)
pkts bytes target prot opt in out source destination
3 180 DNAT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:5003 to:172.18.0.2:5003
1 84 RETURN all -- * * 0.0.0.0/0 0.0.0.0/0
In the DOCKER-INGRESS chain, the pkt count increases when I try to access the server from Docker03 instance, but does not increase when I try to access it from the host machine (Host-591).
Inside Docker03:
root#Docker03:/home/ubuntu/docker/app3# ifconfig
...
docker_gwbridge Link encap:Ethernet HWaddr 02:42:a5:66:fb:c6
inet addr:172.18.0.1 Bcast:0.0.0.0 Mask:255.255.0.0
inet6 addr: fe80::42:a5ff:fe66:fbc6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:55 errors:0 dropped:0 overruns:0 frame:0
TX packets:48 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3768 (3.7 KB) TX bytes:3560 (3.5 KB)
ens3 Link encap:Ethernet HWaddr 52:54:00:4d:a9:67
inet addr:192.168.122.103 Bcast:192.168.122.255 Mask:255.255.255.0
inet6 addr: fe80::5054:ff:fe4d:a967/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:16582 errors:0 dropped:8 overruns:0 frame:0
TX packets:7988 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:27505482 (27.5 MB) TX bytes:773745 (773.7 KB)
...
root#Docker03:/home/ubuntu/docker/app3# docker service ls
ID NAME MODE REPLICAS IMAGE
jgsuip3oda4e app3_web replicated 1/1 app3-web:v1
root#Docker03:/home/ubuntu/docker/app3# docker service inspect jgsuip3oda4e
[
{
"ID": "jgsuip3oda4ef2soefj0ce2oh",
"Version": {
"Index": 26
},
"CreatedAt": "2018-08-20T16:13:40.627151395Z",
"UpdatedAt": "2018-08-20T16:13:40.628064367Z",
"Spec": {
"Name": "app3_web",
"Labels": {
"com.docker.stack.namespace": "app3"
},
"TaskTemplate": {
"ContainerSpec": {
"Image": "app3-web:v1",
"Labels": {
"com.docker.stack.namespace": "app3"
}
},
"Resources": {},
"Placement": {},
"ForceUpdate": 0
},
"Mode": {
"Replicated": {
"Replicas": 1
}
},
"Networks": [
{
"Target": "giz5m1weca0xjlcsxjnvm5e81",
"Aliases": [
"web"
]
}
],
"EndpointSpec": {
"Mode": "vip",
"Ports": [
{
"Protocol": "tcp",
"TargetPort": 81,
"PublishedPort": 5003,
"PublishMode": "ingress"
}
]
}
},
"Endpoint": {
"Spec": {
"Mode": "vip",
"Ports": [
{
"Protocol": "tcp",
"TargetPort": 81,
"PublishedPort": 5003,
"PublishMode": "ingress"
}
]
},
"Ports": [
{
"Protocol": "tcp",
"TargetPort": 81,
"PublishedPort": 5003,
"PublishMode": "ingress"
}
],
"VirtualIPs": [
{
"NetworkID": "s067fap1788lt9le1nfc5l2yh",
"Addr": "10.255.0.3/16"
},
{
"NetworkID": "giz5m1weca0xjlcsxjnvm5e81",
"Addr": "10.0.0.2/24"
}
]
},
"UpdateStatus": {
"StartedAt": "0001-01-01T00:00:00Z",
"CompletedAt": "0001-01-01T00:00:00Z"
}
}
]
root#Docker03:/home/ubuntu/docker/app3# docker network ls
NETWORK ID NAME DRIVER SCOPE
giz5m1weca0x app3_webnet overlay swarm
a2a6a0d8d2eb bridge bridge local
3d5bf5444e12 docker_gwbridge bridge local
97d487b3203e host host local
s067fap1788l ingress overlay swarm
efb9d06c92a8 none null local
root#Docker03:/home/ubuntu/docker/app3# docker network inspect docker_gwbridge
[
{
"Name": "docker_gwbridge",
"Id": "3d5bf5444e12adb0d8ed307144de2047372b5f56b2dead9718b414c8e6afa75b",
"Created": "2018-08-20T12:04:26.440509262-04:00",
"Scope": "local",
"Driver": "bridge",
"EnableIPv6": false,
"IPAM": {
"Driver": "default",
"Options": null,
"Config": [
{
"Subnet": "172.18.0.0/16",
"Gateway": "172.18.0.1"
}
]
},
"Internal": false,
"Attachable": false,
"Containers": {
"9eb13ae864ef07243c9b6c89713680248db9ba8e4e914e2f0173923c38d87d6f": {
"Name": "gateway_9eb13ae864ef",
"EndpointID": "48e44bfe94366c783f8bc59d1ed1bc3b8cefbbe534cdb4bf7cedfc4852b91213",
"MacAddress": "02:42:ac:12:00:03",
"IPv4Address": "172.18.0.3/16",
"IPv6Address": ""
},
"ingress-sbox": {
"Name": "gateway_ingress-sbox",
"EndpointID": "a9e15a62d6a678b2beb078f2eb99933c48ce44ebf4d2cc2912090ef75a12b75d",
"MacAddress": "02:42:ac:12:00:02",
"IPv4Address": "172.18.0.2/16",
"IPv6Address": ""
}
},
"Options": {
"com.docker.network.bridge.enable_icc": "false",
"com.docker.network.bridge.enable_ip_masquerade": "true",
"com.docker.network.bridge.name": "docker_gwbridge"
},
"Labels": {}
}
]
root#Docker03:/home/ubuntu/docker/app3# docker network inspect app3_webnet
[
{
"Name": "app3_webnet",
"Id": "giz5m1weca0xjlcsxjnvm5e81",
"Created": "2018-08-20T12:13:40.787096192-04:00",
"Scope": "swarm",
"Driver": "overlay",
"EnableIPv6": false,
"IPAM": {
"Driver": "default",
"Options": null,
"Config": [
{
"Subnet": "10.0.0.0/24",
"Gateway": "10.0.0.1"
}
]
},
"Internal": false,
"Attachable": false,
"Containers": {
"9eb13ae864ef07243c9b6c89713680248db9ba8e4e914e2f0173923c38d87d6f": {
"Name": "app3_web.1.8cejzgd75xul8brdjjjjnq0rb",
"EndpointID": "b5717c1dff888d993ff9a573b7967f90165c35e35774ca479b5d37cf0821e00d",
"MacAddress": "02:42:0a:00:00:03",
"IPv4Address": "10.0.0.3/24",
"IPv6Address": ""
}
},
"Options": {
"com.docker.network.driver.overlay.vxlanid_list": "4097"
},
"Labels": {
"com.docker.stack.namespace": "app3"
},
"Peers": [
{
"Name": "Docker03-03ead807e067",
"IP": "192.168.122.103"
}
]
}
]
Here is the docker compose file that I am using:
root#Docker03:/home/ubuntu/docker/app3# cat docker-compose.yml
version: '3'
services:
web:
image: "app3-web:v1"
ports:
- "5003:81"
networks:
- "webnet"
networks:
webnet:
root#Docker03:/home/ubuntu/docker/app3# netstat -tulpn | grep 5003
tcp6 0 0 :::5003 :::* LISTEN 1610/dockerd
The Dockerfile for the app looks like this:
root#Docker03:/home/ubuntu/docker/app3# cat web/Dockerfile
FROM python:3.4-alpine
ADD . /web
WORKDIR /web
RUN pip install --proxy <proxy_ip_address:port> --trusted-host pypi.python.org -r requirements.txt
EXPOSE 81
# set environment variable so that python does not buffer any output logs
ENV PYTHONUNBUFFERED 0
CMD ["python", "index.py"]
I tried to spin up another VM instance connected to the 192.168.122.0/24 network and access the Flask server, and it worked fine. It seems only access from outside the VMs is not working. Docker version I am using:
root#Docker03:/home/ubuntu/docker/app3# docker --version
Docker version 17.03.2-ce, build f5ec1e2
Any help is much appreciated.
Thanks,

Is there a simple cli to probe dns names/queries

Say there is a FQND : www.ebay.com, How do I do a DNSSEC query to LIST ALL for a CNAME without installing any special modules/packages?
Ideally I would like an open-source code to do the same.
I need a VISUAL representation for the data + JSON data set
http://dnsviz.net/
DNSVIZ is an excellent website for this.
If you have docker installed:
docker run -it nrshrivatsan/dnsviz /bin/bash -c "dnsviz probe www.ebay.com"
Output would be a JSON, when formatted:
.:
type: recursive
stub: false
analysis_start: '2018-05-13 02:55:58 UTC'
analysis_end: '2018-05-13 02:55:58 UTC'
clients_ipv4:
- 172.17.0.2
clients_ipv6: []
explicit_delegation: true
auth_ns_ip_mapping:
ns0.:
- 192.168.65.1
queries:
- qname: .
qclass: IN
qtype: NS
options:
flags: 256
edns_version: 0
edns_max_udp_payload: 4096
edns_flags: 32768
edns_options: []
tcp: false
responses:
192.168.65.1:
172.17.0.2:
message: >-
J9yBgAABAA0AAAAAAAACAAEAAAIAAQAAVTgAFAFjDHJvb3Qtc2VydmVycwNuZXQAAAACAAEAAFU4AAQBbcAeAAACAAEAAFU4AAQBZsAeAAACAAEAAFU4AAQBa8AeAAACAAEAAFU4AAQBYcAeAAACAAEAAFU4AAQBacAeAAACAAEAAFU4AAQBYsAeAAACAAEAAFU4AAQBZ8AeAAACAAEAAFU4AAQBZMAeAAACAAEAAFU4AAQBZcAeAAACAAEAAFU4AAQBaMAeAAACAAEAAFU4AAQBbMAeAAACAAEAAFU4AAQBasAe
msg_size: 228
time_elapsed: 1
history: []
- qname: .
qclass: IN
qtype: DNSKEY
options:
flags: 256
edns_version: 0
edns_max_udp_payload: 512
edns_flags: 32768
edns_options: []
tcp: false
responses:
192.168.65.1:
172.17.0.2:
message: >-
pGiBgAABAAMAAAAAAAAwAAEAADAAAQAANV0BCAEBAwgDAQABqAAgqVVmukLohruATNqE5H71bb167GEmFVUs7JBtIRbQ7yBwKMUVVBRN/q/nx8uPAF3RgjQTOsBxCoEYLOH9FK0ig7yDQ1+d8vYxMlGTGhdt8NpR5U9C5gSGDfs1lYAlD1WcxUPE/9Ucvj3oz9BnGSN/n8R+5ynaBoNfpFLoJemhjrwuy89WNHRlLDPPVqkDO8312XMSF5fsgIkEG24DobctCnNbmE4DaHMJMyMk8nwtuoXp2xXoOgFDOC6XSwYhwY5iXs7JB1d9nnut6VJBqB676KkB1NMnbkCxFMCi5vw40ZwuaqsCZEsoE/V1/CFgHg3uSc2e6WpDED5STWKHPQAAMAABAAA1XQEIAQADCAMBAAHVOGipQ4BKV1lqR+WlxyWSNVZvQpuNphgLKpM92pBXLUus7GRwt6TTTLoPfXymuzlvrURyMGRHP/5l/Cbem3MOWz4ERxurtnk/L1KW1wz1bNSAhkehYZcBVhDssWyCIg33exKungC5OUTXGrshPv2T/lXa4VmQ3hFmUazwS4wcgVkx5fr/3/sb0yd0rXKtrRKp80tggjq+kUyXqaa2IbvuWJemkWZhFQStu1gltWa5NS3pCbyV33MikipNfQuTOSVl+fKcepwdSEtKTLOmgiCtsmkEFTVBIPV8kMwUr/6zMVTTct1QKjo74fjgEqSzJuBhAm0knvI7Y8BtCO/LHzGXAAAwAAEAADVdAQgBAQMIAwEAAaz/tAm8yTn4Mfeh5eyI96WSVexTBAvkMgJzkKTOiW1vkIbzxeF3+/4RgWOq7HrxRixHlFlExOLAJr5emLvN7SWXgnLh4+B5xQlNVz8Og8kvArMtNROxVQuCaSnIDdD5LKyWbRd2n9WGe2R8PzgCmr3EgVLrjyBxWezF0jLHwVN8efS3rCj/EWgvIWgb9tarpVUDK/b58Da+sqqls3eNbuv7pr+eoZG+SrDK6nWeL3c6H5Apxz7LjVc1uTIdsIXxuOLYA4/ilBmSVIzuDWfdRUfhHdY6+cn8HFRm+2hM8AnXGXws9555KrUB5qihylGa8subX2Nn6UwNR1AkUTV74bU=
msg_size: 842
time_elapsed: 1
history: []
- qname: .
qclass: IN
qtype: DNSKEY
options:
flags: 256
edns_version: 0
edns_max_udp_payload: 4096
edns_flags: 32768
edns_options: []
tcp: false
responses:
192.168.65.1:
172.17.0.2:
message: >-
pGiBgAABAAMAAAAAAAAwAAEAADAAAQAANV0BCAEBAwgDAQABrP+0CbzJOfgx96Hl7Ij3pZJV7FMEC+QyAnOQpM6JbW+QhvPF4Xf7/hGBY6rsevFGLEeUWUTE4sAmvl6Yu83tJZeCcuHj4HnFCU1XPw6DyS8Csy01E7FVC4JpKcgN0PksrJZtF3af1YZ7ZHw/OAKavcSBUuuPIHFZ7MXSMsfBU3x59LesKP8RaC8haBv21qulVQMr9vnwNr6yqqWzd41u6/umv56hkb5KsMrqdZ4vdzofkCnHPsuNVzW5Mh2whfG44tgDj+KUGZJUjO4NZ91FR+Ed1jr5yfwcVGb7aEzwCdcZfCz3nnkqtQHmqKHKUZryy5tfY2fpTA1HUCRRNXvhtQAAMAABAAA1XQEIAQADCAMBAAHVOGipQ4BKV1lqR+WlxyWSNVZvQpuNphgLKpM92pBXLUus7GRwt6TTTLoPfXymuzlvrURyMGRHP/5l/Cbem3MOWz4ERxurtnk/L1KW1wz1bNSAhkehYZcBVhDssWyCIg33exKungC5OUTXGrshPv2T/lXa4VmQ3hFmUazwS4wcgVkx5fr/3/sb0yd0rXKtrRKp80tggjq+kUyXqaa2IbvuWJemkWZhFQStu1gltWa5NS3pCbyV33MikipNfQuTOSVl+fKcepwdSEtKTLOmgiCtsmkEFTVBIPV8kMwUr/6zMVTTct1QKjo74fjgEqSzJuBhAm0knvI7Y8BtCO/LHzGXAAAwAAEAADVdAQgBAQMIAwEAAagAIKlVZrpC6Ia7gEzahOR+9W29euxhJhVVLOyQbSEW0O8gcCjFFVQUTf6v58fLjwBd0YI0EzrAcQqBGCzh/RStIoO8g0NfnfL2MTJRkxoXbfDaUeVPQuYEhg37NZWAJQ9VnMVDxP/VHL496M/QZxkjf5/Efucp2gaDX6RS6CXpoY68LsvPVjR0ZSwzz1apAzvN9dlzEheX7ICJBBtuA6G3LQpzW5hOA2hzCTMjJPJ8LbqF6dsV6DoBQzgul0sGIcGOYl7OyQdXfZ57relSQageu+ipAdTTJ25AsRTAoub8ONGcLmqrAmRLKBP1dfwhYB4N7knNnulqQxA+Uk1ihz0=
msg_size: 842
time_elapsed: 1
history: []
net.:
type: recursive
stub: false
analysis_start: '2018-05-13 02:56:03 UTC'
analysis_end: '2018-05-13 02:56:03 UTC'
clients_ipv4:
- 172.17.0.2
clients_ipv6: []
parent: .
explicit_delegation: true
auth_ns_ip_mapping:
ns0.:
- 192.168.65.1
queries:
- qname: net.
qclass: IN
qtype: NS
options:
flags: 256
edns_version: 0
edns_max_udp_payload: 4096
edns_flags: 32768
edns_options: []
tcp: false
responses:
192.168.65.1:
172.17.0.2:
message: >-
XimBgAABAA0AAAAAA25ldAAAAgABwAwAAgABAAA62gARAWEMZ3RsZC1zZXJ2ZXJzwAzADAACAAEAADraAAQBasAjwAwAAgABAAA62gAEAWvAI8AMAAIAAQAAOtoABAFtwCPADAACAAEAADraAAQBYsAjwAwAAgABAAA62gAEAWPAI8AMAAIAAQAAOtoABAFmwCPADAACAAEAADraAAQBZcAjwAwAAgABAAA62gAEAWnAI8AMAAIAAQAAOtoABAFkwCPADAACAAEAADraAAQBbMAjwAwAAgABAAA62gAEAWfAI8AMAAIAAQAAOtoABAFowCM=
msg_size: 242
time_elapsed: 1
history: []
- qname: net.
qclass: IN
qtype: DS
options:
flags: 256
edns_version: 0
edns_max_udp_payload: 4096
edns_flags: 32768
edns_options: []
tcp: false
responses:
192.168.65.1:
172.17.0.2:
message: >-
d3eBgAABAAEAAAAAA25ldAAAKwABwAwAKwABAADS8QAkjC4IAnhisn9fUW6+GWgERNTOXnYpgZMYQsRl8AI2QB2L2XPu
msg_size: 69
time_elapsed: 1
history: []
- qname: net.
qclass: IN
qtype: DNSKEY
options:
flags: 256
edns_version: 0
edns_max_udp_payload: 4096
edns_flags: 32768
edns_options: []
tcp: false
responses:
192.168.65.1:
172.17.0.2:
message: >-
ZLyBgAABAAIAAAAAA25ldAAAMAABwAwAMAABAADS8QEGAQEDCAEDmAZ86llyBI+ppYF4OC1gtBz9p/HivF6oB5Zif+vYriB7GtU6xwxuk3Dq2v6cnhisB9JymYU5l0rlBRofQQjYsFQ7ssm+jgRstjbXvSq/DcFoOKvs4UqDn+A/oAvXRM4NMhXcE9AyhL5jT7dCuI20A0uGIpm/rjyrhesonllqz2GAq7/AvSgvCTM3trk+jblgX7Jdnw1KFeJeuajMMNOg+5/qe0W3cFpAGdHwOt5l1VwWRepKQ7bGA+0lAfY4YXy0BP6/OW74NxWkrOVotgWqjdOksxliNQx7u2sbYSDnh8INNM8ZYU6aGAh9JXaEM/kuuc1mIv30SYsi0gW+iWTr58AMADAAAQAA0vEAhgEAAwgBA8qGy0UA+ljcDHd5JNUtTQTJDJreexylp+KEuXjiDDtwuYWgMAB4oZnZUV4lDlUW5kCmipNstugm4LH8eL/ey+7+4ii/ap0UoHTfq1OBuRDEuqjudcf34fsPdVb/NGxXL48LSLZwUPBlC3Y9L8OaITKgjROoDiXq0Ndkmeh5fR+Z
msg_size: 441
time_elapsed: 2
history: []
- qname: net.
qclass: IN
qtype: DNSKEY
options:
flags: 256
edns_version: 0
edns_max_udp_payload: 512
edns_flags: 32768
edns_options: []
tcp: false
responses:
192.168.65.1:
172.17.0.2:
message: >-
ZLyBgAABAAIAAAAAA25ldAAAMAABwAwAMAABAADS8QCGAQADCAEDyobLRQD6WNwMd3kk1S1NBMkMmt57HKWn4oS5eOIMO3C5haAwAHihmdlRXiUOVRbmQKaKk2y26Cbgsfx4v97L7v7iKL9qnRSgdN+rU4G5EMS6qO51x/fh+w91Vv80bFcvjwtItnBQ8GULdj0vw5ohMqCNE6gOJerQ12SZ6Hl9H5nADAAwAAEAANLxAQYBAQMIAQOYBnzqWXIEj6mlgXg4LWC0HP2n8eK8XqgHlmJ/69iuIHsa1TrHDG6TcOra/pyeGKwH0nKZhTmXSuUFGh9BCNiwVDuyyb6OBGy2Nte9Kr8NwWg4q+zhSoOf4D+gC9dEzg0yFdwT0DKEvmNPt0K4jbQDS4Yimb+uPKuF6yieWWrPYYCrv8C9KC8JMze2uT6NuWBfsl2fDUoV4l65qMww06D7n+p7RbdwWkAZ0fA63mXVXBZF6kpDtsYD7SUB9jhhfLQE/r85bvg3FaSs5Wi2BaqN06SzGWI1DHu7axthIOeHwg00zxlhTpoYCH0ldoQz+S65zWYi/fRJiyLSBb6JZOvn
msg_size: 441
time_elapsed: 2
history: []
akamaiedge.net.:
type: recursive
stub: false
analysis_start: '2018-05-13 02:56:03 UTC'
analysis_end: '2018-05-13 02:56:03 UTC'
clients_ipv4:
- 172.17.0.2
clients_ipv6: []
parent: net.
explicit_delegation: true
queries:
- qname: akamaiedge.net.
qclass: IN
qtype: A
options:
flags: 256
edns_version: 0
edns_max_udp_payload: 4096
edns_flags: 32768
edns_options: []
tcp: false
responses:
192.168.65.1:
172.17.0.2:
message: NdeBgwABAAAAAAAACmFrYW1haWVkZ2UDbmV0AAABAAE=
msg_size: 32
time_elapsed: 46
history: []
e9428.b.akamaiedge.net.:
type: recursive
stub: false
analysis_start: '2018-05-13 02:56:03 UTC'
analysis_end: '2018-05-13 02:56:03 UTC'
clients_ipv4:
- 172.17.0.2
clients_ipv6: []
parent: net.
nxdomain_ancestor: akamaiedge.net.
explicit_delegation: true
queries:
- qname: e9428.b.akamaiedge.net.
qclass: IN
qtype: A
options:
flags: 256
edns_version: 0
edns_max_udp_payload: 4096
edns_flags: 32768
edns_options: []
tcp: false
responses:
192.168.65.1:
172.17.0.2:
message: >-
Kg6BgAABAAEAAAAABWU5NDI4AWIKYWthbWFpZWRnZQNuZXQAAAEAAcAMAAEAAQAAAAsABBfRsWw=
msg_size: 56
time_elapsed: 1
history: []
- qname: e9428.b.akamaiedge.net.
qclass: IN
qtype: AAAA
options:
flags: 256
edns_version: 0
edns_max_udp_payload: 4096
edns_flags: 32768
edns_options: []
tcp: false
responses:
192.168.65.1:
172.17.0.2:
message: Dn6BgwABAAAAAAAABWU5NDI4AWIKYWthbWFpZWRnZQNuZXQAABwAAQ==
msg_size: 40
time_elapsed: 3
history: []
edgekey.net.:
type: recursive
stub: false
analysis_start: '2018-05-13 02:56:03 UTC'
analysis_end: '2018-05-13 02:56:03 UTC'
clients_ipv4:
- 172.17.0.2
clients_ipv6: []
parent: net.
explicit_delegation: true
queries:
- qname: edgekey.net.
qclass: IN
qtype: A
options:
flags: 256
edns_version: 0
edns_max_udp_payload: 4096
edns_flags: 32768
edns_options: []
tcp: false
responses:
192.168.65.1:
172.17.0.2:
message: A+iBgwABAAAAAAAAB2VkZ2VrZXkDbmV0AAABAAE=
msg_size: 29
time_elapsed: 87
history: []
slot9428.ebay.com.edgekey.net.:
type: recursive
stub: false
analysis_start: '2018-05-13 02:55:58 UTC'
analysis_end: '2018-05-13 02:56:00 UTC'
clients_ipv4:
- 172.17.0.2
clients_ipv6: []
parent: net.
nxdomain_ancestor: edgekey.net.
explicit_delegation: true
queries:
- qname: slot9428.ebay.com.edgekey.net.
qclass: IN
qtype: A
options:
flags: 256
edns_version: 0
edns_max_udp_payload: 4096
edns_flags: 32768
edns_options: []
tcp: false
responses:
192.168.65.1:
172.17.0.2:
message: >-
dCeBgAABAAIAAAAACHNsb3Q5NDI4BGViYXkDY29tB2VkZ2VrZXkDbmV0AAABAAHADAAFAAEAABf/ABUFZTk0MjgBYgpha2FtYWllZGdlwCbAOwABAAEAAAALAAQX0bFs
msg_size: 96
time_elapsed: 2
history: []
- qname: slot9428.ebay.com.edgekey.net.
qclass: IN
qtype: AAAA
options:
flags: 256
edns_version: 0
edns_max_udp_payload: 4096
edns_flags: 32768
edns_options: []
tcp: false
responses:
192.168.65.1:
172.17.0.2:
message: xmCBgwABAAAAAAAACHNsb3Q5NDI4BGViYXkDY29tB2VkZ2VrZXkDbmV0AAAcAAE=
msg_size: 47
time_elapsed: 4
history: []
com.:
type: recursive
stub: false
analysis_start: '2018-05-13 02:55:58 UTC'
analysis_end: '2018-05-13 02:55:58 UTC'
clients_ipv4:
- 172.17.0.2
clients_ipv6: []
parent: .
explicit_delegation: true
auth_ns_ip_mapping:
ns0.:
- 192.168.65.1
queries:
- qname: com.
qclass: IN
qtype: NS
options:
flags: 256
edns_version: 0
edns_max_udp_payload: 4096
edns_flags: 32768
edns_options: []
tcp: false
responses:
192.168.65.1:
172.17.0.2:
message: >-
5mWBgAABAA0AAAAAA2NvbQAAAgABwAwAAgABAAA7ZAAUAWYMZ3RsZC1zZXJ2ZXJzA25ldADADAACAAEAADtkAAQBa8AjwAwAAgABAAA7ZAAEAWfAI8AMAAIAAQAAO2QABAFiwCPADAACAAEAADtkAAQBY8AjwAwAAgABAAA7ZAAEAWnAI8AMAAIAAQAAO2QABAFkwCPADAACAAEAADtkAAQBYcAjwAwAAgABAAA7ZAAEAWXAI8AMAAIAAQAAO2QABAFqwCPADAACAAEAADtkAAQBbMAjwAwAAgABAAA7ZAAEAW3AI8AMAAIAAQAAO2QABAFowCM=
msg_size: 245
time_elapsed: 1
history: []
- qname: com.
qclass: IN
qtype: DS
options:
flags: 256
edns_version: 0
edns_max_udp_payload: 4096
edns_flags: 32768
edns_options: []
tcp: false
responses:
192.168.65.1:
172.17.0.2:
message: >-
cC6BgAABAAEAAAAAA2NvbQAAKwABwAwAKwABAABmJQAkeL0IAuLTyRb23urHMpToJo+1iFBEqDP8VFlYj0qRhM/EGldm
msg_size: 69
time_elapsed: 1
history: []
- qname: com.
qclass: IN
qtype: DNSKEY
options:
flags: 256
edns_version: 0
edns_max_udp_payload: 4096
edns_flags: 32768
edns_options: []
tcp: false
responses:
192.168.65.1:
172.17.0.2:
message: >-
ok6BgAABAAIAAAAAA2NvbQAAMAABwAwAMAABAADS8QCGAQADCAEDs/ogasWbQigQairDv4vSVXIWdmdaRQlp4/qRRyYt7j1omFrADL7TKSJ0T31dTrfZvvJxz8UpLzi9vm7bY+IxCurlH02qxE+MADEodpPa19ofvZFUA43LkcHxV1eWwJhXd4+e4YnOxRGFUsV7TVFVOwT2hUR7ha9zq0B0F2keCHnADAAwAAEAANLxAQYBAQMIAQPDzldNmMvZFX4NcNJ0uEnKDg7tmv/F3MyQR0lpBmVcNcsIszxNFxsBfKNW9JYCYqpik8366LE7VbIcNRzfp2h9OO8HRl+H+E08zauK8k7evWEmu/6od+2boggPoiEfGNyvNPaSI7FOIroDsnw/taggzHRX1Z7SOiOiPWPNIwSUyWOZ79VmcQ1GLkC6NlYvG3HwYmynQv6oFwGv/KELSw7ZSdrbTQ0HXvZbqMUI7BaMskmvgm1G7oKZ1YiF7O9ioVNc0+7ASbqmZN7Z98EGU/Qh2K/BgUe8Hs0XVcdPKrtyYnoQHd2ynKPcMMlTEih2/2HDHjRPJ2aywIpKNnv4oPo/
msg_size: 441
time_elapsed: 1
history: []
- qname: com.
qclass: IN
qtype: DNSKEY
options:
flags: 256
edns_version: 0
edns_max_udp_payload: 512
edns_flags: 32768
edns_options: []
tcp: false
responses:
192.168.65.1:
172.17.0.2:
message: >-
ok6BgAABAAIAAAAAA2NvbQAAMAABwAwAMAABAADS8QEGAQEDCAEDw85XTZjL2RV+DXDSdLhJyg4O7Zr/xdzMkEdJaQZlXDXLCLM8TRcbAXyjVvSWAmKqYpPN+uixO1WyHDUc36dofTjvB0Zfh/hNPM2rivJO3r1hJrv+qHftm6IID6IhHxjcrzT2kiOxTiK6A7J8P7WoIMx0V9We0jojoj1jzSMElMljme/VZnENRi5AujZWLxtx8GJsp0L+qBcBr/yhC0sO2Una200NB172W6jFCOwWjLJJr4JtRu6CmdWIhezvYqFTXNPuwEm6pmTe2ffBBlP0IdivwYFHvB7NF1XHTyq7cmJ6EB3dspyj3DDJUxIodv9hwx40TydmssCKSjZ7+KD6P8AMADAAAQAA0vEAhgEAAwgBA7P6IGrFm0IoEGoqw7+L0lVyFnZnWkUJaeP6kUcmLe49aJhawAy+0ykidE99XU632b7ycc/FKS84vb5u22PiMQrq5R9NqsRPjAAxKHaT2tfaH72RVAONy5HB8VdXlsCYV3ePnuGJzsURhVLFe01RVTsE9oVEe4Wvc6tAdBdpHgh5
msg_size: 441
time_elapsed: 1
history: []
ebay.com.:
type: recursive
stub: false
analysis_start: '2018-05-13 02:55:58 UTC'
analysis_end: '2018-05-13 02:55:58 UTC'
clients_ipv4:
- 172.17.0.2
clients_ipv6: []
parent: com.
explicit_delegation: true
auth_ns_ip_mapping:
ns0.:
- 192.168.65.1
queries:
- qname: ebay.com.
qclass: IN
qtype: NS
options:
flags: 256
edns_version: 0
edns_max_udp_payload: 4096
edns_flags: 32768
edns_options: []
tcp: false
responses:
192.168.65.1:
172.17.0.2:
message: >-
bAKBgAABAAcAAAAABGViYXkDY29tAAACAAHADAACAAEAAAktABQDbnMyA3A0NwZkeW5lY3QDbmV0AMAMAAIAAQAACS0AEQJhMwt2ZXJpc2lnbmRuc8ARwAwAAgABAAAJLQAGA25zNMAqwAwAAgABAAAJLQAGA25zM8AqwAwAAgABAAAJLQAGA25zMcAqwAwAAgABAAAJLQAFAmExwEnADAACAAEAAAktAAUCYTLASQ==
msg_size: 175
time_elapsed: 1
history: []
- qname: ebay.com.
qclass: IN
qtype: DS
options:
flags: 256
edns_version: 0
edns_max_udp_payload: 4096
edns_flags: 32768
edns_options: []
tcp: false
responses:
192.168.65.1:
172.17.0.2:
message: Xs+BgwABAAAAAAAABGViYXkDY29tAAArAAE=
msg_size: 26
time_elapsed: 1
history: []
- qname: ebay.com.
qclass: IN
qtype: DNSKEY
options:
flags: 256
edns_version: 0
edns_max_udp_payload: 512
edns_flags: 32768
edns_options: []
tcp: false
responses:
192.168.65.1:
172.17.0.2:
message: Q0WBgwABAAAAAAAABGViYXkDY29tAAAwAAE=
msg_size: 26
time_elapsed: 1
history: []
- qname: ebay.com.
qclass: IN
qtype: DNSKEY
options:
flags: 256
edns_version: 0
edns_max_udp_payload: 4096
edns_flags: 32768
edns_options: []
tcp: false
responses:
192.168.65.1:
172.17.0.2:
message: Q0WBgwABAAAAAAAABGViYXkDY29tAAAwAAE=
msg_size: 26
time_elapsed: 1
history: []
www.ebay.com.:
type: recursive
stub: false
analysis_start: '2018-05-13 02:55:56 UTC'
analysis_end: '2018-05-13 02:55:58 UTC'
clients_ipv4:
- 172.17.0.2
clients_ipv6: []
parent: ebay.com.
nxdomain_ancestor: ebay.com.
explicit_delegation: true
queries:
- qname: www.ebay.com.
qclass: IN
qtype: A
options:
flags: 256
edns_version: 0
edns_max_udp_payload: 4096
edns_flags: 32768
edns_options: []
tcp: false
responses:
192.168.65.1:
172.17.0.2:
message: >-
xRKBgAABAAMAAAAAA3d3dwRlYmF5A2NvbQAAAQABwAwABQABAAAATwAfCHNsb3Q5NDI4BGViYXkDY29tB2VkZ2VrZXkDbmV0AMAqAAUAAQAAF/8AFQVlOTQyOAFiCmFrYW1haWVkZ2XARMBVAAEAAQAAAAsABBfRsWw=
msg_size: 122
time_elapsed: 2
history: []
- qname: www.ebay.com.
qclass: IN
qtype: AAAA
options:
flags: 256
edns_version: 0
edns_max_udp_payload: 4096
edns_flags: 32768
edns_options: []
tcp: false
responses:
192.168.65.1:
172.17.0.2:
message: +SCBgwABAAAAAAAAA3d3dwRlYmF5A2NvbQAAHAAB
msg_size: 30
time_elapsed: 6
history: []
_meta._dnsviz.:
version: 1.1
names:
- www.ebay.com.
Source
https://github.com/dnsviz/dnsviz/pull/36

Resources