dbatools icon indicating copy to clipboard operation
dbatools copied to clipboard

General - Do not strip FQDN

Open wsmelton opened this issue 10 years ago • 4 comments

If someone specifies an FQDN, reattach the domain back to the server name when testing for netbios/ip/etc. $server.ComputerNamePhysicalNetBIOS + $domain. This impacts many commands, including Remove-SqlDatabaseSafely which broke for me because the server's dns wasn't in my search suffix.

wsmelton avatar Sep 16 '16 03:09 wsmelton

Is this something that is being discussed in the style guide?

If not, should it? Seems like an issue item won't have the same impact in terms of discussion.

SirCaptainMitch avatar Feb 10 '17 13:02 SirCaptainMitch

@ctrlbold @ConstantineK is this item in the style guide? seems like it should be.

SirCaptainMitch avatar Mar 10 '17 14:03 SirCaptainMitch

PS: also watch out because the "domain from AD" may very well not coincide with the "domain from DNS".

niphlod avatar Mar 13 '17 09:03 niphlod

We need to discuss this at length in #dbatools-style then come up with a solution, find the impacted commands and create a new issue. Please see #dbatools-style

potatoqualitee avatar Jul 23 '17 10:07 potatoqualitee