Domain pass through

This commit is contained in:
Armon Dadgar 2014-01-02 15:51:40 -08:00
parent 71e85cea72
commit 470d9f9984
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ func (c *Command) setupAgent(config *Config, logOutput io.Writer, logWriter *log
}
if config.DNSAddr != "" {
server, err := NewDNSServer(agent, logOutput, config.DNSAddr)
server, err := NewDNSServer(agent, logOutput, config.Domain, config.DNSAddr)
if err != nil {
agent.Shutdown()
c.Ui.Error(fmt.Sprintf("Error starting dns server: %s", err))