_______________________________________________________________________________________________________
_______________________________________________________________________________________________________
© Virtual Access 2018
GW6600 Series User manual
Issue: 1.7
Page 322 of 519
30.2.3.1
Local host records using uci
root@VA_router:~# uci show network
……
network.@host[0]=host
network.@host[0].hostname=Device1
network.@host[0].addr=1.1.1.1
30.2.3.2
Local host records using package option
root@VA_router:~# uci export network
package network
……
config host
option hostname 'Device1'
option addr '1.1.1.1'
30.2.4
Local host records diagnostics
30.2.4.1
Hosts file
Local host records are written to the local hosts file stored at /etc/hosts. To view the
local hosts file, enter:
root@VA_router:~# cat /etc/hosts
127.0.0.1 localhost
::1 ip6-localhost ip6-loopback
1.1.1.1 Device1
30.3
PTR records
PTR records are used for reverse DNS.
The primary purpose for DNS is to map domains to IP addresses. A pointer record works
in the opposite way; it associates an IP address with a domain name.
30.3.1
Configuration packages used
Package
Sections
dhcp
domain
30.3.2
Configuring PTR records using the web interface
In the top menu, select Network -> Hostnames. The Hostnames configuration page
appears.