Replaced hardcoded dns/http rules with vars.