Prevent PCs from using Server hostnames

Zenz, Thomas Thomas.Zenz at oenb.at
Fri May 19 07:17:33 UTC 2017


Dear all,

We are running DHCP Server 4.3.5.

To prevent Clients form using server hostnames and so pull traffic to the client, I added the following script:

        set HostName = ucase(substring (ddns-fwd-name,0,4));
        #############################################################################
        #                                 Update only DDNS for PC, ANP and RIB
        #############################################################################

        if (( HostName ~= "PC[0-9] [0-9]" ) or ( HostName4~= "PRT[0-9]" )) {
           log (info, concat ("DDNS for ", ddns-fwd-name));
           ddns-updates on;
        }
        else {
           log (info, concat ("no DDNS for hostname: ", ddns-fwd-name));
           ddns-updates off;
        }
        ########################################

My question is: Will that work?

I do have so many requests per day, it's hard to test for me.

Kind Regards
Thomas

Diese E-Mail kann vertrauliche Informationen enthalten und irrtümlich an Sie gelangt sein. In diesem Fall informieren Sie bitte sofort die Absenderin bzw. den Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail oder von Teilen dieser Mail sind nicht gestattet.


More information about the dhcp-users mailing list