Changeset 2545
- Timestamp:
- 04/01/12 22:43:22 (14 months ago)
- Location:
- trunk/pdns/pdns
- Files:
-
- 2 modified
-
docs/pdns.xml (modified) (1 diff)
-
reczones.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/pdns/docs/pdns.xml
r2541 r2545 11780 11780 </listitem> 11781 11781 </varlistentry> 11782 <varlistentry> 11783 <term>export-etc-hosts-suffix</term> 11784 <listitem> 11785 <para> 11786 If set, all hostnames in the export-etc-hosts file are 11787 loaded in canonical form, based on this suffix, unless the 11788 name contain a '.', in which case the name is unchanged. 11789 So an entry called 'pc' with 11790 export-etc-hosts-suffix='home.com' will lead to the 11791 generation of 'pc.home.com' within the recursor. An entry 11792 called 'server1.home' will be stored as 'server1.home', 11793 regardless of the export-etc-hosts setting. Available 11794 in since 3.4. 11795 </para> 11796 </listitem> 11797 </varlistentry> 11782 11798 11783 11799 <varlistentry> -
trunk/pdns/pdns/reczones.cc
r2544 r2545 405 405 406 406 for(unsigned int n=1; n < parts.size(); ++n) { 407 makeNameToIPZone(newMap, parts[n], parts[0]); 408 if(!searchSuffix.empty()) { 407 if(searchSuffix.empty() || parts[n].find('.') != string::npos) 408 makeNameToIPZone(newMap, parts[n], parts[0]); 409 else { 409 410 string canonic=toCanonic(searchSuffix, parts[n]); 410 411 if(canonic != parts[n]) {