dsgetdcname returns partner dc

How do I get a dc/gc to return its own name went dsdiag advertising test does a dsgetdcname ?

I have 2 sites .. server1 and server2 are both dc/gc  server1 is the primary location and server2 is a new site.
LVL 1
HalCHubAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AwinishCommented:
You can use
dsquery server -isgc
Try uncheck & check the option back of gc from ADSS.
Also,see there is no replication error with second dc.
 
0
AwinishCommented:
Check sysvol is shared & replication is completed,if replication is not completed it will connect to other available dc.
Type net share & see sysvol & netlogon share is available.
0
Premkumar YogeswaranAnalyst II - System AdministratorCommented:
Hi,
Check in the AD Sites and Services, Whether the Subnet is configured correctly for your domain.

And then Run -> netdiag and DCdiag

Check that did you receive any error

Type set L in command prompt in client machine and check whether they are connecting to the patner DC in other site.
0
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

HalCHubAuthor Commented:
sysvol did not replicate so I copied and made got netlogon and sysvol shares.

Check replmon no replication errors..   but netdiag says replcation did not complete...

attached you will find a file with dsdiag,dcdiag and netdiag...

sites are connect via windows vpn and will be getting replaced with vpn hardware

thanks
diags.txt
0
AwinishCommented:
Just run

repadmin /syncall /A /E /P /d

on any dc,if its successful,you don have to worry anything as i checked your report,its fine.


0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
HalCHubAuthor Commented:
no errors from repadmin but in the event log

The partition DC=DomainDnsZones,DC=mydomain,DC=local should be hosted at site CN=camp,CN=Sites,CN=Configuration,DC=mydomain,DC=local, but has not been instantiated yet. However, the KCC could not find any hosts from which to replicate this partition.

The partition DC=DomainDnsZones,DC=mydomain,DC=local should be hosted at site CN=camp,CN=Sites,CN=Configuration,DC=mydomain,DC=local, but has not been instantiated yet. However, the KCC could not find any hosts from which to replicate this partition.
0
Premkumar YogeswaranAnalyst II - System AdministratorCommented:
Try to run
Netdiag /fix

and then check for the error in DCDiag
0
HalCHubAuthor Commented:
none
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Active Directory

From novice to tech pro — start learning today.