Want to highlight a helpful answer? Upvote!
Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >
Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >
Is there a similar command to wintel's "ipconfig /registerdns" for OS X?
3 replies
Yea. I was wondering what the terminal command would be for registerdns, particularly when the computer is connected to an Active Directory domain.
In System Preferences -> Network press "Renew DHCP Lease".
Or do you want a CLI command?
Or do you want a CLI command?
Well, there
is actually an
ipconfig CLI command! (
man ipconfig tells you all about it.) The command
sudo ipconfig set en0 DHCP (case is important---'DHCP' not 'dhcp')
will do a DHCP lease renew, with all the attendant DNS renewing. I imagine that there is a more direct way to do what you want using dscl, the Directory Services command line interface (again,
man dscl
for details).
What is the problem that you are you trying to solve?
sudo ipconfig set en0 DHCP (case is important---'DHCP' not 'dhcp')
will do a DHCP lease renew, with all the attendant DNS renewing. I imagine that there is a more direct way to do what you want using dscl, the Directory Services command line interface (again,
man dscl
for details).
What is the problem that you are you trying to solve?
ipconfig /registerdns for osx?