Koozali.org: home of the SME Server

Dns domain change

Offline smnirosh

  • *****
  • 329
  • +0/-0
  • Learning never ends
Dns domain change
« on: October 07, 2015, 04:09:57 PM »
I am about to dns domain name change if my linux server. How to do it and what would i do before name change. (Like users can login how)

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Dns domain change
« Reply #1 on: October 07, 2015, 04:37:42 PM »
smnirosh

Login at the command prompt as admin (same password as root).
Then select Configure this server.
On one of the first few screens enter the new main domain name.
Step through all the screens without changing anything else.
Then save & reboot.
A new self signed certificate will be created.

Please read the Manual as this is all covered there, link at top of Forums.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline smnirosh

  • *****
  • 329
  • +0/-0
  • Learning never ends
Re: Dns domain change
« Reply #2 on: October 07, 2015, 07:33:43 PM »
I did as u said. The server works fine.
But an issue with a winsows 7 client.
I changed the domain name of that client without removing from the previous domain. Now it says
"The trust relationship between this workstation and the primary domain failed"

No domain user can logon.  :(

I changed again the domain name to previous name. But problem remains the same.

I connect that client again to the domain and removed from the domain few times. No good result.
The msg coming everytime when i log in with a domain user.

What can i do with this issue to log this client to the domain.

Please note other computers works fine with domain

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Dns domain change
« Reply #3 on: October 08, 2015, 10:52:15 AM »
smnirosh..

you posted the same question to NethServer forums..

please, stop it now.

if you're using SME, this is the place

moreover, when you ask for help, you must be verbose.. "changing dns domain" isn't clear.. and as you see, you can have some problems.

tell us:
- which OS are you using?
- what do you mean by "dns domain"
- what are you trying to do/achieve

Thank you

Offline smnirosh

  • *****
  • 329
  • +0/-0
  • Learning never ends
Re: Dns domain change
« Reply #4 on: October 08, 2015, 10:58:52 AM »
Sorry i am stucked in a big problem.

I want to change the servers dns domain name

Dns domain name is as an example sample.it to example.it.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Dns domain change
« Reply #5 on: October 08, 2015, 11:00:28 AM »
please, answer ALL the questions that have been posted, thank you

Offline stephdl

  • *
  • 1,523
  • +0/-0
    • Linux et Geekeries
Re: Dns domain change
« Reply #6 on: October 08, 2015, 11:00:58 AM »
The problem is windows related not smeserver. I have had this issue recently when I played with w10

Log on with a local user on the W7
Set back to a workgroup instead of a domain
Reboot since it is a mandatory
Then  add your client tobthe domain with the admin sme credentials
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Dns domain change
« Reply #7 on: October 08, 2015, 11:05:07 AM »
steph, domain like example.it and windows' domain are diofferent concepts..

changing the first one via SME's console won't affect the second as long as SME is the dns server for the clients.
if something is changed (and we don't know anything about how it was before and what OP did), un-joining clients from domain (WINDOWS' domain) and rejoining can be a solution, but likely all user's local profiles will be create as new ones.

moreover, OP is posting quite the same questions here and "there".. that's a bad thing.


Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Dns domain change
« Reply #8 on: October 08, 2015, 11:05:57 AM »
moving into SME9.x section, as it is related to SME core and not to a contrib

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Dns domain change
« Reply #9 on: October 08, 2015, 11:07:39 AM »
The problem is windows related not smeserver. I have had this issue recently when I played with w10

maybe and likely it is..

but since it seems to be originated by a change in SME settings, it should be filed into bugzilla and investigated.. even if not a bug, it may be an entry in the wiki.

Offline smnirosh

  • *****
  • 329
  • +0/-0
  • Learning never ends
Re: Dns domain change
« Reply #10 on: October 08, 2015, 11:27:15 AM »
Dear stephdl, i followed the suggestion u proposed few times. Though create a new user in the server, but nothing. I just changed the dns domain name. Other clients are working and quite good. But just one client.

My doubt is as i changed the domain name direclty without disconnecting from pervious domain.

What's ur idea

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Dns domain change
« Reply #11 on: October 08, 2015, 11:28:51 AM »
smnirosh, please (again), answer all question you've been asked (see http://forums.contribs.org/index.php/topic,51983.msg265580.html#msg265580)

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Dns domain change
« Reply #12 on: October 08, 2015, 11:34:28 AM »
smnirosh

I think you are getting URL type domain name  eg myseserver.it (called a FQDN) confused with Microsoft trusted DOMAIN (name), which are totally different things with totally seperate functions.
Read on.

Quote
I changed the domain name of that client without removing from the previous domain. Now it says
"The trust relationship between this workstation and the primary domain failed"

Well that was a big mistake. You should unjoin workstations from the DOMAIN before you change the DOMAIN name.
But based on my answer in this thread you only changed the FQDN (fully qualified domain name) which is the domain name for Internet related identity & access. That is different to the Microsoft trusted DOMAIN (name).

It sounds to me like you still have a MACHINE account on the SME server for that workstation which you will have to delete.
Please search these forums for the command to do that, maybe someone else can advise the command as I cannot quickly find it.

Once the trust relationship is broken you cannot fix it, you have to delete the MACHINE account & then rejoin the workstation to the trusted DOMAIN.

To change the trusted DOMAIN name (not the main FQDN for web access), you go into server manager Configuration section Workgroup panel, there is a setting for Workgroup & Domain (which also serves as the trusted DOMAIN name if your server is configured to be PDC (primary domain controller) or only as the Workgroup name if your server is not a PDC.
If you change this now (the trusted DOMAIN name), you will prevent all workstations from logging in to the trusted DOMAIN & be in a real big mess.

I think you were lucky as you only changed the web domain name.


Quote
What can i do with this issue to log this client to the domain.

You might get lucky, try this.
On the problematic workstation unjoin the workstation from the trusted DOMAIN.
It becomes a member of the Workgroup then.
Then change the Workgroup name on the workstation to something else completely different.
Then restart workstation.
Then join the workstation to the SME server trusted DOMAIN using the current trusted DOMAIN name as shown in server manager, & then restart the workstation. See if you can then log in to the DOMAIN.

If not successful, then I would say you have to delete the machine account for that workstation, from the SME  server.

STOP & THINK before doing anything else. Read up on the topic.
« Last Edit: October 08, 2015, 11:39:12 AM by janet »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline smnirosh

  • *****
  • 329
  • +0/-0
  • Learning never ends
Re: Dns domain change
« Reply #13 on: October 08, 2015, 11:44:15 AM »
My real domain name is machinedv.it. The previous name was maccinadev.it.
This is sme server 9.0. How can i delete machine account from sme server.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Dns domain change
« Reply #14 on: October 08, 2015, 11:55:44 AM »
My real domain name is machinedv.it. The previous name was maccinadev.it.

is there any entry into "hostname and addresses" panel pointing to the client?

Quote
This is sme server 9.0.

if so, please STOP immediately posting also on other forums (not SME related.. NS is a DIFFERENT distro)

Quote
How can i delete machine account from sme server.

please, define "machine account" in this context.. are you referring to a dns entry in "hostname and addresses" or to a windows machine account into /etc/samba/smbpasswd?