Changeset 2545

Show
Ignore:
Timestamp:
04/01/12 22:43:22 (14 months ago)
Author:
ahu
Message:

after consultation with Gertjan Schoenmaker, export-etc-hosts-suffix has been tweaked slightly, and is now documented too.

Location:
trunk/pdns/pdns
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/pdns/docs/pdns.xml

    r2541 r2545  
    1178011780            </listitem> 
    1178111781          </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> 
    1178211798 
    1178311799          <varlistentry> 
  • trunk/pdns/pdns/reczones.cc

    r2544 r2545  
    405405         
    406406        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 { 
    409410            string canonic=toCanonic(searchSuffix, parts[n]); 
    410411            if(canonic != parts[n]) {