首页 > 使用, 配置文件 > ATScs�DNSe�?c?�??�a?�

ATScs�DNSe�?c?�??�a?�

2014年4月7日     浏览数:296 发表评论 阅读评论

ATScs�DNSe�?c?�??�a?�

Apache Traffic Serverc��a?Za?�e�?e??a?�a��e��???cs�c?�c��a�?ISPc��???aS?a??e�?i??a�??��e??a?�cs�a?�e�?a???�?e???z?a��a�???�i??e�?ATSa??a?�c�?a??c�?a???�?a?�i??e??e?za??a??e��a?�a?�a�??�?e�??�?cs�DNSc?�c�Ya��aY?a?Za?�?��a�?cY?cs�aZ�a??aZYa��i??ATSa??dns?�?e??cs�?��???e????Ze��?��a��a?Z?????�i??a��??�cs�a�??�??��???e�?c�se�?a????�aY?c?�cs�a?�a?�dnse�?c?�e��e??e??e?�c��a??e?�i???��???cs�c??a???z?a��a��?��c?�?��e�?c�???�c�???�a��a??e?�e�?i????�a��a�?e?�a??DNSc�?a�?cs�?��???a�?a?Se�?c?�e?�e??e?�c��cs�e????Zi??a?�a??a��a��c�?a�?cs�?S�????�????c��a????�a??i??a????�???a??c��a�?ATSa??DNSc?�c�Ye�?c?�cs�a?�a??a�zc�???�a?�a��

ATScs�dnsa??c�??�????

a??ATSa?�i??DNS???a?�a??a??e�?e�?cs�???a?�a��??�a��e??cY?e?�ATS???a?�a??a?�?�?a?�a��c?�c?�??�?z�i??e�?a?�c�Ycs�DNSe�??z?a?�a??a??cs�a��bindc��i??a??a?�?�?a�sc??c?�a?�a��??�?z�a?�a?�??�a??a��cs�a��e�??��a��a??e?????ATScs�e�??�?e??i??a??e�?e�?a?�a??ATSe�?e�?e��a��e�?e��a?�a��DNScs�e�??z?a�?c?�a�?a?s???a?�a??aY?c?�cs�?�?a?????a?�i??a?�a?�a��a?�e�?e��a?�?z?a��e��c?�???a??a?�cs�a�?a???�?a??a��a???��i??c��a?ZATSe??a?�cs�c�???�aYYa??e��???a�?a�???�a?�e?????a??a��cs�i??ATSc?�c�Ye�?e�?e��?Z?e??a??c�?a??c?�cs�DNSc?�c�Y???e?�e??a�z???c�?c?�?Z�a?�i??a��remap??�parentcs�?Z�a?�c��a��a�Ze�?a?Za��a��aY?a?Zhostnamea�?domaincs�?Z�a?�???a?�e?z????�?a?�a��

ATSa??DNSc?�c�Ya??e��??�a�se�?a�?i?Yc��a?�cs�e??i??a��?z??????�a??a??c?�cs�DNSc?�c�Ye�?a??i??ATSa??e??e???????�a�?a??a��

ATScs�dnse�?c?�e??c��

e�?a?�e�?ATScs�DNSc?�c�Yi????�a��e��a�?e?�e�?a?�e�?ATScs�DNSa?�e�?aSYe??i??ATScs�DNSc?�c�Yi??a???�?a??e�?e?�a?�a?�a??a?�e??a?�i??a?�a?�???dnse�??z?e??a?�a�?dnsc?�a�?e??a?�a��a??dnse�??z?e??a?�i??a?????c�Ya�?a?�SplitDNSe?�?��a?�a??a?�c��cs�aSYe??i??a??SplitDNScs�a??c�?i????�a��e�se?�c��c��cs�?��???a??a�?e????Zi????�?��a��a???��e�?a��c�?a��

  1. resolvere�??z?

    ATScs�e�??z????aS?i??a??a�?c?�a?????c��a??binda�zcZ�cs�libresolveraSYe??i??e�sa??cs�e�?c?�?��a?Sa?�e��?��?��e�?a�?e�?e?�?�??��a�?a�?a?SSplitDNSc�??�SaSYe??c��a��

    a?�?�� a?�?��c��az� e�?e��a�? c�Y?�????a?? ?�?a??
    proxy.config.dns.lookup_timeout RECD_INT 20 RECU_DYNAMIC
    proxy.config.dns.retries RECD_INT 5 RECU_DYNAMIC [0-9]
    proxy.config.dns.search_default_domains RECD_INT 0 RECU_DYNAMIC [0-1]
    proxy.config.dns.failover_number RECD_INT 5 RECU_DYNAMIC
    proxy.config.dns.failover_period RECD_INT 60 RECU_DYNAMIC
    proxy.config.dns.max_dns_in_flight RECD_INT 2048 RECU_DYNAMIC
    proxy.config.dns.validate_query_name RECD_INT 0 RECU_DYNAMIC [0-1]
    proxy.config.dns.splitDNS.enabled RECD_INT 0 RECU_DYNAMIC [0-1]
    proxy.config.dns.splitdns.filename RECD_STRING splitdns.config
    proxy.config.dns.url_expansions RECD_STRING
    proxy.config.dns.nameservers RECD_STRING
    proxy.config.dns.local_ipv6 RECD_STRING NULL RECU_RESTART_TS
    proxy.config.dns.local_ipv4 RECD_STRING NULL RECU_RESTART_TS
    proxy.config.dns.resolv_conf RECD_STRING /etc/resolv.conf RECU_RESTART_TS
    proxy.config.dns.round_robin_nameservers RECD_INT 0 RECU_DYNAMIC
    proxy.config.dns.dedicated_thread RECD_INT 0 RECU_RESTART_TS [0-1]
    1. proxy.config.dns.lookup_timeout

      a?�a??sa��e?�a??a?�?��?Z�a?�DNS?Y?e??cs�e��?��?��e�?i??a??a?�a??c??a?�cs�c?�c�Ye�?i??dnscs�e��?��a?se��???a??e?�a??aYYa??cs�e�?e��e??e?�a?zi??a��a??ATScs�dnsc?�c�Ya?se�?aS?a��?��??�cs�e�?a??a??a?�a??aYYa??cs�dns?Y?e??i??a?�a?�a?�a?�a??dnse?�?��a��c?�a��a��?��i??a��?z?a?�cs�c?�c�Y??�e??c??a?�i??a?�a?�a?�cs�???aS?a�?e?�??Ya�?a?�?��e�???�e??cY�i??a??a�?e��a?�e�??�?e?�a??a?�?��a�?a?Zc��cs�retriesa?�?��i??a�????e�?a?�e�Ya??e�?e??aS�a��??�cs�a�?e��???i?s??�a?�aYYi?s1si??a??a?�a�?c?�i?s3si???�?a?�a�?c?�i?s10s

    2. proxy.config.dns.retries

      e?�a??a?�?��?Z�a?�dns?Y?e??cs�e�?e?�?�??��i??a??e�?e?�a�?a?Za?se?�a�za?Sa��a�?faila��e�sa??a?s??�a?se�Ylookup_timeoute�?a??i??a�?c?�a??dns?Y?e??a??a?�a??a???Z�a?�cs�?��e�?e??a�?a��a�?a?�e?�a�zi??a??a?????e?�a�zfaila��a?Sa��c?�a?�cs�a?�?�?dns?Y?e??cs�e��?��?��e�?=lookup_timeout * retriesi??e?�a??a??e�?e�?a��

    3. proxy.config.dns.search_default_domains

      a?�a??e?�e�?a?Ya??cs�a?�?��i??e�?e��???c??cs�aYYa??a?Zc?�i??a��a?�e?�a�??�?e�?a�?abci??a��?z?e?�e�???�apple.comi??e�?a?sa�??Y?abci??c��a?Za�??Y?abc.apple.coma��a??a�?a�?e�?a�sa??aYYa??a��== /etc/resolv.confe�?cs�search e��e??a�sa?�a��?��e�?a???�?a?�a�?c?�e?????a??a?�a�?c?�a?�i??e?�c�?a?�a�?a�???�a?�cs�e�?e�?i??e?????a??a??a?�cs�a��c�?a??a??a�?e��a??c�?a��

    4. proxy.config.dns.failover_number

      a??ATScs�cZ?a??e�?i??a?????aS?cs�a��a?�???a?�a??aY???�e�??��i???��a�?e�sa????�a��a?�i????�a��e??a?sc��a??ATSe�?c?�a�sa??dnse�??z????aS?a�?i??a�?e??a�??��es?a?�c�Ya��a?�????��es??��???a?sa?�c�Ycs�a��e?�a??a?�?��?Z�a?�a?�a?�dnse�??z????aS?a�?a??a�?a�?e�?cs�fail?�??��i??e��e?�e?�a?�?�?a?Zi??a��a?s?SSe?�a??dns???aS?a�?a?�a�?e��a??a?�i??a??failover_period?��e�?e�?a??a??a??c�?a��

    5. proxy.config.dns.failover_period

      e?�???a??failovercs�??�a��a?�i??dns???aS?a�?e?�?��e��cs�?��e�?a��

    6. proxy.config.dns.max_dns_in_flight

      a??dnse�??z????aS?a?�i????�a�sa??a�?a�?e�?a???��?Y?e??cs�?��e�?i??a?Ya��???dns?Y?e??cs�a?�a?�?��a��e?�a???��??�a?Y???a?sa?�a�????aS?cs�e��???a?�c�???�a��cs�a��a?�e?�???e??i??e�Sa�scs�dnsa?�a?�?Y?e??i??e????Ze�Sa�scs�httpsm??�e�?i??c�?a?�cs�e��???a?�c�?a?Ya��e�Sa�sa��e�?e��2048a??a?�a????�e??c??a?�cs�c?�c�Ya?Y???a�Yc�?cs�a��

    7. proxy.config.dns.validate_query_name

      ?Z�a?�???a?�?�?e??dns?Y?e??c��?z?cs�aYYa??a��a??dnse�??z?e�?i??a�?a??a?�a�scs�a��a�?e?Ze��i??a?????aS?a�?e?�a�zcs�dnsc��?z?i??a��?z?e??e??a?�a?�e?�?��cs�aYYa?????a?�a?�e�?i??e??a??e??a?�a�scs�a��a�??��a��

    8. proxy.config.dns.splitDNS.*

      SplitDNS???a??e�?c?�?��a��e�?i??a??a??a??cs�aYYa??e��c�?a??a??cs�dnse�??z????aS?a�?cs�e�?e�?i??e?�a??e�?e�?e??a�Y?�?a��cs�???e�?dnse�??z????aS?cs�e�?c��a?�a��??�a��a��a??a?�c��cs�?��???e�?a?ZSplitDNSe?�e??e????Za��

    9. proxy.config.dns.url_expansions

      e?�a??a�?a�s??�a��???a?�a?sdnscs�aYYa???��a��i??a??dns?Y?e??a??a?�cs�??�a��a?�i??a??a�??SSe?�a??e�?e?�a??/etc/resolv.confcs�domaina��a??e?�i??e?�e�????a??a�???�a�sa??cs�i???��a��a��a?s??�c��e??a??e�?a???��e?�a��a?�a?�e�? proxy.config.http.enable_url_expandomatica��?��aSYe??c�?a??a???Z?e??a??c�?a��

    10. proxy.config.dns.nameservers

      e?�a??a?�?��???c�??Z?e�?c?�ATSa??c�?cs�dnse�??z????aS?a�?i??a�sa?????aS?a�?a??a�?a�?c�??�?es�a?�a��c�?a?�a?Z/etc/resovl.confa?�cs�nameservera��a��?z?a???��a??c�?nameserversa�?resolv_confe�?c?�i??e�?a??e?�a?�a??e�?c?�e�?cs�?��??�cs�nameservera?se??a???�?a??a??a?�e��a��

    11. proxy.config.dns.local_ipv6

      e��?��c�?a�??Y?e??IPV6cs�c?�a??ipv6a?�a?�a��

    12. proxy.config.dns.local_ipv4

      e��?��c�?a�??Y?e??IPV4cs�c?�a??ipv4a?�a?�a��

    13. proxy.config.dns.resolv_conf

      e�?e��/etc/resolv.confa��e�?e��a��a?se��c�?c?�c�Ycs�resolv.confa?�e�?c?�cs�nameserversc��e�?c?�a��a??a�ze��e??a??a?�i??a??a�??�?a??a��a��cs�?��a��e�?a?�a�?a?Zc?�c�Ycs�resolv.confe?�e??a??a?�a��resolv_conf??�a?�cs�?��a��a?�cs�nameservera�sa?�a��a?sa?Znameserverse�?a�sa?�cs�a?�e��a??a??a??e��dns???aS?a�????a?�e�??z????aS?a��

    14. proxy.config.dns.round_robin_nameservers

      e�?e��0i??e?�e�?cs�e�?c?�e�Ya??/etc/resolv.confe�?e�?c?�”option rotate”i?????a?�?��cs�i??a???????�a��a?sa??resolv_confa�?nameservera?�cs�?��??�dns???aS?a�?a?�e?�e?�a??c�?a��

    15. proxy.config.dns.dedicated_thread

      e�?e��???0a��e�?e��dnscs�e?�?��???a??ET_NET0a?Sa��c?�a��a��?z?e�?c?�a??1i??a��a?sa?�c��e��a?�a??dnsc??c?�i?sET_DNSa��a????�e??c??a?�cs�c?�c�Yi??a�?e��e�?c?�a??1a��

  2. DNSc?�a�?i??ATSa?�a?sHostDB

    HostDB???c�????a?sdnscs�c?�a�?i??a�????a?�a??a�sc??c?�cZ?a??a?�i??ATScs�workerc??c?�a??dnsc?�a�??��??�e?�e??a?�?Y?c��a�?a??a��a�Za?�a�sc?�a?�a?S???e�?i??ATS??�2a??cache?��??�a?�i??e��a?�httpcs�cachea�?a�?i??HostDBa?Y???a?�a??c��c��cs�cache?��??�a?�c?�c�Ya��

    a?�?�� a?�?��c��az� e�?e��a�? c�Y?�????a?? ?�?a??
    proxy.config.hostdb RECD_INT 1 RECU_DYNAMIC [0-1]
    proxy.config.hostdb.filename RECD_STRING host.db RECU_DYNAMIC
    proxy.config.hostdb.size RECD_INT 120000 RECU_DYNAMIC
    proxy.config.hostdb.storage_path RECD_STRING c?�e?�a�sa?� RECU_DYNAMIC
    proxy.config.hostdb.storage_size RECD_INT 33554432 RECU_DYNAMIC
    proxy.config.hostdb.ttl_mode RECD_INT 0 RECU_DYNAMIC [0-3]
    proxy.config.hostdb.lookup_timeout RECD_INT 120 RECU_DYNAMIC ^[0-9]+$
    proxy.config.hostdb.timeout RECD_INT 1440 RECU_DYNAMIC ^[0-9]+$
    proxy.config.hostdb.verify_after RECD_INT 720 RECU_DYNAMIC
    proxy.config.hostdb.fail.timeout RECD_INT 0 RECU_DYNAMIC
    proxy.config.hostdb.re_dns_on_reload RECD_INT 0 RECU_DYNAMIC
    proxy.config.hostdb.serve_stale_for RECD_INT 0 RECU_DYNAMIC
    proxy.config.hostdb.migrate_on_demand RECD_INT 0 RECU_DYNAMIC
    proxy.config.hostdb.cluster RECD_INT 0 RECU_DYNAMIC
    proxy.config.hostdb.cluster.round_robin RECD_INT 0 RECU_DYNAMIC
    proxy.config.hostdb.strict_round_robin RECD_INT 0 RECU_DYNAMIC
    proxy.config.hostdb.timed_round_robin RECD_INT 0 RECU_DYNAMIC
    proxy.config.cache.hostdb.sync_frequency RECD_INT 120 RECU_DYNAMIC
    proxy.config.hostdb.ip_resolve RECD_STRING NULL RECU_RESTART_TS ipv4;ipv6
    1. proxy.config.hostdb

      e?�a??a?�?��a?�a??hostdbcs�cacheaSYe??i??c?�e�?a?S???e??i??e?�a??hostdbcs�cachea?Y???a??a�?a�?e��cs�i??a?�???c��a�?cs�ATSe�?i??e?�a??aSYe??a?�e???????�a�?e��a��?��a�?e?�a??a?�?��????��e�?a��a?�c��i??e?�???buga��

  3. proxy.config.hostdb.filename

    HostDB????SSa?�a???��a��i??mmapa?�a��a�?i????�c��a��a�?cs�?�?a?????e?�a��i??a?�a�s?��synca?�c??c�?i??e�?sync_frequencyi?�a��e?�e�?a�sa?�e?�a???��a��cs�a??a��a��???a?�a?�aS?a?�a��

  4. proxy.config.hostdb.size

    HostDBcs�a��a�?i??cachecs�???c��?��i?�i??e?�a?????hostdbe�?e��a???�za�?cs�2a??a?�?��a?�a?�i??a?�a?�a?????storage_sizea��e?�a?�a???��i??a��?z?e�?c?�cs�a?�a??e�?a?�a?�a?�a?�a??cs�a?�???i??a��a?sa??a��a?�a??a?�hostdbi??a��a?se��???servere�?a??a??a?�a��e�?e��e�?c?�???a?�a????�e??a??e��cs�e�?c?�i??a��?z?a??a??a?�cs�???a�?i????�a??a�saYYa??cs�?�?a?�???aS?a�?c��i??a??a�?e��a?�e�??�?i??a??a?�e��a??a�??��e?�i??a?�e�?cs�e??e�??�?storage sizea?�?��a��a?�i??a��?z?c�???�a??hostdba�zcZ�a?sa?�e�??�?i??a??e??a?sa?�a�?a��a?�cs�c��?z�cs�e??i??a?Ya?sa?�e��c�?a??cs�???c��a?�i??e?�e�?a?�c�?cs�a��a�?a?sa�?a????�e??a��cs�a��a?�a��a��?��i??a��c�???�a?�c?�cs�e?�c?�a?�i??a?�a�sa?Ye�??��e?�i??a?�?Z�e?�e?�a??a��a?�a�Sa�Sa�Si??

  5. proxy.config.hostdb.storage_path

    a�?a�?host.db?��a��cs�c��a?�i??a?�e?�a??c�?es?a???�?a?�

  6. proxy.config.hostdb.storage_size

    storage_size?????�a??host.dbcs�?��a��i??a?�e�?cs�a��a�?a��c?�e�?a?S???e??i??size???c��?��a�?storage_sizea?�a??a?�?��a?�e??a??c�?a?�a??a��a??i??e�?a�?c�?a�zcZ�cs�2a??e??e�???zi??c��?z?a��e��???a?Se??e??cs�?�?a��a��a??a�?a�sa?�a??a?�a??a?�c�?a�?cY?cs�a��buga?�a��

  7. proxy.config.hostdb.ttl_mode

    e?�a??a?�?��a????�?�??�?i????�a��a�sa?�a?�hostdbcs�cachee�?c??a?�cs�??�?�??��e�?i??e?�e�???�0-3cs�e��?��i?s

    Value TTL
    0 a??c�?dnsc��a�?cs�ttl?��e�?
    1 a??c�?hostdbc��a�?cs�timeout?Z�a?�i??e�?proxy.config.hostdb.timeout
    2 a??c�?dns ttl??�hostdb timeoutcs�??�a�?a�?a��hostdb.timeout???a??c?�c�Ycs�dnsc?�a�?cs�??�e�???�?�??��e�?a��
    3 a??c�?dns ttl??�hostdb timeoutcs�??�a��a�?a��hostdb.timeout???a??c?�c�Ycs�dnsc?�a�?cs�??�cY�??�?�??��e�?a��

    a??c�?a??c?�cs�a?�?��i??a????�a��?Z�a?�ATScs�dnsc?�a�????a????�a?�aS�cs�a��

  8. proxy.config.hostdb.lookup_timeout

    hostdbcs�lookup_timouti??????Z�a?�?�?a??ATScs�dns?Y?e??e��?��cs�i??a?�?��hostdbcs�cache?Y?e??a�?a?Sc?Y?�?a?sdnse�??z?cs�?��e�?a��e?�a???��e�?e�?e��??�e??e�?i??a?�a?�e��a?�a??a�?e�??�?a��

  9. proxy.config.hostdb.timeout

    e?�e�?a�sa?�cs�???cachecs�?��??�a??hostdbe�?cs�??�?�??��e�?i??e��e?�e?�a???��e�?i??a??e??a?se��a?�a�??�?e�??z??�??��e?�a?????c��a��a��a?�a??c��ttl_mode????Z�a?�a��

  10. proxy.config.hostdb.verify_after

    e?�a??a?�?��i??c��a??http cachecs�revalidate?Z�a?�i??hostdbcs�???c��a??cachea?�verify_aftercs�?��e�?a?Zi??a?s?��e?�a??stalea?�a??e??a?se��a?�a?sc?Y?�?cs�dnse�??z?a��

  11. proxy.config.hostdb.fail.timeout

    ip fail timeouti??e?�TMa�?e????�i????�a?Y??za???��a�Sa�Sa�Sa�S

  12. proxy.config.hostdb.re_dns_on_reload

    e?�a??a?�?��?Z�a?�???a?�a??e�?a??hostdb dns??�e�?a??servercs�?��a��i???SShostdbe�?cs�cachea�?a?sstalea��c?�a��re dns = redo dnsa��

  13. proxy.config.hostdb.serve_stale_for

    e?�a??a?�?��?Z�a?�hostdbe�?c?�a�?cs�?��??�i??a??a�?stalea�se�??��e�?a��stalecs�?��a?�???i??TTLa�?c�?e?�a?�i??a?�???a�z???a�?a??????�?a?�?��??�a��e�sa????�a��a?�i??a�?cZ�e?�c�?e��e??cs�a?�e�?aZYa��a??a?Zi??dns???aS?a�?e��e????�e?�ATSa?Zdns???aS?a�?a?�e�?cs�c?�c�?a�?cZ�e��e??a��e?�a??a?�?��cs�a??c?�a??c�?i??a��a?s?z?a��cs�a�?a��c��a?Zc?�c�????aS?a?�e��cs�dns???aS????aS?e��???ATScs�cachec?�c�Ya��e��????��es?a��??�e�sa??a�?e��i??30a?�e�Y???a?�a????�e??a??e��cs�a�?a��

  14. proxy.config.hostdb.migrate_on_demand

    e?�a???Z�a?�dns???aS?a�?i?????a?�a��?��??�a��a�?clusteri??a??e?�a???��??�a??a�za?Ze�?a��cachecs�??�a��a?�a��a?�c��i??e?�a??a?�?��a??a?�a�?cluster???a??a?�cs�hostdba��

  15. proxy.config.hostdb.cluster

    ???a?�a??c�?cluster???a??cs�hostdba��cluster???a??cs�hostdbi??a��a?sa???�?a??e��c?�a??hostdbcs�cachea?sa?�e�??��hasha��c?�i??a?�?��dns cachecs�e?�a�?a��a��

  16. proxy.config.hostdb.cluster.round_robin

    a??clustere�?a?se?�e??i?Yi?Yi?Ya�?e�????cs�a?�?�?a�Sa�Sa�S

  17. proxy.config.hostdb.strict_round_robin

    a???�?cs�e?�e??a��e?�a?�?��?z???�?�??�?i??e�?e��cs�??�a��a?�i??ATS???a?s??�a?�a??c�?a?�?�?e??cs�c��??�i??a??a�?a??c�?a?�a�??��??�a??c�????aS?a�?a?�i????�a?Z???aSYa??c�?cs�???aS?a�?a��e?�?��cs�e??i??a?�c��a??e??e��???a?�a�scs�e?z?Z?e?Ye??a??a�?a?�e??a��e�???�a?�?��i??a��a?se��e?�a???��e��cs�?�?e??e��?��i??a?????a��a��cs�a???�?cs�e?�e??a��

  18. proxy.config.hostdb.timed_round_robin

    a�??��e�?a??aY?a��cs�e?�e??c��c�?a��a?Se??cs�strict_round_robini??a???�?cs�??�c��c��?��???aS?a�?a?se?�e??a��e�?e?�a??a?�?��a?�a??a�?e��???aS?a�?a�??��e�?c��cs�?��a?�???a?se?�e??i??e?�?��cs�e??i??a??eZ�a???��e�?c��a��i??a��a?sa??e?�e??a?�a?�a??a�?a?�cs�???a�?a?Sa��e?�e�?cs�?��e�?c��cs�e�?a?�i??a��?????�a?�?��a�sa?�cs�a��a???�????e??i??a��?z?e?�a??a?�?��a�?strict_round_robine?????0i??a?�a?�a?�a�?a�?c�?e��a�s???aS?a�?a��?z????e��e??cs�e??i??a?sa?�c�?a??c�?e?�a?????aS?a�?a�z???a��

  19. proxy.config.cache.hostdb.sync_frequency

    hostdbcs�a��a�?mapi??a???�?a?�c??c�?cs�e?�cZ�a��

  20. proxy.config.hostdb.ip_resolve

    a��a?�a??cachea?se�??z?a�?i?Yi?Yi?Ye�?cY?e?�??�a��cs�a�???�c�?a?s??�ipv4i??a?Ya??e????�ipv6cs�??�a��

    Keyword Meaning
    ipv4 e�??z?a??V4cs�a?�a?�
    ipv6 e�??z?a??V6cs�a?�a?�
    client e�??z?a??a�???�c�?cs�a?�a?�c��az�
    none a??e�??z?a��e?�TMcs�a�???�a��a�Sa�Sa�Si?Yi?Yi?Yi?Y

    e?�a??a?�?��a??a??a??cs�a???�?a?�i?????a??a?�?��cs�e�?e��a�?cs�i??c�se�??Y?a?�a???�?a?�i??a?Y?�?a??a?�cs�i??a��a��a��c��e?�e?�a�??�?cs�e????Za?�a��Doctor Alancs�c?za?�e�?c?�i??a�za?????e��a??a�?c�?a��

DNSa??a�z???c�?c?�?�?e??cs�??�a??a�ze��

DNSc?�c�Ya�?cachecs�?��e???????????c�?a�?cs�i??a��?��ATSa??DNSc?�c�Ya?sa?�e?za??a�scs�a�?a??i??a�?e��DNSa??a�?e?ze��???i??e?�?��?�?e??a�Yc?�a??ATSe?ze��???a��a��a?�a??c�?e?�a?�a?�?��a�?e�?c?�i??e??a?�??�a??cs�e�?c?�i?Ye?�???a?�a??e�?c?�cs�i??a�?a?�?��?�?cs�e��e??a��e�?a��i????�a��e?�e�?e??a?�a?�a??e��a��a��a�?e�?cs�c��?��a?�i?Y

a?�e???????�?Z?e??cs�a��a??e�?c?�a??a�?e�??�?cs�c�?i??a??a�?a??a??e�??��e??cs�a?�a?�a?�e�?i?s

DNS:

e?�???a?�a??a??a?�a�?c?�cs�??�a��a?�i????�a?�????????�dnsc?�a�????aS?cs�e�??��e??e�?c?�a��c��a?�cs�e????Za��???i??a?�c��/etc/resolv.confi??a?�c��c��c�?c?�a��a??a??a?�a??e�?a??cs�e??c�?c�?e??i???SSa???�???�e??c�?cZ?a??a??a?�cs�a?�?��a�?a��a��a?�?��a?�c��a?�???a?�c�????a?�a??e�??�?e??c�?cs�a??e??a��e�?e�??�?dnscs�?Y?e???��e�?a�?e�?e?�?�??��i??a??a�???�?�?cs�?Z�a?�a??a??a?????aS?a�?a�?cZ�e��e??cs�??�a��a?�a?Ya??e�?c��?��a?�e��a��e�?cs�???aS?a��c�?a��

CONFIG proxy.config.dns.resolv_conf STRING /etc/trafficserver/resolv.conf
CONFIG proxy.config.dns.lookup_timeout INT 1
CONFIG proxy.config.dns.retries INT 3

HostDB:

??�a��a??c�?a?�a???�?cs�RRi??c?�a??a�z??????aS?a�?e??a�Y?�?e�?a?�e??a��a?�a?�?SSstale?��e�?e�?c?�a??30a?�e�Ya�?e???�?c��a?Zdns???aS?a?�a�?cs�flappinga��

CONFIG proxy.config.hostdb.strict_round_robin INT 1
CONFIG proxy.config.hostdb.lookup_timeout INT 3
CONFIG proxy.config.hostdb.serve_stale_for INT 1800

a?�c��i??a??a???�???�?�??�?cs�?�????i??DNS SRVi???�?a?�a�?a?�a�z???a??a�?c?�a�????e�?cs�?��a?�a��a??a�z???cs�e?�c?�a?�e��a?�a?�?z?a??cs�?Z�a?�a��e?�a?????a?�a???z?a??cs�a�z???a�?a???�?a??a��

a��a��DNSc?�c�Ye�?a�??�????

  • Dnsmasq

    ATS???a??a��e��???c�Ya?�???aS?e�?e�?cs�c?�c�Yi??a??e�?e�?a?�a?�?????�e�?e��a��a�s?��a??c�?a??a??c�?/etc/hostsa?sc��a?�cs�aYYa???�?a��i??e�?a?�a?Ya??a?se�?e��e?�e??e?�?�?e??cs�?�?e?�a��e?�?��a��?z?e?�e??a?�a?�c��a?�cs�?��e?�i??a��e?�e�?a??e��??�a?�?�?a?�a�??�?cs�DNSc?�c�Yi??a?zaS�a?�a??a��cs�c?�c�Ya�???�a?�a��a��a?�??�a?�cs�a�????e�?c��a?�?��e?�a�?i?Y??�c��a?�a?�??�cs�?�?a???????�a��a??c�?Dnsmasq???a?�cs�e�?e��e�?c?�i??a��/etc/hosts?��a��a?�cs�e?�?�?aYYa??IPa??a?�i??a??a??dnsa??a�??Y?e??cs�?��??�a��

    Dnsmasqcs�a??c�??�???�a?Ze?�c��a?�a�?i??a??a�?a?�e�?c?�a?Scs�a??a�s?��???i?sGoogle it

  • zfor

    ??�a��a��?z?e�?e?�e???�???�??�????��cs�dnse�?c?�i????�a��i????�e�?a????????aS?a�?e?�e??7a��a??a?�??�?��i??e???�?c��a?Z???aS?a�?e��e??a�?c?�c�?e��e??a�?a?�c�?e��e??a�?c�se�?e??c?�a?�e��e??a?�a�?cs�?��es?e?�a�?ATS cachec?�c�Yi??ATSc��a�?????????�a?�a??a??a??cs�a�z???7a��a??a?�??�?��???a?�cs�i??e??e�????a?�cs�patchc��a�?a�??????�e?�a�?c�?a??i?�i??e�?zfora??a�?a�????e?�a??c��?��i??a?�e??a�Ya??a�?e??a�?a��i??e?????a?�a?�4/7a��e?Ye??a?�e??cs�aSYe??i?s

    zfor??�a??a�sc�?c�???�i??a?�e�?cs�??�a?�a??

    • zfor_gethostbyname() / zfor_getaddrinfo()i??e?�?��cs�a??c�??�???�????SSc�?LD_PRELOAD???a??i??aS�e??c?�a??i??a��i?s
      $ LD_PRELOAD=/usr/local/lib/libzfor.so curl "http://a.zfor"
      
    • a?sdnse�??z????aS?a�?i??e��zforc��a?�??�???53c�?a??a��a?�c��i??a��?z??SSzfora??a??a?�a??dnse�??z????aS?a�?i??a?Y???a??a�?cs�a��a��

      “`
      {global,
      [
      {server_port, 53}
      ]
      }.
      {vhost,”balance.test.com”,
      [
      {host,[
      "72.14.235.104",
      "72.14.235.147",
      "72.14.235.99"
      ]},
      {http_path,”/index.html”},
      {select_method,all_active},
      ]
      }.

      “`

    DNSc�?a�????a?�cs�a?�a��

    • dnse�??z?

      • dnse�??z?cs�a�?c�?i??a?�a�?a?�bindc�?a�?c��a??cs�?�?a??i??a?�a�sc?�a?�a?Se��???a?�?�?a??dnse�??z?a�?c�?cs�a�???�a?�i??a??aYYa??e�??z?a?�reslov.confe�?a�sa?�cs�domaina�?searchc��e��e??i??a??ATSa??a???�?a??a?�a�?c?�a?�i??a?�a�?a??a??a�?cs�?�?a?�a��e?�a?�aSYe??a?�a?�e??a??a�???�c�??�?e�?a�?a�?????�?a??a��a?Zc��cs�a?�a?�a?�i??a?�e??a?sa??e?�a?�a�?c�?i??aSYe??i?�a??a�???�c?�a��
    • a??e?zudpcs�a??e��e�??z?a??e??e?�e�?aS�a??

    • srve�??z?cs�a??a�sa?�a?za??i??a�?e��cachec?�c�Ye��c�?e�?a��a�sa?�cs�SRVe��a?�a��e�?e��c��a�????a��?��cs� _http._tcp

  • SplitDNS

    SplitDNS???a?�a??a??a??cs�aSYe??i??es?c?�remape�?c?�cs�a�sa?�a?�e�S???e�Sa??i??a�?cs�a�?a??a��a??a??a?�??�e???????�a��a�?a��a?Zc��a??e??a?sc��?��e�?a?Ya??a��

  • DNSe�??z????aS?

    e��e�Z?��a�?i??a???�?a??e�?a??ATSa?zaS�a?�a?�a?????aS?i??e��ATSa??a�?a??a??a?�a??dns cache???aS?a�?i??a??a��???a?�dnse�??z????aS?a��e?�a??aSYe??a?Z???e?�c�?a??a?Ya??i??a�ZATScs�e��a?�i????�a��cs�HostDB???e??a�Ya?sa?�e��c?�c?�a?�cs�c?�a�?cs�i??a��?z?e??a�Ya??HostDBcs�cache?�?e??a??a�??�?a�sa?za??i??a�?e�se?�Clustera��?�?a??e��c?�cs�HostDB?��e�si??a?�a�za?S??�a��???a??a�???�???ISPc?�a?�cs�DNSe�??z?cs�???aS?cs�i????�e�????ATSes?a?Zcs�a?za�?c�?a?�a��

  • HostDB

    HostDBa��a��?��e??e��a??i??e?�a??aSYe??a�???�i??buga�sa�si???��a��a??a??a�Y?�?a??i??a??a�sa??e??a????�a?Ya??i????�e��e�?a��i?sa?�e�?ATSa�?c?�cs�WIKI e??e�?a�?e?Ya?Ya??a?sa�?e?�i??c��a�?aY???�a�????a?�c??a��a�?cachecs�e�?a��i??e�?a��a?Zcs�HostDBa��a??a�?a??c�?mmapcs�?�?a??a��?��??�a???�?a?�c??c�??�?a?�a�?a�?i??e?�a?�a�?c�?a?Zc��a?�e??a??a�?a?Zc�?a??a��a��a�?e?Ya??a??a?�a�?a?�a??a��

    分类: 使用, 配置文件 标签:
    1. 本文目前尚无任何评论.
    1. 本文目前尚无任何 trackbacks 和 pingbacks.