General discussion

Locked

Linux Client to use Dynamic DNS

By A Fuchigami ·
Hi There,

I'm trying to get a Red Hat 7.3 machine to dynamically register itself in a DNS server. I'm using DHCP to get my IP Address, and the DNS Server is running on a Windows box. I know that the Windows DNS supports dynamic DNS (When the DHCPserver gives out an IP Address, it registers that computer with the DNS).

I get the IP Address for the machine correctly, and I can ping other computers on the network and can resolve thier names properly. Unfortunately, my own name is not registered with the DNS.

Following tips on the various forums, I've got the following network configuration setup.

The /etc/sysconfig/network looks like:
NETWORKING=yes
HOSTNAME=rower1
DHCP_HOSTNAME=rower1.testdomain.com

and network config file(/etc/sysconfig/network-scripts/ifcfg-eth0) has the following:
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
DHCP_HOSTNAME="rower1"

I've also tried setting the DHCP_HOSTNAME value to both rower1 and rower1.testdomain.com


Does anyone have any ideas on how to get things working?

Thanks.

Albert.

This conversation is currently closed to new comments.

15 total posts (Page 1 of 2)   01 | 02   Next
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Linux Client to use Dynamic DNS

by mledauphin In reply to Linux Client to use Dynam ...

Take a look at the /etc/hosts file. Your hostname must be present.
That's all

Hope this will help you

Collapse -

Linux Client to use Dynamic DNS

by A Fuchigami In reply to Linux Client to use Dynam ...

The /etc/hosts file has the following entry:
127.0.0.1 localhost.localdomain localhost

I don't think changing this file is the answer, because then only the local computer will see the change. I want other machines on the network to be able to resolve the computer name to the correct entry - when means the DNS needs to get updated..

Collapse -

Linux Client to use Dynamic DNS

by alveden In reply to Linux Client to use Dynam ...

Not sure whether the dns client in Redhat 7.3 distribution could be configure for dynamic updates. You need to have a dns client which have the capability of dynamic dns update. Check out the page below ... you can try those client. Haven't tried itwith windows 2000 dns before, but tried some of the client with bind.

http://www.linux.org/apps/all/Networking/DNS.html

Collapse -

Linux Client to use Dynamic DNS

by A Fuchigami In reply to Linux Client to use Dynam ...

People have been saying on the web that they've gotten RH7.3 working with DDNS. Didn't see anything on the web page you sugested that talked about configuring a Linux box to update a DNS Server dynamically.

Collapse -

Linux Client to use Dynamic DNS

by jreed In reply to Linux Client to use Dynam ...

I'm not quite sure how to do it, but the isc ver of dhclient looks like it should be able to:
http://www.isc.org/products/DHCP/dhcp-v3.html

Collapse -

Linux Client to use Dynamic DNS

by A Fuchigami In reply to Linux Client to use Dynam ...

I'm looking for a solution using RH components right now.

Thanks.

Collapse -

Linux Client to use Dynamic DNS

by WhW In reply to Linux Client to use Dynam ...

This kinda side-steps the DNS question, but setting up Samba on the linux box should resolve your naming issue. Most windows clients check for the Netbios name first anyway

Collapse -

Linux Client to use Dynamic DNS

by WhW In reply to Linux Client to use Dynam ...

As another option, configure DHCP to assigning the Linux box a static ip and adding a manual entry to the DNS server. Just another option
HIH

Collapse -

Linux Client to use Dynamic DNS

by A Fuchigami In reply to Linux Client to use Dynam ...

I've got Samba running on the box, and it doesn't have anything to do with the name resolution. If the DNS doesn't know about the machine, you have to hook into Samba using the IP address.

I know that I can use a Static IP and hardcode the DNS, but I'm looking for a dynamic solution.

Thanks.

Collapse -

Linux Client to use Dynamic DNS

by WhW In reply to Linux Client to use Dynam ...

There are solutions for the linux-side of the house, but, I do not know how well (if?) they apply to cross-platform services. Will an MS DNS server accept input via nsupdate? maybe? maybe not? Are you able (willing?) to switch to Linux services? If not, then I'm not sure where the solution lies, although I would be interested in knowing the final resolution.


Related Links:

for BIN
http://www.oceanwave.com/technical-resources/unix-admin/nsupdate.html

for DJBDNS:
http://www.thismetalsky.org/magic/projects/dhcp_dns.html

ALSO,
PLEASE NOTE THE FOLLOWING ADVISORIES

http://www.cert.org/advisories/CA-2003-01.html
http://www.cert.org/advisories/CA-2002-12.html

{Please remove extraneous spaces from the links above}

HIH

Back to Linux Forum
15 total posts (Page 1 of 2)   01 | 02   Next

Related Discussions

Related Forums