{"action":"created","issue":{"url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/4670","repository_url":"https://api.github.com/repos/arendst/Sonoff-Tasmota","labels_url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/4670/labels{/name}","comments_url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/4670/comments","events_url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/4670/events","html_url":"https://github.com/arendst/Sonoff-Tasmota/issues/4670","id":392036360,"node_id":"MDU6SXNzdWUzOTIwMzYzNjA=","number":4670,"title":"2.4.2 core based firmwares can't resolve DNS names. ","user":{"login":"benzino77","id":15658235,"node_id":"MDQ6VXNlcjE1NjU4MjM1","avatar_url":"https://avatars3.githubusercontent.com/u/15658235?v=4","gravatar_id":"","url":"https://api.github.com/users/benzino77","html_url":"https://github.com/benzino77","followers_url":"https://api.github.com/users/benzino77/followers","following_url":"https://api.github.com/users/benzino77/following{/other_user}","gists_url":"https://api.github.com/users/benzino77/gists{/gist_id}","starred_url":"https://api.github.com/users/benzino77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benzino77/subscriptions","organizations_url":"https://api.github.com/users/benzino77/orgs","repos_url":"https://api.github.com/users/benzino77/repos","events_url":"https://api.github.com/users/benzino77/events{/privacy}","received_events_url":"https://api.github.com/users/benzino77/received_events","type":"User","site_admin":false},"labels":[{"id":1004672914,"node_id":"MDU6TGFiZWwxMDA0NjcyOTE0","url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/labels/awaiting%20for%20feedback","name":"awaiting for feedback","color":"efcf3e","default":false},{"id":1038675502,"node_id":"MDU6TGFiZWwxMDM4Njc1NTAy","url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/labels/troubleshooting","name":"troubleshooting","color":"012b5e","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":24,"created_at":"2018-12-18T07:58:12Z","updated_at":"2019-01-01T20:56:49Z","closed_at":"2018-12-18T13:13:57Z","author_association":"NONE","body":"**Describe the bug**\r\nBinaries based on 2.4.2 core, are not able to connect to mqtthost, loghost and ntphost when specified by name and works only when IP is specified. There is no problem with binaries compiled against 2.3.0 core. All binaries downloaded from http://thehackbox.org\r\n\r\n\r\n_Also, make sure these boxes are checked [x] before submitting your issue - Thank you!_\r\n- [x] _Searched the problem in issues and in the wiki_\r\n- [x] _Hardware used_ : wemos d1 mini\r\n- [x] _Development/Compiler/Upload tools used_ : esptool\r\n- [x] _If a pre-compiled release or development binary was used, which one?_ : 6.4.0 based on 2.4.2 core, 6.4.0 based on 2.3.0 core and 6.4.0.1 (dev) based on 2.4.2 core\r\n- [x] _You have tried latest release or development binaries?_ : yes\r\n- [x] _Provide the output of command_``status 0`` :\r\n```\r\nrelease 6.4.0 core 2.3.0\r\n00:00:00 Project sonoff Test12 (Topic test12-wm01, Fallback DVES_0C250E, GroupTopic sonoffs) Version 6.4.0(release-sonoff)-2_3_0\r\n00:00:00 WIF: Connecting to AP1 myiots in mode 11N as test12-wm01-1294...\r\n00:00:05 WIF: Connected\r\n00:00:05 DNS: Initialized\r\n00:00:05 HTP: Web server active on test12-wm01-1294.local with IP address 10.10.30.110\r\n00:00:06 MQT: Attempting connection...\r\n00:00:06 MQT: Connected\r\n00:00:06 MQT: tele/test12-wm01/LWT = Online (retained)\r\n00:00:06 MQT: cmnd/test12-wm01/POWER = \r\n00:00:06 MQT: tele/test12-wm01/INFO1 = {\"Module\":\"Sonoff Basic\",\"Version\":\"6.4.0(release-sonoff)\",\"FallbackTopic\":\"DVES_0C250E\",\"GroupTopic\":\"sonoffs\"}\r\n00:00:06 MQT: tele/test12-wm01/INFO2 = {\"WebServerMode\":\"Admin\",\"Hostname\":\"test12-wm01-1294\",\"IPAddress\":\"10.10.30.110\"}\r\n00:00:06 MQT: tele/test12-wm01/INFO3 = {\"RestartReason\":\"Software/System restart\"}\r\n00:00:06 MQT: stat/test12-wm01/RESULT = {\"POWER\":\"OFF\"}\r\n00:00:06 MQT: stat/test12-wm01/POWER = OFF\r\n08:28:55 MQT: tele/test12-wm01/STATE = {\"Time\":\"2018-12-18T08:28:55\",\"Uptime\":\"0T00:00:15\",\"Vcc\":2.788,\"SleepMode\":\"Dynamic\",\"Sleep\":50,\"LoadAvg\":38,\"POWER\":\"OFF\",\"Wifi\":{\"AP\":1,\"SSId\":\"myiots\",\"BSSId\":\"B8:27:EB:2E:AF:F9\",\"Channel\":1,\"RSSI\":100}}\r\n08:28:58 CMD: status 0\r\n08:28:58 MQT: stat/test12-wm01/STATUS = {\"Status\":{\"Module\":1,\"FriendlyName\":[\"Test12\"],\"Topic\":\"test12-wm01\",\"ButtonTopic\":\"0\",\"Power\":0,\"PowerOnState\":3,\"LedState\":1,\"SaveData\":1,\"SaveState\":1,\"SwitchTopic\":\"0\",\"SwitchMode\":[0,0,0,0,0,0,0,0],\"ButtonRetain\":0,\"SwitchRetain\":0,\"SensorRetain\":0,\"PowerRetain\":0}}\r\n08:28:58 MQT: stat/test12-wm01/STATUS1 = {\"StatusPRM\":{\"Baudrate\":115200,\"GroupTopic\":\"sonoffs\",\"OtaUrl\":\"http://thehackbox.org/tasmota/release/sonoff.bin\",\"RestartReason\":\"Software/System restart\",\"Uptime\":\"0T00:00:18\",\"StartupUTC\":\"2018-12-18T07:28:40\",\"Sleep\":50,\"BootCount\":5,\"SaveCount\":10,\"SaveAddress\":\"FA000\"}}\r\n08:28:58 MQT: stat/test12-wm01/STATUS2 = {\"StatusFWR\":{\"Version\":\"6.4.0(release-sonoff)\",\"BuildDateTime\":\"2018-12-16T15:33:27\",\"Boot\":31,\"Core\":\"2_3_0\",\"SDK\":\"1.5.3(aec24ac9)\"}}\r\n08:28:58 MQT: stat/test12-wm01/STATUS3 = {\"StatusLOG\":{\"SerialLog\":2,\"WebLog\":2,\"SysLog\":0,\"LogHost\":\"log.lipowa54.local\",\"LogPort\":514,\"SSId\":[\"myiots\",\"\"],\"TelePeriod\":300,\"SetOption\":[\"00008009\",\"558180C0\",\"00000000\"]}}\r\n08:28:58 MQT: stat/test12-wm01/STATUS4 = {\"StatusMEM\":{\"ProgramSize\":503,\"Free\":500,\"Heap\":14,\"ProgramFlashSize\":1024,\"FlashSize\":4096,\"FlashChipId\":\"1640EF\",\"FlashMode\":3,\"Features\":[\"00000809\",\"0FDAE794\",\"000383A0\",\"23B617CE\",\"00003BC0\"]}}\r\n08:28:58 MQT: stat/test12-wm01/STATUS5 = {\"StatusNET\":{\"Hostname\":\"test12-wm01-1294\",\"IPAddress\":\"10.10.30.110\",\"Gateway\":\"10.10.30.3\",\"Subnetmask\":\"255.255.255.0\",\"DNSServer\":\"10.10.30.3\",\"Mac\":\"60:01:94:0C:25:0E\",\"Webserver\":2,\"WifiConfig\":4}}\r\n08:28:58 MQT: stat/test12-wm01/STATUS6 = {\"StatusMQT\":{\"MqttHost\":\"mqtt.lipowa54.local\",\"MqttPort\":2883,\"MqttClientMask\":\"DVES_%06X\",\"MqttClient\":\"DVES_0C250E\",\"MqttUser\":\"myiots\",\"MqttType\":1,\"MAX_PACKET_SIZE\":1000,\"KEEPALIVE\":15}}\r\n08:28:58 MQT: stat/test12-wm01/STATUS7 = {\"StatusTIM\":{\"UTC\":\"Tue Dec 18 07:28:58 2018\",\"Local\":\"Tue Dec 18 08:28:58 2018\",\"StartDST\":\"Sun Mar 25 02:00:00 2018\",\"EndDST\":\"Sun Oct 28 03:00:00 2018\",\"Timezone\":\"+01:00\",\"Sunrise\":\"08:39\",\"Sunset\":\"16:54\"}}\r\n08:28:58 MQT: stat/test12-wm01/STATUS10 = {\"StatusSNS\":{\"Time\":\"2018-12-18T08:28:58\"}}\r\n08:28:58 MQT: stat/test12-wm01/STATUS11 = {\"StatusSTS\":{\"Time\":\"2018-12-18T08:28:58\",\"Uptime\":\"0T00:00:18\",\"Vcc\":2.788,\"SleepMode\":\"Dynamic\",\"Sleep\":50,\"LoadAvg\":39,\"POWER\":\"OFF\",\"Wifi\":{\"AP\":1,\"SSId\":\"myiots\",\"BSSId\":\"B8:27:EB:2E:AF:F9\",\"Channel\":1,\"RSSI\":100}}}\r\n\r\nrelease 6.4.0 core 2.4.2\r\n00:00:00 Project sonoff Test12 (Topic test12-wm01, Fallback DVES_0C250E, GroupTopic sonoffs) Version 6.4.0(sonoff)-2_4_2\r\n00:00:00 WIF: Connecting to AP1 myiots in mode 11N as test12-wm01-1294...\r\n00:00:05 WIF: Connected\r\n00:00:05 DNS: Initialized\r\n00:00:05 HTP: Web server active on test12-wm01-1294.local with IP address 10.10.30.110\r\n00:00:07 MQT: Attempting connection...\r\n00:00:12 MQT: Connect failed to mqtt.lipowa54.local:2883, rc -2. Retry in 10 sec\r\n00:00:22 MQT: Attempting connection...\r\n00:00:27 MQT: Connect failed to mqtt.lipowa54.local:2883, rc -2. Retry in 10 sec\r\n00:00:31 CMD: status 0\r\n00:00:31 RSL: stat/test12-wm01/STATUS = {\"Status\":{\"Module\":1,\"FriendlyName\":[\"Test12\"],\"Topic\":\"test12-wm01\",\"ButtonTopic\":\"0\",\"Power\":0,\"PowerOnState\":3,\"LedState\":1,\"SaveData\":1,\"SaveState\":1,\"SwitchTopic\":\"0\",\"SwitchMode\":[0,0,0,0,0,0,0,0],\"ButtonRetain\":0,\"SwitchRetain\":0,\"SensorRetain\":0,\"PowerRetain\":0}}\r\n00:00:31 RSL: stat/test12-wm01/STATUS1 = {\"StatusPRM\":{\"Baudrate\":115200,\"GroupTopic\":\"sonoffs\",\"OtaUrl\":\"http://thehackbox.org/tasmota/release/sonoff.bin\",\"RestartReason\":\"Software/System restart\",\"Uptime\":\"0T00:00:21\",\"StartupUTC\":\"\",\"Sleep\":50,\"BootCount\":4,\"SaveCount\":9,\"SaveAddress\":\"FB000\"}}\r\n00:00:31 RSL: stat/test12-wm01/STATUS2 = {\"StatusFWR\":{\"Version\":\"6.4.0(sonoff)\",\"BuildDateTime\":\"2018-12-16T14:31:02\",\"Boot\":31,\"Core\":\"2_4_2\",\"SDK\":\"2.2.1(cfd48f3)\"}}\r\n00:00:31 RSL: stat/test12-wm01/STATUS3 = {\"StatusLOG\":{\"SerialLog\":2,\"WebLog\":2,\"SysLog\":0,\"LogHost\":\"log.lipowa54.local\",\"LogPort\":514,\"SSId\":[\"myiots\",\"\"],\"TelePeriod\":300,\"SetOption\":[\"00008009\",\"558180C0\",\"00000000\"]}}\r\n00:00:31 RSL: stat/test12-wm01/STATUS4 = {\"StatusMEM\":{\"ProgramSize\":521,\"Free\":480,\"Heap\":21,\"ProgramFlashSize\":1024,\"FlashSize\":4096,\"FlashChipId\":\"1640EF\",\"FlashMode\":3,\"Features\":[\"00000809\",\"0FDAE794\",\"000383A0\",\"23B617CE\",\"00003BC0\"]}}\r\n00:00:31 RSL: stat/test12-wm01/STATUS5 = {\"StatusNET\":{\"Hostname\":\"test12-wm01-1294\",\"IPAddress\":\"10.10.30.110\",\"Gateway\":\"10.10.30.3\",\"Subnetmask\":\"255.255.255.0\",\"DNSServer\":\"10.10.30.3\",\"Mac\":\"60:01:94:0C:25:0E\",\"Webserver\":2,\"WifiConfig\":4}}\r\n00:00:31 RSL: stat/test12-wm01/STATUS6 = {\"StatusMQT\":{\"MqttHost\":\"mqtt.lipowa54.local\",\"MqttPort\":2883,\"MqttClientMask\":\"DVES_%06X\",\"MqttClient\":\"DVES_0C250E\",\"MqttUser\":\"myiots\",\"MqttType\":1,\"MAX_PACKET_SIZE\":1000,\"KEEPALIVE\":15}}\r\n00:00:31 RSL: stat/test12-wm01/STATUS7 = {\"StatusTIM\":{\"UTC\":\"Thu Jan 01 00:00:31 1970\",\"Local\":\"Thu Jan 01 00:00:31 1970\",\"StartDST\":\"Thu Jan 01 00:00:00 1970\",\"EndDST\":\"Thu Jan 01 00:00:00 1970\",\"Timezone\":\"+00:00\",\"Sunrise\":\"07:43\",\"Sunset\":\"16:03\"}}\r\n00:00:31 RSL: stat/test12-wm01/STATUS10 = {\"StatusSNS\":{\"Time\":\"1970-01-01T00:00:31\"}}\r\n00:00:31 RSL: stat/test12-wm01/STATUS11 = {\"StatusSTS\":{\"Time\":\"1970-01-01T00:00:31\",\"Uptime\":\"0T00:00:21\",\"Vcc\":3.041,\"SleepMode\":\"Dynamic\",\"Sleep\":50,\"LoadAvg\":21,\"POWER\":\"OFF\",\"Wifi\":{\"AP\":1,\"SSId\":\"myiots\",\"BSSId\":\"B8:27:EB:2E:AF:F9\",\"Channel\":1,\"RSSI\":100}}}\r\n\r\nrel 6.4.0.1 core 2.4.2\r\n00:00:00 Project sonoff Test12 (Topic test12-wm01, Fallback DVES_0C250E, GroupTopic sonoffs) Version 6.4.0.1(a232267-sonoff)-2_4_2\r\n00:00:00 WIF: Connecting to AP1 myiots in mode 11N as test12-wm01-1294...\r\n00:00:05 WIF: Connected\r\n00:00:05 DNS: Initialized\r\n00:00:05 HTP: Web server active on test12-wm01-1294.local with IP address 10.10.30.110\r\n00:00:07 MQT: Attempting connection...\r\n00:00:12 MQT: Connect failed to mqtt.lipowa54.local:2883, rc -2. Retry in 10 sec\r\n00:00:22 MQT: Attempting connection...\r\n00:00:27 MQT: Connect failed to mqtt.lipowa54.local:2883, rc -2. Retry in 10 sec\r\n00:00:38 MQT: Attempting connection...\r\n00:00:43 MQT: Connect failed to mqtt.lipowa54.local:2883, rc -2. Retry in 10 sec\r\n00:00:46 CMD: status 0\r\n00:00:46 RSL: stat/test12-wm01/STATUS = {\"Status\":{\"Module\":1,\"FriendlyName\":[\"Test12\"],\"Topic\":\"test12-wm01\",\"ButtonTopic\":\"0\",\"Power\":0,\"PowerOnState\":3,\"LedState\":1,\"SaveData\":1,\"SaveState\":1,\"SwitchTopic\":\"0\",\"SwitchMode\":[0,0,0,0,0,0,0,0],\"ButtonRetain\":0,\"SwitchRetain\":0,\"SensorRetain\":0,\"PowerRetain\":0}}\r\n00:00:46 RSL: stat/test12-wm01/STATUS1 = {\"StatusPRM\":{\"Baudrate\":115200,\"GroupTopic\":\"sonoffs\",\"OtaUrl\":\"http://thehackbox.org/tasmota/release/sonoff.bin\",\"RestartReason\":\"Software/System restart\",\"Uptime\":\"0T00:00:32\",\"StartupUTC\":\"\",\"Sleep\":50,\"BootCount\":3,\"SaveCount\":8,\"SaveAddress\":\"F4000\"}}\r\n00:00:46 RSL: stat/test12-wm01/STATUS2 = {\"StatusFWR\":{\"Version\":\"6.4.0.1(a232267-sonoff)\",\"BuildDateTime\":\"2018-12-17T23:01:14\",\"Boot\":31,\"Core\":\"2_4_2\",\"SDK\":\"2.2.1(cfd48f3)\"}}\r\n00:00:46 RSL: stat/test12-wm01/STATUS3 = {\"StatusLOG\":{\"SerialLog\":2,\"WebLog\":2,\"SysLog\":0,\"LogHost\":\"log.lipowa54.local\",\"LogPort\":514,\"SSId\":[\"myiots\",\"\"],\"TelePeriod\":300,\"SetOption\":[\"00008009\",\"558180C0\",\"00000000\"]}}\r\n00:00:46 RSL: stat/test12-wm01/STATUS4 = {\"StatusMEM\":{\"ProgramSize\":521,\"Free\":480,\"Heap\":21,\"ProgramFlashSize\":1024,\"FlashSize\":4096,\"FlashChipId\":\"1640EF\",\"FlashMode\":3,\"Features\":[\"00000809\",\"0FDAE794\",\"000383A0\",\"23B617CE\",\"00003BC0\"]}}\r\n00:00:46 RSL: stat/test12-wm01/STATUS5 = {\"StatusNET\":{\"Hostname\":\"test12-wm01-1294\",\"IPAddress\":\"10.10.30.110\",\"Gateway\":\"10.10.30.3\",\"Subnetmask\":\"255.255.255.0\",\"DNSServer\":\"10.10.30.3\",\"Mac\":\"60:01:94:0C:25:0E\",\"Webserver\":2,\"WifiConfig\":4}}\r\n00:00:46 RSL: stat/test12-wm01/STATUS6 = {\"StatusMQT\":{\"MqttHost\":\"mqtt.lipowa54.local\",\"MqttPort\":2883,\"MqttClientMask\":\"DVES_%06X\",\"MqttClient\":\"DVES_0C250E\",\"MqttUser\":\"myiots\",\"MqttType\":1,\"MAX_PACKET_SIZE\":1000,\"KEEPALIVE\":15}}\r\n00:00:46 RSL: stat/test12-wm01/STATUS7 = {\"StatusTIM\":{\"UTC\":\"Thu Jan 01 00:00:46 1970\",\"Local\":\"Thu Jan 01 00:00:46 1970\",\"StartDST\":\"Thu Jan 01 00:00:00 1970\",\"EndDST\":\"Thu Jan 01 00:00:00 1970\",\"Timezone\":\"+00:00\",\"Sunrise\":\"07:43\",\"Sunset\":\"16:03\"}}\r\n00:00:46 RSL: stat/test12-wm01/STATUS10 = {\"StatusSNS\":{\"Time\":\"1970-01-01T00:00:46\"}}\r\n00:00:46 RSL: stat/test12-wm01/STATUS11 = {\"StatusSTS\":{\"Time\":\"1970-01-01T00:00:46\",\"Uptime\":\"0T00:00:32\",\"Vcc\":3.040,\"SleepMode\":\"Dynamic\",\"Sleep\":50,\"LoadAvg\":26,\"POWER\":\"OFF\",\"Wifi\":{\"AP\":1,\"SSId\":\"myiots\",\"BSSId\":\"B8:27:EB:2E:AF:F9\",\"Channel\":1,\"RSSI\":100}}}\r\n\r\n```\r\n\r\n**To Reproduce**\r\nesptool.py --port /dev/ttyUSB0 erase_flash \r\nesptool.py --port /dev/ttyUSB0 write_flash -fs 1MB -fm dout 0x0 /tmp/Tasmota/2.3.0-rel/sonoff.bin     \r\nesptool.py --port /dev/ttyUSB0 erase_flash \r\nesptool.py --port /dev/ttyUSB0 write_flash -fs 1MB -fm dout 0x0 /tmp/Tasmota/2.4.2-rel/sonoff.bin      \r\nesptool.py --port /dev/ttyUSB0 erase_flash \r\nesptool.py --port /dev/ttyUSB0 write_flash -fs 1MB -fm dout 0x0 /tmp/Tasmota/2.4.2-dev/sonoff.bin \r\n\r\n\r\n**Expected behavior**\r\nBinaries based on 2.4.2 core should be able to connect to MQTTHOST, LOGHOST and NTPHOST via names not only IP \r\n\r\n\r\n**(Please, remember to close the issue when the problem has been addressed)**\r\nI will, but I'm sure... nevermind"},"comment":{"url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/comments/450756343","html_url":"https://github.com/arendst/Sonoff-Tasmota/issues/4670#issuecomment-450756343","issue_url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/4670","id":450756343,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDc1NjM0Mw==","user":{"login":"m0rph2k","id":37833189,"node_id":"MDQ6VXNlcjM3ODMzMTg5","avatar_url":"https://avatars1.githubusercontent.com/u/37833189?v=4","gravatar_id":"","url":"https://api.github.com/users/m0rph2k","html_url":"https://github.com/m0rph2k","followers_url":"https://api.github.com/users/m0rph2k/followers","following_url":"https://api.github.com/users/m0rph2k/following{/other_user}","gists_url":"https://api.github.com/users/m0rph2k/gists{/gist_id}","starred_url":"https://api.github.com/users/m0rph2k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m0rph2k/subscriptions","organizations_url":"https://api.github.com/users/m0rph2k/orgs","repos_url":"https://api.github.com/users/m0rph2k/repos","events_url":"https://api.github.com/users/m0rph2k/events{/privacy}","received_events_url":"https://api.github.com/users/m0rph2k/received_events","type":"User","site_admin":false},"created_at":"2019-01-01T20:56:49Z","updated_at":"2019-01-01T20:56:49Z","author_association":"NONE","body":"Hi\r\n\r\nMy solution with a Windows DNS Server. \r\n1) Add new Primary Zone eg. mqtt-sonoff\r\n2) New A Record to mqtt Server ip\r\n3) Add Tasmota Mqtt Host without *.local eg. mqtt-sonoff\r\n\r\n"}}
{"actor":{"display_login":"m0rph2k"}}