Dynamin DNS updates from clients - Redhat

This is a discussion on Dynamin DNS updates from clients - Redhat ; I am trying to update DNS information of the clients in the DNS server that are receiving IP information from DHCP servers. The clients have hostnames (that will not change ofcourse), but since the IP address changes everyday or so ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: Dynamin DNS updates from clients

  1. Dynamin DNS updates from clients

    I am trying to update DNS information of the clients in the DNS server
    that are receiving IP information from DHCP servers.
    The clients have hostnames (that will not change ofcourse), but since
    the IP address changes everyday or so can I connect to these
    workstations using hostnames without knowing the IP address
    information?

    Any help will be great in this regard.

    Thanks to all.

  2. Re: Dynamin DNS updates from clients

    learner wrote:
    > I am trying to update DNS information of the clients in the DNS server
    > that are receiving IP information from DHCP servers.
    > The clients have hostnames (that will not change ofcourse), but since
    > the IP address changes everyday or so can I connect to these
    > workstations using hostnames without knowing the IP address
    > information?
    >
    > Any help will be great in this regard.
    >
    > Thanks to all.


    In /etc/named.conf, add

    controls { inet 127.0.0.1 allow { localhost; | keys { rndckey; }; };

    /etc/rndc.key (make sure this is included in named.conf)

    key "rndckey" { algorithm hmac-md5; secret "...hash goes here..."; };

    In the nmaed.conf, ensure that the zone definitions include

    allow-update { localhost; }

    In /etc/dhcpd.conf add

    ddns-updates on;
    ddns-update-style interim;
    allow client-updates;

    Something like that should do the trick for you -- dig through the man
    pages as needed, of course.

  3. Re: Dynamin DNS updates from clients

    learner wrote:
    > I am trying to update DNS information of the clients in the DNS server
    > that are receiving IP information from DHCP servers.
    > The clients have hostnames (that will not change ofcourse), but since
    > the IP address changes everyday or so can I connect to these
    > workstations using hostnames without knowing the IP address
    > information?
    >
    > Any help will be great in this regard.
    >
    > Thanks to all.


    This is usually a bad idea. It's easy to tell DHCP to assign specific MAC
    addresses to specific hostnames and IP addresses, with : otherwise, you have
    to mock with /etc/dhclient-eth0.conf, and put 'DHCP_HOSTNAME=$HOSTNAME' in
    your /etc/sysconfig/network-scripts/ifcfg-eth0 in order to get the RHEL machines.

    The big problem of wandering IP addresses is wandering SSH and SSL keys. The
    second big problem is NFS, which gets quite unhappy if a server does not
    successfully disconnect its mounted directories and comes back up with a
    different IP address.

+ Reply to Thread