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

inet_res:getbyname/2 on windows gives nxdomain for all queries

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 19.1.1
    • Fix Version/s: None
    • Component/s: kernel
    • Labels:

      Description

      Works as intended on ubuntu erl (and elixir iex shell) on 18 and 19 tested on AWS.

      Gives this result (from iex, I dont have erlang actually installed, its a bundled erts):

      iex(core@127.0.0.1)1> :inet_res.getbyname('_sip._tcp.videonor.no', :srv)
      {:ok,
       {:hostent, '_sip._tcp.videonor.no', [], :srv, 2,
        [{10, 100, 5060, 'no-prox01.videonor.net'},
         {20, 100, 5060, 'no-prox02.videonor.net'}]}}
      

      On windows locally:

      C:\Users\oliver>nslookup -type=SRV _sip._tcp.videonor.no
      Server:  dns1.rev.no
      Address:  213.138.160.19
      
      Non-authoritative answer:
      _sip._tcp.videonor.no   SRV service location:
                priority       = 10
                weight         = 100
                port           = 5060
                svr hostname   = no-prox01.videonor.net
      _sip._tcp.videonor.no   SRV service location:
                priority       = 20
                weight         = 100
                port           = 5060
                svr hostname   = no-prox02.videonor.net
      
      C:\Users\oliver\Documents\code\core>erl
      Eshell V7.2.1  (abort with ^G)
      1>  inet_res:getbyname("_sip._tcp.videonor.no", srv).
      {error,nxdomain}
      

      It is not a local DNS issue, essen from ninenines also confirmed this happened on windows for him. The SRV record is years old, so its not that either.

      Testing from a VM on the windows host works as intended as well.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              raimo Raimo Niskanen
              Reporter:
              olivermt olivermt
              OTP team:
              PS
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: