IPV6 DNS Servers relevance check

Im trying to produce an IPV 6 DNS server check of this …

NOT ( exists addresses whose ( it as string = “x.x.x.x”) of dns servers of network AND exists addresses whose (it as string = “y.y.y.y”) of dns servers of network)

The dns servers of network will only return IPV4 a d not 6

I have tried ipv6 dns servers of find adapter “Ethernet” of network
which returns the correct DNS server for that one connection name but I also have to look for “Local Area Connection” (win7) and “NIC” (2K12R2)

Any thoughts,.?

I would ideally like to combine the following
NOT ( exists addresses whose ( it as string = “x.x.x.x”) of dns servers of network AND exists addresses whose (it as string = “y.y.y.y”) of dns servers of network)
AND
exists (connection of network) whose (name of it contains “Ethernet” or name of it contains “Local Area Connection” or name of it contains " NIC" and status of it = (connection status connected))

to return IPV6 DNS servers…
The task im heading towards is to change the IPV6 DNS servers of active connections to two specific IPV6 DNS servers in our organization…

Here is relevance to get all ipv6 and ipv4 dns addresses:

Q: (ipv6 dns servers of it as string; addresses of dns servers of it as string) of adapters of network
A: fd:ea:ea:ea:ff:ff:ff:1
A: 192.168.0.10
A: 192.168.0.11

Is there a reason you’re using find adapter "Ethernet" of network and not just adapters of network to get all of them?

Thank you Sir…
I only need to chnage those adapters that are currently connected and active.
I dont/cant configure the wireless adapters or internal adapters if its a docked laptop with an ethernet adapter in the docking station.

All this is because of our DNS servers being used in a similar fashion to opendns’s filtered offering BUT ours are not accessible from outside of campus. So, active, on campus, domain and non domain have to be changed.

Thanks.

Like this?

ipv6 dns servers of it whose (status of it = 1) of (find adapters "Ethernet" of network;find adapters "Local Area Connection" of network;find adapters "NIC" of network)

Perfect… Thank you!!
It would be nice to have the inspector’s syntax work the same as the ipv4 version :wink:

2 Likes