Skip to content

Instantly share code, notes, and snippets.

@xk
Last active October 14, 2021 21:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xk/69842345b6212d7729f7ee7106884609 to your computer and use it in GitHub Desktop.
Save xk/69842345b6212d7729f7ee7106884609 to your computer and use it in GitHub Desktop.
[
{
"id": "e60eab8a24374f3a",
"type": "dnsquery",
"z": "592755914c0b6c81",
"name": "",
"domain_nameType": "str",
"domain_name": "test.com",
"record_typeType": "rectype",
"record_type": "A",
"dns_ip": "8.8.8.8",
"x": 510,
"y": 260,
"wires": [
[
"5c8adf7e810f4f57"
]
]
},
{
"id": "02cf67cf21a584f0",
"type": "inject",
"z": "592755914c0b6c81",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payloadType": "date",
"x": 110,
"y": 80,
"wires": [
[
"c666fad29c5b8c69"
]
]
},
{
"id": "c666fad29c5b8c69",
"type": "function",
"z": "592755914c0b6c81",
"name": "",
"func": "msg.payload= {\n domain_name:\"apple.com\",\n record_type:\"ANY\",\n dns_ip:\"8.8.4.4\"\n};\n\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 290,
"y": 180,
"wires": [
[
"e60eab8a24374f3a"
]
]
},
{
"id": "5c8adf7e810f4f57",
"type": "debug",
"z": "592755914c0b6c81",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 760,
"y": 420,
"wires": []
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment