{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/701","repository_url":"https://api.github.com/repos/Microsoft/BashOnWindows","labels_url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/701/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/701/comments","events_url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/701/events","html_url":"https://github.com/Microsoft/BashOnWindows/issues/701","id":168366135,"number":701,"title":"/etc/resolv.conf and secondary DNX suffixes","user":{"login":"a8ksh4","id":115950,"avatar_url":"https://avatars.githubusercontent.com/u/115950?v=3","gravatar_id":"","url":"https://api.github.com/users/a8ksh4","html_url":"https://github.com/a8ksh4","followers_url":"https://api.github.com/users/a8ksh4/followers","following_url":"https://api.github.com/users/a8ksh4/following{/other_user}","gists_url":"https://api.github.com/users/a8ksh4/gists{/gist_id}","starred_url":"https://api.github.com/users/a8ksh4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a8ksh4/subscriptions","organizations_url":"https://api.github.com/users/a8ksh4/orgs","repos_url":"https://api.github.com/users/a8ksh4/repos","events_url":"https://api.github.com/users/a8ksh4/events{/privacy}","received_events_url":"https://api.github.com/users/a8ksh4/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/BashOnWindows/labels/network","name":"network","color":"c5def5"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-07-29T16:43:07Z","updated_at":"2016-09-22T22:03:44Z","closed_at":null,"body":"* A brief description - Mainly a question:  How do we get secondary dns suffixes into the /etc/resolv.conf since it is automatically generated?   Under the advanced TCP/IP settings -> DNS -> Append these DNS suffixes setting in windows, I have several listed, but they don't make it into the WSL resolv.conf.  \r\n\r\n* Expected results - It should be possible to either override the /etc/resolv.conf auto-generation or it should import additional DNS suffixes from windows TCP/IP settings.  \r\n\r\n**Here are the TCP/IP settings:**\r\n![dns suffixes](https://cloud.githubusercontent.com/assets/115950/17255834/bedbbc10-556f-11e6-81dc-6b27838c0f68.png)\r\n\r\n**And here is ipconfig /all output:**\r\n\r\n> C:\\Users\\dan>ipconfig /all\r\n> \r\n> Windows IP Configuration\r\n> \r\n>    Host Name . . . . . . . . . . . . : dan-MOBL\r\n>    Primary Dns Suffix  . . . . . . . : amr.corp.foo.com\r\n>    Node Type . . . . . . . . . . . . : Hybrid\r\n>    IP Routing Enabled. . . . . . . . : No\r\n>    WINS Proxy Enabled. . . . . . . . : No\r\n>    DNS Suffix Search List. . . . . . : amr.corp.foo.com\r\n>                                        fm.foo.com\r\n>                                        a.foo.com\r\n>                                        b.foo.com\r\n>                                        c.foo.com\r\n>                                        d.foo.com\r\n>                                        e.foo.com\r\n>                                        f.foo.com\r\n>                                        g.foo.com\r\n> \r\n> Ethernet adapter Ethernet 3:\r\n> \r\n>    Media State . . . . . . . . . . . : Media disconnected\r\n>    Connection-specific DNS Suffix  . :\r\n>    Description . . . . . . . . . . . : Realtek USB GbE Family Controller\r\n>    Physical Address. . . . . . . . . : 00-E0-1B-6F-F7-69\r\n>    DHCP Enabled. . . . . . . . . . . : Yes\r\n>    Autoconfiguration Enabled . . . . : Yes\r\n> \r\n> Ethernet adapter Ethernet 4:\r\n> \r\n>    Media State . . . . . . . . . . . : Media disconnected\r\n>    Connection-specific DNS Suffix  . :\r\n>    Description . . . . . . . . . . . : Lenovo USB Ethernet\r\n>    Physical Address. . . . . . . . . : 00-50-B6-60-CB-39\r\n>    DHCP Enabled. . . . . . . . . . . : Yes\r\n>    Autoconfiguration Enabled . . . . : Yes\r\n> \r\n> Ethernet adapter VirtualBox Host-Only Network:\r\n> \r\n>    Connection-specific DNS Suffix  . :\r\n>    Description . . . . . . . . . . . : VirtualBox Host-Only Ethernet Adapter\r\n>    Physical Address. . . . . . . . . : 0A-00-27-00-00-16\r\n>    DHCP Enabled. . . . . . . . . . . : No\r\n>    Autoconfiguration Enabled . . . . : Yes\r\n>    IPv4 Address. . . . . . . . . . . : 192.168.56.1(Preferred)\r\n>    Subnet Mask . . . . . . . . . . . : 255.255.255.0\r\n>    Default Gateway . . . . . . . . . :\r\n>    NetBIOS over Tcpip. . . . . . . . : Enabled\r\n> \r\n> Wireless LAN adapter Local Area Connection* 2:\r\n> \r\n>    Media State . . . . . . . . . . . : Media disconnected\r\n>    Connection-specific DNS Suffix  . :\r\n>    Description . . . . . . . . . . . : Microsoft Wi-Fi Direct Virtual Adapter\r\n>    Physical Address. . . . . . . . . : 44-85-00-13-03-95\r\n>    DHCP Enabled. . . . . . . . . . . : Yes\r\n>    Autoconfiguration Enabled . . . . : Yes\r\n> \r\n> Wireless LAN adapter Local Area Connection* 4:\r\n> \r\n>    Media State . . . . . . . . . . . : Media disconnected\r\n>    Connection-specific DNS Suffix  . :\r\n>    Description . . . . . . . . . . . : Microsoft Wi-Fi Direct Virtual Adapter #2\r\n>    Physical Address. . . . . . . . . : 46-85-00-13-03-94\r\n>    DHCP Enabled. . . . . . . . . . . : Yes\r\n>    Autoconfiguration Enabled . . . . : Yes\r\n> \r\n> Ethernet adapter Ethernet:\r\n> \r\n>    Connection-specific DNS Suffix  . : fm.intel.com\r\n>    Description . . . . . . . . . . . : Intel(R) Ethernet Connection (2) I219-LM\r\n>    Physical Address. . . . . . . . . : 50-7B-9D-A6-55-58\r\n>    DHCP Enabled. . . . . . . . . . . : Yes\r\n>    Autoconfiguration Enabled . . . . : Yes\r\n>    IPv4 Address. . . . . . . . . . . : 10.19.123.139(Preferred)\r\n>    Subnet Mask . . . . . . . . . . . : 255.255.255.0\r\n>    Lease Obtained. . . . . . . . . . : Friday, July 29, 2016 7:21:32 AM\r\n>    Lease Expires . . . . . . . . . . : Friday, July 29, 2016 7:21:28 PM\r\n>    Default Gateway . . . . . . . . . : 10.19.123.251\r\n>    DHCP Server . . . . . . . . . . . : 10.2.71.6\r\n>    DNS Servers . . . . . . . . . . . : 10.2.3.4\r\n>                                        10.5.6.7\r\n>                                        10.4.5.6\r\n>    Primary WINS Server . . . . . . . : 10.3.2.1\r\n>    Secondary WINS Server . . . . . . : 143.9.9.9\r\n>                                        134.8.8.8\r\n>    NetBIOS over Tcpip. . . . . . . . : Enabled\r\n> \r\n> Ethernet adapter VMware Network Adapter VMnet1:\r\n> \r\n>    Connection-specific DNS Suffix  . :\r\n>    Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter for VMnet1\r\n>    Physical Address. . . . . . . . . : 00-50-56-C0-00-01\r\n>    DHCP Enabled. . . . . . . . . . . : Yes\r\n>    Autoconfiguration Enabled . . . . : Yes\r\n>    IPv4 Address. . . . . . . . . . . : 192.168.223.1(Preferred)\r\n>    Subnet Mask . . . . . . . . . . . : 255.255.255.0\r\n>    Lease Obtained. . . . . . . . . . : Friday, July 29, 2016 7:21:24 AM\r\n>    Lease Expires . . . . . . . . . . : Friday, July 29, 2016 10:21:24 AM\r\n>    Default Gateway . . . . . . . . . :\r\n>    DHCP Server . . . . . . . . . . . : 192.168.223.254\r\n>    NetBIOS over Tcpip. . . . . . . . : Enabled\r\n> \r\n> Ethernet adapter VMware Network Adapter VMnet8:\r\n> \r\n>    Connection-specific DNS Suffix  . :\r\n>    Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter for VMnet8\r\n>    Physical Address. . . . . . . . . : 00-50-56-C0-00-08\r\n>    DHCP Enabled. . . . . . . . . . . : Yes\r\n>    Autoconfiguration Enabled . . . . : Yes\r\n>    IPv4 Address. . . . . . . . . . . : 192.168.32.1(Preferred)\r\n>    Subnet Mask . . . . . . . . . . . : 255.255.255.0\r\n>    Lease Obtained. . . . . . . . . . : Friday, July 29, 2016 7:21:24 AM\r\n>    Lease Expires . . . . . . . . . . : Friday, July 29, 2016 10:21:24 AM\r\n>    Default Gateway . . . . . . . . . :\r\n>    DHCP Server . . . . . . . . . . . : 192.168.32.254\r\n>    Primary WINS Server . . . . . . . : 192.168.32.2\r\n>    NetBIOS over Tcpip. . . . . . . . : Enabled\r\n> \r\n> Ethernet adapter Bluetooth Network Connection:\r\n> \r\n>    Media State . . . . . . . . . . . : Media disconnected\r\n>    Connection-specific DNS Suffix  . :\r\n>    Description . . . . . . . . . . . : Bluetooth Device (Personal Area Network)\r\n>    Physical Address. . . . . . . . . : 44-85-00-13-03-98\r\n>    DHCP Enabled. . . . . . . . . . . : Yes\r\n>    Autoconfiguration Enabled . . . . : Yes\r\n> \r\n> Wireless LAN adapter Wi-Fi:\r\n> \r\n>    Media State . . . . . . . . . . . : Media disconnected\r\n>    Connection-specific DNS Suffix  . : fm.foo.com\r\n>    Description . . . . . . . . . . . : Intel(R) Dual Band Wireless-AC 8260\r\n>    Physical Address. . . . . . . . . : D6-9A-00-E2-08-BA\r\n>    DHCP Enabled. . . . . . . . . . . : Yes\r\n>    Autoconfiguration Enabled . . . . : Yes\r\n> \r\n> C:\\Users\\dan>\r\n\r\n* Actual results (with terminal output if applicable)\r\n> dan@dan-MOBL:~$ cat /etc/resolv.conf\r\n> \\#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN\r\n> nameserver 10.1.2.3\r\n> nameserver 10.4.5.6\r\n> nameserver 10.7.8.9\r\n> search fm.foo.com\r\n> dan@dan-MOBL:~$\r\n\r\n* Your Windows build number\r\n14372\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/comments/249041643","html_url":"https://github.com/Microsoft/BashOnWindows/issues/701#issuecomment-249041643","issue_url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/701","id":249041643,"user":{"login":"sunilmut","id":16765049,"avatar_url":"https://avatars.githubusercontent.com/u/16765049?v=3","gravatar_id":"","url":"https://api.github.com/users/sunilmut","html_url":"https://github.com/sunilmut","followers_url":"https://api.github.com/users/sunilmut/followers","following_url":"https://api.github.com/users/sunilmut/following{/other_user}","gists_url":"https://api.github.com/users/sunilmut/gists{/gist_id}","starred_url":"https://api.github.com/users/sunilmut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunilmut/subscriptions","organizations_url":"https://api.github.com/users/sunilmut/orgs","repos_url":"https://api.github.com/users/sunilmut/repos","events_url":"https://api.github.com/users/sunilmut/events{/privacy}","received_events_url":"https://api.github.com/users/sunilmut/received_events","type":"User","site_admin":false},"created_at":"2016-09-22T22:03:44Z","updated_at":"2016-09-22T22:03:44Z","body":"As per the current design, WSL tries to keep `/etc/resolv.conf` up to date and in sync with the Windows DNS entries. But the \"stay up to date\" does not seem to be happening (see #1028 for more details). Currently, we don't anything with secondary DNS suffixes. But, this is great feedback. I have opened a task internally to track the work needed to make this less painful. Meanwhile, please provide the same feedback on our [User Voice Page](https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo) and continue to post any suggestions around solutions. We love your feedback!"}}
{"actor":{"display_login":"sunilmut"}}