Samba DNS update failed

Issues related to configuring your network
Post Reply
iainhallam
Posts: 5
Joined: 2013/07/11 11:12:25

Samba DNS update failed

Post by iainhallam » 2014/01/10 19:11:19

I've got a testing CentOS 6.5 minimal install that I'm trying to join to an Active Directory domain. I set the hostname as its fully-qualified version during the installation - cherry.vm.sys.internal. When I use the command below, the join works, and I can log into the box using my AD username and password, but I get an error:

Code: Select all

> net ads join -U <Administrator>
Enter <Administrator>'s password:
Using short domain name -- SYS
Joined 'CHERRY' to dns domain 'sys.internal'
No DNS domain configured for cherry. Unable to perform DNS Update.
DNS update failed!
Here's my /etc/sysconfig/network:

Code: Select all

NETWORKING=yes
HOSTNAME=cherry.vm.sys.internal
GATEWAY=<router.ip>
And /etc/hosts:

Code: Select all

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
That entry in sysconfig is the only mention of the name "cherry" in /etc that relates to networking and this is the state that those files were in after installation.

As I understand it, a Windows host would join to the domain and register its name, but this is failing. I have another VM that I've tried without the .vm in its FQDN, but it's having the same problem. Both are fully up-to-date on packages.

What's stopping the DNS from working, please?

lloydsystems
Posts: 48
Joined: 2014/01/02 16:21:30
Location: Melbourne, Australia

Re: Samba DNS update failed

Post by lloydsystems » 2014/01/11 20:49:47

I think this is a problem with the client's identity. If your AD domain is 'sys.internal' I would remove the 'vm.' then try adding an entry to /etc/hosts with your IP address:

Code: Select all

x.x.x.x  cherry.sys.internal  cherry
I would also have in /etc/resolv.conf:

Code: Select all

domain  sys.internal
nameserver  y.y.y.y
where y.y.y.y is the IP address of the DC.

iainhallam
Posts: 5
Joined: 2013/07/11 11:12:25

Re: Samba DNS update failed

Post by iainhallam » 2014/01/12 18:46:44

Thanks - I'll try this at work tomorrow.
lloydsystems wrote:I think this is a problem with the client's identity. If your AD domain is 'sys.internal' I would remove the 'vm.' then try adding an entry to /etc/hosts with your IP address:

Code: Select all

x.x.x.x  cherry.sys.internal  cherry
So I ought to have the FQDN in both /etc/sysconfig/network and /etc/hosts? That feels like redundant design :-|

lloydsystems
Posts: 48
Joined: 2014/01/02 16:21:30
Location: Melbourne, Australia

Re: Samba DNS update failed

Post by lloydsystems » 2014/01/13 16:48:40

Yes, I know what you mean. However, name resolution is determined by nsswitch.conf which probably has an entry like
hosts: files dns
Now, in the absence of a DNS server to correctly specify the hostname and domain of this box the system will resort to /etc/hosts.

Post Reply

Return to “CentOS 6 - Networking Support”