Browse files

Fix typo in example config.

  • Loading branch information...
1 parent e930d84 commit b5afc543834d6b9b18ec436ccc5b15149e641266 @aeden aeden committed Mar 17, 2013
Showing with 4 additions and 4 deletions.
  1. +1 −1 README.md
  2. +1 −1 erldns.config.example
  3. +2 −2 src/erldns_resolver.erl
View
2 README.md
@@ -71,7 +71,7 @@ erldns_zone_cache:put_zone({
name = <<"example.com">>,
type = ?DNS_TYPE_A,
ttl = 3600,
- data = #dns_rrdata_a{ip = {1,2,3,4}
+ data = #dns_rrdata_a{ip = {1,2,3,4}}
},
#dns_rr{
name = <<"www.example.com">>,
View
2 erldns.config.example
@@ -1,7 +1,7 @@
[
{erldns,[
{port, 8053},
- {inet4, "127.0.0.1"}},
+ {inet4, "127.0.0.1"},
{inet6, "::1"},
{catch_exceptions, false},
{credentials, {"indentifier", "token"}},
View
4 src/erldns_resolver.erl
@@ -43,11 +43,11 @@ resolve(Message, _Qname, _Qtype, {error, not_authoritative}, _Host, _CnameChain)
resolve(Message, Qname, Qtype, Zone, Host, CnameChain) ->
% Step 3: Match records
- resolve(Message, Qname, Qtype, erldns_zone_cache:get_records_by_name(Qname), Host, CnameChain, Zone). % Query Zone for name
+ resolve(Message, Qname, Qtype, erldns_zone_cache:get_records_by_name(Qname), Host, CnameChain, Zone).
%% There were no exact matches on name, so move to the best-match resolution.
resolve(Message, Qname, Qtype, [], Host, CnameChain, Zone) ->
- best_match_resolution(Message, Qname, Qtype, Host, CnameChain, best_match(Qname, Zone), Zone); % Query Zone for best match name
+ best_match_resolution(Message, Qname, Qtype, Host, CnameChain, best_match(Qname, Zone), Zone);
%% There was at least one exact match on name.
resolve(Message, Qname, Qtype, MatchedRecords, Host, CnameChain, Zone) ->

0 comments on commit b5afc54

Please sign in to comment.