Symptoms or Error
If nslookup command is run from?? windows command prompt of a client PC connected through?? NetScaler Gateway with full VPN, split tunnel set as "OFF" and DNS configured as “Remote" then the output of the command returns only one back-end server IP.?? When connected to other full VPN, nslookup output returns approximately 10 back-end server IPs.
If the back-end server IP returned by NetScaler is down or unresponsive then the user is unable to access the resources. Ideally when the client is trying to reach the IP which is down/unresponsive the client will try another IP however in this case the request will fail because the NetScaler Gateway provides only one IP.Solution
To resolve this issue run the following commands from NetScaler shell prompt:
root@ns>shell
root@ns# echo “/netscaler/nsapimgr -ys enable_vpn_dns_override=1” >> /nsconfig/rc.netscaler
root@ns# echo “/netscaler/nsapimgr -ys enable_vpn_dnstruncate_fix=1” >> /nsconfig/rc.netscaler
Problem Cause
In current DNS handling, NetScaler Gateway plugin sends a “GET/DNS” request for DNS (or WINS) lookup. When NetScaler receives such a request, it creates an actual DNS packet and sends it to the DNS server configured on NetScaler.
When?? NetScaler receives the response from the DNS server, it sends a resolved IP to NetScaler Gateway plugin and plugin in turn will send this to the requested application. Therefore, whenever there is a DNS lookup, because of the preceding design you will receive only one IP.??
NetScaler provides two nsapimgr knobs (mentioned in additional resources section) for controlling this behavior. If you configure these knobs on NetScaler, NetScaler Gateway plugin sends DNS query packets transparently to configured DNS server and DNS response is also received transparently.
Additional Resources
Command | Description |
nsapimgr -ys enable_vpn_dns_override=1 ?? | This flag is sent to the NetScaler Gateway VPN client along with the other configuration parameters. Without this flag, when the VPN client intercepts a DNS/WINS request, it sends a corresponding "GET /DNS" http-request to the NetScaler Gateway virtual server over the tunnel in order to get the resolved IP. However, if the ‘enable_vpn_dnstruncate_fix’ flag is set, vpn client forwards the DNS/WINS requests transparently to the NetScaler Gateway virtual server. What this means is, the DNS packet would be sent as is to the NetScaler Gateway virtual server over the vpn tunnel. This helps in cases when the DNS records coming back from the name servers configured in the NetScaler Gateway are huge and do not fit in the UPD response packet. In this case, when the client falls back to using TCP-DNS, this TCP-DNS packet will reach as is to the NetScaler Gateway server, and hence the NetScaler Gateway server will make a TCP-DNS query to a DNS server. |
nsapimgr -ys enable_vpn_dnstruncate_fix=1 | This flag is used by NetScaler Gateway?? server itself. If this flag is set, NetScaler Gateway?? overrides destination for the “TCP-connections on DNS-port” to the DNS-servers configured on NetScaler Gateway?? (instead of trying to send them to the DNS-server-IP originally present in the incoming TCP-DNS packet). For UDP DNS requests, the default itself is to use the configured DNS servers for DNS resolution. |
Supporto Citrix
Traduzione automatica
Questo articolo ?? ¨ stato tradotto da un sistema di traduzione automatica e non ?? ¨ stata valutata da persone. Citrix fornisce traduzione automatica per aumentare l'accesso per supportare contenuti; tuttavia, articoli automaticamente tradotte possono possono contenere degli errori. Citrix non ?? ¨ responsabile di incongruenze, errori o danni derivanti dell'uso di articoli automaticamente tradotte.
Citrix技術支持
自動翻譯
這篇文章被翻譯由一個自動翻譯系統,並沒有受到人們的審查。 Citrix提供自動翻譯,增加獲得支持的內容;但是,自動翻譯的文章可能可以包含錯誤。思傑不負責不一致,錯誤或損壞因使用自動翻譯的文章的結果。
Поддержка Citrix
Tradução automática
Эта статья была переведена автоматической системой перевода и не был рассмотрен людьми. Citrix обеспечивает автоматический перевод с целью расширения доступа для поддержки контента; Однако, автоматически переведенные статьи могут может содержать ошибки. Citrix не несет ответственности за несоответствия, ошибки, или повреждения, возникшие в результате использования автоматически переведенных статей.
시트릭스 지원
자동 번역
이 문서 자동 번역 시스템에 의해 번역 된 사람들에 의해 검토되지 않았다. 시트릭스는 컨텐츠를 지원하기 위해 접근을 높이기 위해 자동 번역을 제공합니다; 그러나, 자동으로 번역 기사 오류를 포함 할 수있다. 시트릭스는 자동으로 번역 된 기사의 사용의 결과로 발생하는 불일치, 오류 또는 손해에 대해 책임을지지 않습니다.