Skip to content

Commit

Permalink
Inserts dot in DNS search
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeda committed Jan 24, 2017
1 parent ed39ce6 commit 0bc563a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/dnsapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func dnsQuery(t string, name string) (string, error) {
} else {
// TODO: respect NDOTS
for _, s := range config.Search {
names = append(names, name+s)
names = append(names, name+"."+s)
}
names = append(names, name)
}
Expand Down

0 comments on commit 0bc563a

Please sign in to comment.