VirtualBox

Changeset 48753 in vbox for trunk


Ignore:
Timestamp:
Sep 28, 2013 6:41:28 AM (11 years ago)
Author:
vboxsync
Message:

get_dns_addr_domain: in case of name server is from 127/8 network, but isn't .0.0.1. Slirp enter in dnsproxy mode.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/slirp_dns.c

    r48526 r48753  
    279279                if ((pDns->de_addr.s_addr) == RT_N2H_U32_C(INADDR_LOOPBACK))
    280280                    pDns->de_addr.s_addr = RT_H2N_U32(RT_N2H_U32(pData->special_addr.s_addr) | CTL_ALIAS);
    281                 else
     281                else if (pData->fUseDnsProxy != 1)
    282282                {
    283283                    /* Modern Ubuntu register 127.0.1.1 as DNS server */
    284                     LogRel(("NAT: DNS server %RTnaipv4 registration detected, switching to the host resolver.\n",
     284                    LogRel(("NAT: DNS server %RTnaipv4 registration detected, switching to the DNS proxy.\n",
    285285                            pDns->de_addr.s_addr));
    286                     RTMemFree(pDns);
    287                     /* Releasing fetched DNS information. */
    288                     slirpReleaseDnsSettings(pData);
    289                     pData->fUseHostResolver = 1;
    290                     return VINF_SUCCESS;
     286                    pData->fUseDnsProxy = 1;
     287                    pData->fUseHostResolver = 0;
    291288                }
    292289            }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette