Add options for specifying buffer size and hardcoded dns endpoint