{"action":"created","issue":{"url":"https://api.github.com/repos/emmericp/MoonGen/issues/196","repository_url":"https://api.github.com/repos/emmericp/MoonGen","labels_url":"https://api.github.com/repos/emmericp/MoonGen/issues/196/labels{/name}","comments_url":"https://api.github.com/repos/emmericp/MoonGen/issues/196/comments","events_url":"https://api.github.com/repos/emmericp/MoonGen/issues/196/events","html_url":"https://github.com/emmericp/MoonGen/issues/196","id":269222543,"number":196,"title":"DNS and dnsMessageContent","user":{"login":"Zendarsk","id":33163828,"avatar_url":"https://avatars3.githubusercontent.com/u/33163828?v=4","gravatar_id":"","url":"https://api.github.com/users/Zendarsk","html_url":"https://github.com/Zendarsk","followers_url":"https://api.github.com/users/Zendarsk/followers","following_url":"https://api.github.com/users/Zendarsk/following{/other_user}","gists_url":"https://api.github.com/users/Zendarsk/gists{/gist_id}","starred_url":"https://api.github.com/users/Zendarsk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zendarsk/subscriptions","organizations_url":"https://api.github.com/users/Zendarsk/orgs","repos_url":"https://api.github.com/users/Zendarsk/repos","events_url":"https://api.github.com/users/Zendarsk/events{/privacy}","received_events_url":"https://api.github.com/users/Zendarsk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-10-27T20:13:55Z","updated_at":"2017-10-31T09:21:44Z","closed_at":null,"author_association":"NONE","body":"Hi. I have a question about generating DNS request. How can I insert valid DNS query in dnsMessageContent?\r\n\r\nlocal mem = memory.createMemPool(function(buf)\r\n\t\t\tbuf:getDnsPacket(ipv4):fill{\r\n\t\t\t\tipv4Src = \"192.168.2.2\",\r\n\t\t\t\tipv4Dst = \"192.168.2.1\",\r\n\t\t\t\tudpSrc = math.random(1025,65534),\r\n\t\t\t\tudpDst = 53,\r\n\t\t\t\tdnsQDCount = 1,\r\n\t\t\t\tdnsARCount = 1,\r\n\t\t\t\tdnsMessageContent = **???**}\r\n\t\t\tend)\r\n\r\nThanks in advance."},"comment":{"url":"https://api.github.com/repos/emmericp/MoonGen/issues/comments/340704967","html_url":"https://github.com/emmericp/MoonGen/issues/196#issuecomment-340704967","issue_url":"https://api.github.com/repos/emmericp/MoonGen/issues/196","id":340704967,"user":{"login":"santiagorr","id":900604,"avatar_url":"https://avatars3.githubusercontent.com/u/900604?v=4","gravatar_id":"","url":"https://api.github.com/users/santiagorr","html_url":"https://github.com/santiagorr","followers_url":"https://api.github.com/users/santiagorr/followers","following_url":"https://api.github.com/users/santiagorr/following{/other_user}","gists_url":"https://api.github.com/users/santiagorr/gists{/gist_id}","starred_url":"https://api.github.com/users/santiagorr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/santiagorr/subscriptions","organizations_url":"https://api.github.com/users/santiagorr/orgs","repos_url":"https://api.github.com/users/santiagorr/repos","events_url":"https://api.github.com/users/santiagorr/events{/privacy}","received_events_url":"https://api.github.com/users/santiagorr/received_events","type":"User","site_admin":false},"created_at":"2017-10-31T09:21:44Z","updated_at":"2017-10-31T09:21:44Z","author_association":"NONE","body":"Hi,\r\nThere is not currently any function that creates a valid DNS query for you. You'd have do to it by yourself :-) What do you need to do?\r\n\r\nP.S. I wonder if it could be possible to use something like [ljdns](https://github.com/vavrusa/ljdns#dns-messages) to handle the DNS messages."}}
{"actor":{"display_login":"santiagorr"}}