### Tool 104: DNS server always answering same values

### Description:

      This tool creates a simple DNS server. It will always return the same
      information. It can be used to redirect network flow to a computer.

      Parameter --hostname defines the hostname to tell (www.example.com).
      Parameter --hostnameip defines IP address of this hostname (1.2.3.4).
      Parameter --authns is the authoritative name server (ns.example.com).
      Parameter --authnsip defines IP address of name server (1.2.3.5).
      Parameter --ttl defines the Time To Live of this reply.

      Parameter --src-port defines the local port number to listen on.
      Optional parameter --src-ip defines the local IP address to use.
      Optional parameter --iptype defines which kind of IP address to use
      when --src-ip is unset (accepted values: ip4 and ip6).
      Optional parameter --ip4opts permits to add IP4 options encoded as
      mixed.
      Optional parameter --ip6exts permits to add IP6 options encoded as
      mixed (first byte is the next header number).
      Optional parameters --device and --src-eth permits to create
      a virtual server using fake addresses (in this case, tool have to be
      run with admin privilege in order to sniff and spoof at Ethernet
      level).

      This tool may need to be run with admin privilege in order to listen
      on a small port number (port<1024).

### Synonyms:

bind

### Usage:

netwox 104 -h hostname -H ip -a hostname -A ip [-d device] [-E eth] [-I ip] [-P port] [-o ip4opts] [-O ip6exts] [-t iptype] [-T uint32]

### Parameters:

parameter | description | example
`-h|--hostname hostname` | hostname | www.example.com
`-H|--hostnameip ip` | hostname IP | 1.2.3.4
`-a|--authns hostname` | authoritative name server | ns.example.com
`-A|--authnsip ip` | authns IP | 1.2.3.5
`-d|--device device` | device name | Eth0
`-E|--src-eth eth` | source ethernet address | 0:2:3:4:5:6
`-I|--src-ip ip` | source IP address | 192.168.100.200
`-P|--src-port port` | source port number | 53
`-o|--ip4opts ip4opts` | IPv4 options |
`-O|--ip6exts ip6exts` | IPv6 extensions |
`-t|--iptype iptype` | type to use when src-ip is unset | ip4
`-T|--ttl uint32` | ttl in seconds | 10

### Examples:

netwox 104 -h "www.example.com" -H "1.2.3.4" -a "ns.example.com" -A "1.2.3.5"
netwox 104 --hostname "www.example.com" --hostnameip "1.2.3.4" --authns "ns.example.com" --authnsip "1.2.3.5"