Fixes PHP errors in DNS service