Uploaded image for project: 'Erlang/OTP'
  1. Erlang/OTP
  2. ERL-792

inet_res:lookup/3 on Windows 10 does not work OOTB

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Help Wanted
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 21.0
    • Fix Version/s: None
    • Component/s: kernel
    • Labels:
      None

      Description

      Environment:

      Windows 10 Pro Workstation
      Erlang 21 (10.0.1)
      No ~/.erlang or inetrc file present

      Administrative command shell session:

      C:\>nslookup google.com
      Server:  router.asus.com
      Address:  192.168.1.1
      
      Non-authoritative answer:
      Name:    google.com
      Addresses:  2607:f8b0:400a:803::200e
                172.217.14.238
      
      
      C:\>erl -noshell -eval "io:format(""~p~n"",[inet_res:lookup(""google.com"",in,a)])." -s init stop
      []
      
      C:\>erl -noshell -eval "inet_db:add_ns({8,8,4,4}),io:format(""~p~n"",[inet_res:lookup(""google.com"",in,a)])." -s init stop
      [{74,125,196,101},
       {74,125,196,102},
       {74,125,196,113},
       {74,125,196,139},
       {74,125,196,100},
       {74,125,196,138}]
      
      C:\>erl -noshell -eval "inet_db:add_ns({192,168,1,1}),io:format(""~p~n"",[inet_res:lookup(""google.com"",in,a)])." -s init stop
      [{216,58,192,14}]
      
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              raimo Raimo Niskanen
              Reporter:
              lukebakken Luke Bakken
              OTP team:
              PS
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: