dhcp.c(4228): non-null pointer – Error

Error dhcp.c(4228): non-null pointer

DHCP Error:

[ dhcp.c(4228): non-null pointer ] error in my message log
This error is due to improper reverse dns configuration.

I checked nslookup for my dhcp server ip address. Reverse DNS was not configure

[root@dhcpsrv01 etc]# nslookup 192.168.1.1
Server:         127.0.0.1
Address:        127.0.0.1#53


** server can’t find 1.1.168.192.in-addr.arpa.: NXDOMAIN

Then I add the reverse DNS entry for my dhcp server and rechecked nslookup

 [Administrator@teqbdc01 etc]# nslookup 192.168.1.1
Server:         ns0.example.com
Address:        ns0.example.com#53


1.1.168.192.in-addr.arpa  name = dhcpsrv01.domain.com.

Now I checked the message log and I found that error message was stopped printing.

Sample Files

edit /etc/reslove.conf
nameserver ns0.example.com   #primary dns server

nameserver 192.168.1.1

Edit  /etc/hosts

127.0.0.1               localhost.localdomain localhost
192.168.1.1           dhcpsrv01.domain.com      dhcpsrv01

Leave a Reply

Your email address will not be published. Required fields are marked *