Solved

Register Linux clients with Windows DNS server

Posted on 2011-09-17
7
545 Views
Last Modified: 2013-12-06
I have a windows DNS server and I am having problem register linux clients dns names with dhcp. DNS server is workgroup and not part of domain. DNS works fine on NT box but never on the linux boxes.

CentOS release 5.5 (Final)

cat /etc/resolv.conf
search abc.local
nameserver 192.168.1.75
nameserver 192.168.1.1

grep ^hosts /etc/nsswitch.conf
hosts:      files dns

0
Comment
Question by:Mazdajai
  • 3
  • 3
7 Comments
 
LVL 10

Expert Comment

by:acbxyz
ID: 36554352
You need DHCP_HOSTNAME set in your ifcfg-eth0 file. This will set send host-name "$DHCP_HOSTNAME" in dhclient.conf.
Official the value of DHCP_HOSTNAME should be the host only, but Windows may need the FQDN of your box.
0
 
LVL 21

Author Comment

by:Mazdajai
ID: 36554369
it was set in ifcfg-eth0 file -

NM_CONTROLLED="no"
ONBOOT=yes
HWADDR=00:50:56:AC:00:06
TYPE=Ethernet
BOOTPROTO=dhcp
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"
UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03
DHCP_HOSTNAME=abc.domain
0
 
LVL 10

Expert Comment

by:acbxyz
ID: 36554414
I forgot the other side.Did you activate the dns update support in your dhcp server? On windows 2003 dhcp console, in server- or scope properties on tab dns there is a checkbox called "dynamically update dns records for dhcp clients which don't request update (like Windows NT 4.0)" or similar. With this checkbox on it should work.
0
Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
LVL 21

Author Comment

by:Mazdajai
ID: 36554458
Dynamic update: secure and nonsecure

is that what you mean?

I have a cisco box that provides dhcp, would that be the problem?
0
 
LVL 10

Accepted Solution

by:
acbxyz earned 500 total points
ID: 36554527
While windows can update dns directly or via domain services / active directory, linux can't by itself. To update dns records for linux maschines simple, you will need your windows domain controller to be dhcp server, too.
Maybe it is possible to update dns records using samba on your linux box, but I don't know that way.
The best way is to combine dhcp and dns on the same box. If your windows server is in a seperate subnet you can set up your cisco router as a dhcp smart-relay only and set your windows server as "ip helper-address"
0
 
LVL 21

Author Comment

by:Mazdajai
ID: 36557294
Thanks I will test it on a sandbox and let you know the result.
0
 
LVL 40

Expert Comment

by:noci
ID: 36577111
In unix environments Clients are not trusted blindly, so only a trusted party (the DHCP server) is allowed to update the DNS server (normal setup).

If you want linux clients to update a dns server you can build around nsupdate and spread the keys to your DNS server around.
IMHO the DHCP server updating the DNS is more secure.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I was supporting a handful of Windows 2008 (non-R2) 2 node clusters with shared quorum disks. Some had SQL 2008 installed and some were just a vendor application that we supported. For the purposes of this article it doesn’t really matter which so w…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

822 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question