HP VPN Firewall Appliances Network Management Command Reference
216
Syntax
dns source-interface interface-type interface-number
undo dns source-interface
Default
No source interface for DNS packets is specified. The device uses the primary IP address of the output
interface of the matching route as the source IP address of a DNS request.
Views
System view
Default command level
2. System level
Parameters
interface-type interface-number: Specifies the interface type and number.
Usage guidelines
The device uses the primary IP address of the specified source interface as the source IP address of a
DNS request, which is still forwarded through the output interface of the matching route.
Examples
# Specify interface GigabitEthernet 0/1 as the source interface of DNS requests.
<Sysname> system-view
[Sysname] dns source-interface gigabitethernet 0/1
dns spoofing
Use dns spoofing to enable DNS spoofing.
Use undo dns spoofing to disable DNS spoofing.
Syntax
dns spoofing ip-address
undo dns spoofing
Default
DNS spoofing is disabled.
Views
System view
Default command level
2: System level
Parameters
ip-address: IP address used to spoof name query requests.
Usage guidelines
With DNS proxy enabled but no DNS server specified or no DNS server reachable, a device cannot
forward a DNS request, or answer the request. In this case, you can enable DNS spoofing on the device