Solved

Register Linux clients with Windows DNS server

Posted on 2011-09-17
7
538 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
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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 39

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
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 setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

705 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now