Solved

Register Linux clients with Windows DNS server

Posted on 2011-09-17
7
553 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 
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

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

Suggested Solutions

The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…

751 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