Add --httpendpoint option and DNS API generator