Disable DNS IPv6 Response.

Anonymous
2023-11-01T15:54:08+00:00

Greetings,

When i run : Nslookup

> google.com

Server: Server.DC

Address: 10.10.10.1

DNS request timed out.

timeout was 2 seconds. 

DNS request timed out.

timeout was 2 seconds. 

*** Request to Server.DC timed-out

> google.com

Server: Server.DC

Address: 10.10.10.1

Non-authoritative answer:

Name: google.com

Addresses: 2a00:1450:4006:813::200e

      142.250.201.46

> microsoft.com

Server: Server.DC

Address: 10.10.10.1

Non-authoritative answer:

Name: microsoft.com

Addresses: 2603:1030:b:3::152

      2603:1030:20e:3::23c 

      2603:1030:c02:8::14 

      2603:1020:201:10::10f 

      2603:1010:3:3::5b 

      20.76.201.171 

      20.112.250.133 

      20.236.44.162 

      20.70.246.20 

      20.231.239.246

1 - How can i reduce the timeout to be 1 second or even 0 for faster response?

2 - How can i disable the IPv6 response regarding i user IPv4 ONLY at the NIC, NO IPv6 Configured.

3 - How can i clear the server DNS cach in case it's cashing IPv6 responses?

Thank you

Windows for business Windows Server Networking Network connectivity and file sharing

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question. To protect privacy, user profiles for migrated questions are anonymized.

0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Anonymous
    2023-11-02T08:27:02+00:00

    Hello!

    1.The command I could locate for this purpose is nslookup set timeout | Microsoft Learn. You may want to try it.

    1. To disable IPv6 response, you can uncheck "Internet Protocol Version 6 (TCP/IPv6)" under network adapter / Properties.
    2. To clear the DNS cache on the server, you can run the command "ipconfig /flushdns". This will clear the DNS cache and force the server to query DNS servers for new information.

    Regards,

    Karlie

    0 comments No comments
  2. Anonymous
    2023-11-02T11:28:16+00:00

    Hello Weng,

    Thank you for your reply,

    1. Thank you this was helpful.
    2. IPv6 is already disabled across all devices, only IPv4 is checked across (need to disable the DNS response)
    3. I will automate this as a scheduled task to run every 15 min.

    BR.

    0 comments No comments
  3. Anonymous
    2023-11-06T08:44:51+00:00

    Hello!

    Referring to this thread, which disabling IPv6 DNS resolution can be a complex process.

    But we could use command  nslookup -type=a to only query ipv4 address.

    https://phoenixnap.com/kb/nslookup-command

    nslookup set type | Microsoft Learn

    Regards,

    Karlie

    0 comments No comments
  4. Anonymous
    2025-02-13T04:35:29+00:00

    nslookup -type=a websitename **** just limits the information returned about the looked-up site, it doesn't affect what DNS is queried.

    nslookup websitename 8.8.8.8 can be used to do an IPv4 DNS query (in this case to one of Google's DNS servers).

    For some unknown reason, on my Windows 11 system nslookup to an IPv6 DNS does not work. It just times out. (However, I can ping those same IPv6 DNS address, e.g., 2001:4860:4860::8888.) So, as a workaround, I'd like to prevent windows from using of IPv6 DNSs, but I can't seem to do that.

    EDIT: Well, now it has magically fixed itself. nslookup suddenly works with both IPv4 and IPv6 DNSs. I don't know why.

    0 comments No comments