Monthly Archives: June 2009

Find the site name for given subnet in AD

Command to Find the site name for given subnet in AD, some time we know the IP and subnet and we have to find the site in active directory, you can use the below command dsquery subnet -name 192.168.1.0/24 | dsget subnet -site Subnet = 192.168.1.0/24 Please replece the above subnet with your subnet to… Read More »

DNS Query Types

There are 2 types of DNS query used in windows server/client to resolve the DNS entry, the output result can be diffrent for each query and the end system always uses Recursive query, you can test both the query using nslookup tool advance options [no]recurse DNS has two types of Query Iterative Query Recursive Query… Read More »

Command to troubleshoot DNS issues (Nslookup Advance Usage)

Command to troubleshoot DNS issues (Nslookup Advance Usage) Nslookup is a command-line tool used to test and troubleshoot the DNS issues Find the advance help for Nslookup C:>nslookupDefault Server: ns1chn.vsnl.comAddress: 202.54.6.60 > ?Commands: (identifiers are shown in uppercase, [] means optional)NAME – print info about the host/domain NAME using default serverNAME1 NAME2 – as above,… Read More »

Command to find the number of Sitelink’s for the corresponding site

Command to find the number of Sitelink’s for the corresponding site csvde -f C:Tempsite.csv -d “CN=Inter-Site Transports,CN=Sites,CN=Configuration,DC=test,DC=com” -r “(CN=*site2*)” -l “cn” In the above command you will get the output in site.csv file, it contains all the Sitelinks and it’s corresponding DN Eg: Output DN,cn“CN=site1/site2,CN=IP,CN=Inter-Site Transports,CN=Sites,CN=Configuration,DC=test,DC=com”, site1/site2 In this site2 – Site Namesite1/site2 – Sitelink… Read More »